Skip to content

Commit 54aa790

Browse files
committed
target AZSuspenderRole to the specific ASG in the current stack
1 parent 7f880f9 commit 54aa790

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/aws-stack.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,9 @@ Resources:
959959
- Effect: Allow
960960
Action:
961961
- 'autoscaling:SuspendProcesses'
962-
Resource: '*'
962+
Resource: !Sub
963+
- "arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/${LogicalGroupName}"
964+
- LogicalGroupName: !Ref AgentAutoScaleGroup
963965

964966
AzRebalancingSuspenderFunction:
965967
Type: AWS::Lambda::Function

0 commit comments

Comments
 (0)