Skip to content

Commit

Permalink
Hotfix/EM-41 (#55)
Browse files Browse the repository at this point in the history
EM-41 Fix syntax error using TF12 syntax instead of TF11
  • Loading branch information
Thomas-X authored Oct 17, 2019
1 parent dfdef5b commit 23eb73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/sns_topic/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {
Description = "${var.description}"
Environment = "${var.environment}"
}
iam_policy_document = <<POLICY
doc = <<POLICY
{
"Version": "2012-10-17",
"Id": "${var.app_name}-policy",
Expand All @@ -35,4 +35,5 @@ locals {
]
}
POLICY
iam_policy_document = "${var.iam_policy_document == "" ? local.doc : var.iam_policy_document}"
}
2 changes: 1 addition & 1 deletion apps/sns_topic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ variable "environment" {}
variable "description" {}

variable "iam_policy_document" {
default = local.iam_policy_document
default = ""
}

# tags
Expand Down

0 comments on commit 23eb73c

Please sign in to comment.