Skip to content

Commit 7539344

Browse files
authored
Merge pull request #800 from nitrocode/patch-5
Specify asg perm resources in InstancePolicy
2 parents d9cc963 + 432fd5e commit 7539344

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/aws-stack.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,13 @@ Resources:
732732
- cloudwatch:PutMetricData
733733
- cloudformation:DescribeStackResource
734734
- ec2:DescribeTags
735+
Resource: "*"
736+
- Effect: Allow
737+
Action:
735738
- autoscaling:DescribeAutoScalingInstances
736739
- autoscaling:SetInstanceHealth
737740
- autoscaling:TerminateInstanceInAutoScalingGroup
738-
Resource: "*"
741+
Resource: !Sub arn:${AWS::Partition}:autoscaling:${AWS::Region}:${AWS::AccountId}:autoScalingGroup:*:autoScalingGroupName/${AWS::StackName}-AgentAutoScaleGroup-*
739742
- Effect: Allow
740743
Action:
741744
- logs:CreateLogGroup

0 commit comments

Comments
 (0)