Remove unused roles
Change-Id: I571d53c1dc5cd9f25231bbaa9736d582b89b9c9e
diff --git a/dual-master/cf-cluster.yml b/dual-master/cf-cluster.yml
index d395f80..49530ce 100644
--- a/dual-master/cf-cluster.yml
+++ b/dual-master/cf-cluster.yml
@@ -238,28 +238,7 @@
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/home/ec2-user/gerritlogsaccess.json -s
# Signal to CloudFormation aws-cfn-bootstrap has been correctly updated
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource ECSAutoScalingGroup --region ${AWS::Region}
- AutoscalingRole:
- Type: AWS::IAM::Role
- Properties:
- AssumeRolePolicyDocument:
- Statement:
- - Effect: Allow
- Principal:
- Service: [application-autoscaling.amazonaws.com]
- Action: ['sts:AssumeRole']
- Path: /
- Policies:
- - PolicyName: service-autoscaling
- PolicyDocument:
- Statement:
- - Effect: Allow
- Action:
- - 'application-autoscaling:*'
- - 'cloudwatch:DescribeAlarms'
- - 'cloudwatch:PutMetricAlarm'
- - 'ecs:DescribeServices'
- - 'ecs:UpdateService'
- Resource: '*'
+
EC2InstanceProfile:
Type: AWS::IAM::InstanceProfile
Properties:
diff --git a/master-slave/cf-cluster.yml b/master-slave/cf-cluster.yml
index 4f914e5..7330e9d 100644
--- a/master-slave/cf-cluster.yml
+++ b/master-slave/cf-cluster.yml
@@ -208,28 +208,7 @@
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/home/ec2-user/gerritlogsaccess.json -s
# Signal to CloudFormation aws-cfn-bootstrap has been correctly updated
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource ECSAutoScalingGroup --region ${AWS::Region}
- AutoscalingRole:
- Type: AWS::IAM::Role
- Properties:
- AssumeRolePolicyDocument:
- Statement:
- - Effect: Allow
- Principal:
- Service: [application-autoscaling.amazonaws.com]
- Action: ['sts:AssumeRole']
- Path: /
- Policies:
- - PolicyName: service-autoscaling
- PolicyDocument:
- Statement:
- - Effect: Allow
- Action:
- - 'application-autoscaling:*'
- - 'cloudwatch:DescribeAlarms'
- - 'cloudwatch:PutMetricAlarm'
- - 'ecs:DescribeServices'
- - 'ecs:UpdateService'
- Resource: '*'
+
EC2InstanceProfile:
Type: AWS::IAM::InstanceProfile
Properties:
diff --git a/single-master/cf-cluster.yml b/single-master/cf-cluster.yml
index 61035ef..85570e2 100644
--- a/single-master/cf-cluster.yml
+++ b/single-master/cf-cluster.yml
@@ -183,28 +183,7 @@
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/home/ec2-user/gerritlogsaccess.json -s
# Signal to CloudFormation aws-cfn-bootstrap has been correctly updated
/opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource ECSAutoScalingGroup --region ${AWS::Region}
- AutoscalingRole:
- Type: AWS::IAM::Role
- Properties:
- AssumeRolePolicyDocument:
- Statement:
- - Effect: Allow
- Principal:
- Service: [application-autoscaling.amazonaws.com]
- Action: ['sts:AssumeRole']
- Path: /
- Policies:
- - PolicyName: service-autoscaling
- PolicyDocument:
- Statement:
- - Effect: Allow
- Action:
- - 'application-autoscaling:*'
- - 'cloudwatch:DescribeAlarms'
- - 'cloudwatch:PutMetricAlarm'
- - 'ecs:DescribeServices'
- - 'ecs:UpdateService'
- Resource: '*'
+
EC2InstanceProfile:
Type: AWS::IAM::InstanceProfile
Properties: