Skip to content

Commit

Permalink
Merge pull request terraform-in-action#21 from DustinAlandzes/patch-1
Browse files Browse the repository at this point in the history
Fix syntax error in local block of listing 3.7/madlibs.tf
  • Loading branch information
scottwinkler authored Sep 25, 2021
2 parents d90ec00 + 5760aca commit 735f30f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter3/listing3.7/madlibs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variable "num_files" {

locals {
uppercase_words = {for k,v in var.words : k => [for s in v : upper(s)]}

}

resource "random_shuffle" "random_nouns" {
count = var.num_files
Expand All @@ -41,4 +41,4 @@ resource "random_shuffle" "random_adverbs" {
resource "random_shuffle" "random_numbers" {
count = var.num_files
input = local.uppercase_words["numbers"]
}
}

0 comments on commit 735f30f

Please sign in to comment.