Course outlines for learning terraform.
In these examples, multiple resource groups are created. They must have a unique name
and identifier when not using count
or for_each
.
On working out this example, you may use the same name and identifier.
resource "azurerm_resource_group" "example-0" {
name = "example-0"
location = "West Europe"
}
resource "azurerm_resource_group" "example-1" {
name = "example-1"
location = "West Europe"
}
resource "azurerm_resource_group" "example-1" {
name = "example-westeurope"
location = "westeurope"
}
resource "azurerm_resource_group" "example-2" {
name = "example-easteurope"
location = "easteurope"
}
resource "azurerm_resource_group" "example-1" {
name = "my_first_resource_group"
location = "westeurope"
}
resource "azurerm_resource_group" "example-2" {
name = "my_second_resource_group"
location = "easteurope"
}