Govcloud partition refactor (#235)
This commit is contained in:
1 parent
4763e68d85
commit
95ead0f16d
15 files changed
+61
-13
No files matched your search
@@ -1,3 +1,5 @@
|
||||
data "aws_partition" "current" {}
|
||||
|
||||
data "aws_iam_policy_document" "mdmproxy" {
|
||||
statement {
|
||||
effect = "Allow"
|
||||
@@ -51,6 +53,6 @@ resource "aws_iam_role" "execution" {
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "role_attachment" {
|
||||
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy"
|
||||
policy_arn = "arn:${data.aws_partition.current.partition}:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy"
|
||||
role = aws_iam_role.execution.name
|
||||
}
|
||||
Reference in new issue
Block a user