Created
April 14, 2021 13:44
-
-
Save lenardchristopher/5362aa18460161e0d730f2b49ff9fa6d to your computer and use it in GitHub Desktop.
An example of a for_each loop in Terraform.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "rg" { | |
for_each = { | |
a_group = "eastus" | |
another_group = "westus2" | |
} | |
name = each.key | |
location = each.value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment