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 385e42d commit e1ec374Copy full SHA for e1ec374
modules/import-role/main.tf
@@ -26,5 +26,5 @@ resource "aws_iam_role" "import_role" {
26
27
resource "aws_iam_role_policy_attachment" "read_only_policy_attachment" {
28
role = aws_iam_role.import_role.name
29
- policy_arn = "arn:aws:iam::aws:policy/ReadOnlyAccess"
+ policy_arn = "arn:${data.aws_partition.current.partition}:iam::aws:policy/ReadOnlyAccess"
30
}
0 commit comments