Skip to content

Commit 3c6701f

Browse files
committed
fix: create api keys ssm paramenters conditianally to requiring api keys
1 parent 9410d64 commit 3c6701f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssm.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "aws_ssm_parameter" "rest_api_root_resource_id" {
2121
}
2222

2323
resource "aws_ssm_parameter" "rest_api_key" {
24-
for_each = toset(local.stages)
24+
for_each = var.create_usage_plan ? toset(local.stages) : []
2525
name = "${local.ssm_prefix}/${each.key}/restApiKey"
2626
type = "String"
2727
value = aws_api_gateway_api_key.default[each.key].name

0 commit comments

Comments
 (0)