From f291c9398f48b12670dbf1677fd263db2d87d3c3 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 14 Mar 2019 18:10:54 +0000 Subject: [PATCH] Remove potentially unused ECSRole --- aws/fargate.yml | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/aws/fargate.yml b/aws/fargate.yml index 8833102..af56398 100644 --- a/aws/fargate.yml +++ b/aws/fargate.yml @@ -312,45 +312,6 @@ Resources: - !Ref PublicSubnetOne - !Ref PublicSubnetTwo - # This is an IAM role which authorizes ECS to manage resources on your - # account on your behalf, such as updating your load balancer with the - # details of where your containers are, so that traffic can reach your - # containers. - ECSRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Effect: Allow - Principal: - Service: [ecs.amazonaws.com] - Action: ['sts:AssumeRole'] - Path: / - Policies: - - PolicyName: ecs-service - PolicyDocument: - Statement: - - Effect: Allow - Action: - # Rules which allow ECS to attach network interfaces to instances - # on your behalf in order for awsvpc networking mode to work right - - 'ec2:AttachNetworkInterface' - - 'ec2:CreateNetworkInterface' - - 'ec2:CreateNetworkInterfacePermission' - - 'ec2:DeleteNetworkInterface' - - 'ec2:DeleteNetworkInterfacePermission' - - 'ec2:Describe*' - - 'ec2:DetachNetworkInterface' - - # Rules which allow ECS to update load balancers on your behalf - # with the information sabout how to send traffic to your containers - - 'elasticloadbalancing:DeregisterInstancesFromLoadBalancer' - - 'elasticloadbalancing:DeregisterTargets' - - 'elasticloadbalancing:Describe*' - - 'elasticloadbalancing:RegisterInstancesWithLoadBalancer' - - 'elasticloadbalancing:RegisterTargets' - Resource: '*' - # This is a role which is used by the ECS tasks themselves. ECSTaskExecutionRole: Type: AWS::IAM::Role @@ -395,12 +356,6 @@ Outputs: Export: Name: !Join [ ':', [ !Ref 'AWS::StackName', 'ExternalUrl' ] ] - ECSRole: - Description: The ARN of the ECS role - Value: !GetAtt 'ECSRole.Arn' - Export: - Name: !Join [ ':', [ !Ref 'AWS::StackName', 'ECSRole' ] ] - ECSTaskExecutionRole: Description: The ARN of the ECS role Value: !GetAtt 'ECSTaskExecutionRole.Arn'