Skip to content

Commit

Permalink
Use module.this.enabled instead of var.enabled for count (#9)
Browse files Browse the repository at this point in the history
When using the context.tf, one should use module.this.enabled instead of accessing var.enabled directly.
  • Loading branch information
sodre authored Jan 26, 2021
1 parent 9f25fdc commit e2d96d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
data "aws_caller_identity" "default" {}

resource "aws_iam_account_alias" "default" {
count = var.enabled == true ? 1 : 0
count = module.this.enabled == true ? 1 : 0

account_alias = module.this.id
}
Expand Down

0 comments on commit e2d96d4

Please sign in to comment.