diff --git a/infrastructure/stacks/api-layer/ssm.tf b/infrastructure/stacks/api-layer/ssm.tf index 9eff7334..5b154d96 100644 --- a/infrastructure/stacks/api-layer/ssm.tf +++ b/infrastructure/stacks/api-layer/ssm.tf @@ -94,7 +94,7 @@ resource "aws_ssm_parameter" "splunk_hec_endpoint" { } resource "aws_ssm_parameter" "feature_toggles" { - for_each = jsondecode(file("${path.root}/scripts/feature_toggle/feature_toggle.json")) + for_each = jsondecode(file("${path.module}/../../../scripts/feature_toggle/feature_toggle.json")) name = "/${var.environment}/feature_toggles/${each.key}" #checkov:skip=CKV2_AWS_34: Since this is a feature toggle config, secure string not needed