Skip to content

Commit ada4eef

Browse files
James Healypda
andauthored
Update templates/aws-stack.yml
Co-authored-by: Paul Annesley <[email protected]>
1 parent 54aa790 commit ada4eef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

templates/aws-stack.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,7 @@ Resources:
959959
- Effect: Allow
960960
Action:
961961
- 'autoscaling:SuspendProcesses'
962-
Resource: !Sub
963-
- "arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/${LogicalGroupName}"
964-
- LogicalGroupName: !Ref AgentAutoScaleGroup
962+
Resource: !Sub arn:${AWS::Partition}:autoscaling:${AWS::Region}:${AWS::AccountId}:autoScalingGroup:*:autoScalingGroupName/${AgentAutoScaleGroup}
965963

966964
AzRebalancingSuspenderFunction:
967965
Type: AWS::Lambda::Function
@@ -1127,4 +1125,3 @@ Resources:
11271125
Action: "lambda:InvokeFunction"
11281126
Principal: "events.amazonaws.com"
11291127
SourceArn: !GetAtt AutoscalingLambdaScheduledRule.Arn
1130-

0 commit comments

Comments
 (0)