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 50f2b22 commit fa64ba2Copy full SHA for fa64ba2
iam-ecs-task.tf
@@ -69,26 +69,6 @@ resource "aws_iam_role_policy" "ssm_policy" {
69
EOF
70
}
71
72
-resource "aws_iam_role_policy" "s3_policy" {
73
- name = "ecs-s3-policy"
74
- role = aws_iam_role.ecs_task.name
75
-
76
- policy = <<EOF
77
-{
78
- "Version": "2012-10-17",
79
- "Statement": [
80
- {
81
- "Action": [
82
- "s3:GetObject"
83
- ],
84
- "Effect": "Allow",
85
- "Resource": ["arn:aws:s3:::prod-${data.aws_region.current.name}-starport-layer-bucket/*"]
86
- }
87
- ]
88
-}
89
-EOF
90
91
92
resource "aws_iam_role_policy_attachment" "extra_task_policies_arn" {
93
for_each = toset(try(var.extra_task_policies_arn, []))
94
role = aws_iam_role.ecs_task.name
0 commit comments