Skip to content

Commit e1ec374

Browse files
Update readonlyaccess policy arn to account for gov
1 parent 385e42d commit e1ec374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/import-role/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ resource "aws_iam_role" "import_role" {
2626

2727
resource "aws_iam_role_policy_attachment" "read_only_policy_attachment" {
2828
role = aws_iam_role.import_role.name
29-
policy_arn = "arn:aws:iam::aws:policy/ReadOnlyAccess"
29+
policy_arn = "arn:${data.aws_partition.current.partition}:iam::aws:policy/ReadOnlyAccess"
3030
}

0 commit comments

Comments
 (0)