Skip to content

Commit 7ffc3dd

Browse files
authored
feat: Remove call data ssm parameter when ami id is specified (#351)
1 parent 24c76e6 commit 7ffc3dd

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
@@ -7,7 +7,7 @@ locals {
77
}
88

99
data "aws_ssm_parameter" "this" {
10-
count = local.create ? 1 : 0
10+
count = local.create && var.ami == null ? 1 : 0
1111

1212
name = var.ami_ssm_parameter
1313
}

0 commit comments

Comments
 (0)