Skip to content

Commit

Permalink
fix: Use aws_partition for govcloud users in ami_id_ssm_parameter_rea…
Browse files Browse the repository at this point in the history
…d policy definition (#2614)
  • Loading branch information
jokreliable committed Nov 3, 2022
1 parent 505adf3 commit 7ac65e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/runners/scale-up.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ resource "aws_iam_role_policy" "ami_id_ssm_parameter_read" {
"ssm:GetParameter"
],
"Resource": [
"arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/${trimprefix(var.ami_id_ssm_parameter_name, "/")}"
"arn:${var.aws_partition}:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/${trimprefix(var.ami_id_ssm_parameter_name, "/")}"
]
}
]
Expand Down

0 comments on commit 7ac65e5

Please sign in to comment.