diff --git a/aws-ecs-job-fargate/iam.tf b/aws-ecs-job-fargate/iam.tf index dee73ba6..c8d13636 100644 --- a/aws-ecs-job-fargate/iam.tf +++ b/aws-ecs-job-fargate/iam.tf @@ -43,7 +43,7 @@ resource "aws_iam_role_policy" "task_execution_role_secretsmanager" { } data "aws_iam_policy_document" "ssm_permission" { - count = var.ssm_arn != null ? 1 : 0 + count = var.ssm_parameter_store_arns != null ? 1 : 0 statement { actions = [