diff --git a/infrastructure/ecs-cluster.yaml b/infrastructure/ecs-cluster.yaml index 7d6969ee..547dba60 100644 --- a/infrastructure/ecs-cluster.yaml +++ b/infrastructure/ecs-cluster.yaml @@ -151,29 +151,7 @@ Resources: ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM - arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy - Policies: - - PolicyName: ecs-service - PolicyDocument: | - { - "Statement": [{ - "Effect": "Allow", - "Action": [ - "ecs:CreateCluster", - "ecs:DeregisterContainerInstance", - "ecs:DiscoverPollEndpoint", - "ecs:Poll", - "ecs:RegisterContainerInstance", - "ecs:StartTelemetrySession", - "ecs:Submit*", - "ecr:BatchCheckLayerAvailability", - "ecr:BatchGetImage", - "ecr:GetDownloadUrlForLayer", - "ecr:GetAuthorizationToken" - ], - "Resource": "*" - }] - } - + - arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role ECSInstanceProfile: Type: AWS::IAM::InstanceProfile Properties: