We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9410d64 commit 3c6701fCopy full SHA for 3c6701f
ssm.tf
@@ -21,7 +21,7 @@ resource "aws_ssm_parameter" "rest_api_root_resource_id" {
21
}
22
23
resource "aws_ssm_parameter" "rest_api_key" {
24
- for_each = toset(local.stages)
+ for_each = var.create_usage_plan ? toset(local.stages) : []
25
name = "${local.ssm_prefix}/${each.key}/restApiKey"
26
type = "String"
27
value = aws_api_gateway_api_key.default[each.key].name
0 commit comments