Last active
December 19, 2023 08:01
-
-
Save jason-riddle/5eb13d0d6248bd7f59833a23a52beca3 to your computer and use it in GitHub Desktop.
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
locals { | |
drupal7sites = [ | |
"sfdbi-7.99", | |
] | |
drupal8sites = [ | |
"dpa-8.00", | |
] | |
} | |
resource "aws_instance" "drupal7site" { | |
for_each = toset(local.drupal7sites) | |
tags = { | |
"Name" = each.value | |
"Site_Name" = each.value # split("-", each.value).[0] | |
"Site_Drupal_Version" = each.value # split("-", each.value).[1] | |
} | |
} | |
resource "aws_instance" "drupal8site" { | |
for_each = toset(local.drupal8sites) | |
tags = { | |
"Name" = each.value | |
"Site_Name" = each.value # split("-", each.value).[0] | |
"Site_Drupal_Version" = each.value # split("-", each.value).[1] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment