Skip to content

Commit e2d96d4

Browse files
authored
Use module.this.enabled instead of var.enabled for count (#9)
When using the context.tf, one should use module.this.enabled instead of accessing var.enabled directly.
1 parent 9f25fdc commit e2d96d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
data "aws_caller_identity" "default" {}
22

33
resource "aws_iam_account_alias" "default" {
4-
count = var.enabled == true ? 1 : 0
4+
count = module.this.enabled == true ? 1 : 0
55

66
account_alias = module.this.id
77
}

0 commit comments

Comments
 (0)