Skip to content

Commit 56b3362

Browse files
committed
Use wildcard in EC2Policy for StartInstances and StopInstances actions
1 parent 4e7e088 commit 56b3362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/parallelcluster-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ Resources:
699699
- ec2:StartInstances
700700
- ec2:StopInstances
701701
Resource:
702-
- !Sub arn:${AWS::Partition}:ec2:${AWS::Region}:${AWS::AccountId}:instance/*
702+
- !Sub arn:${AWS::Partition}:ec2:*:${AWS::AccountId}:instance/*
703703
Condition:
704704
StringLike:
705705
ec2:ResourceTag/parallelcluster:version: "*"

0 commit comments

Comments
 (0)