Skip to content

Commit 432fd5e

Browse files
authored
Specify asg perm resources in InstancePolicy
1 parent b84d760 commit 432fd5e

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
@@ -716,10 +716,13 @@ Resources:
716716
- cloudwatch:PutMetricData
717717
- cloudformation:DescribeStackResource
718718
- ec2:DescribeTags
719+
Resource: "*"
720+
- Effect: Allow
721+
Action:
719722
- autoscaling:DescribeAutoScalingInstances
720723
- autoscaling:SetInstanceHealth
721724
- autoscaling:TerminateInstanceInAutoScalingGroup
722-
Resource: "*"
725+
Resource: !Sub arn:${AWS::Partition}:autoscaling:${AWS::Region}:${AWS::AccountId}:autoScalingGroup:*:autoScalingGroupName/${AWS::StackName}-AgentAutoScaleGroup-*
723726
- Effect: Allow
724727
Action:
725728
- logs:CreateLogGroup

0 commit comments

Comments
 (0)