File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 5
5
"Effect" : " Allow" ,
6
6
"Action" : [
7
7
" ec2:DescribeInstances*" ,
8
- " ec2:DescribeTags" ,
9
- " ec2:DeleteTags" ,
10
- " ec2:TerminateInstances"
8
+ " ec2:DescribeTags"
11
9
],
12
10
"Resource" : [" *" ]
11
+ },
12
+ {
13
+ "Effect" : " Allow" ,
14
+ "Action" : [
15
+ " ec2:TerminateInstances"
16
+ ],
17
+ "Resource" : [" *" ],
18
+ "Condition" : {
19
+ "StringEquals" : {
20
+ "ec2:ResourceTag/Application" : " github-action-runner"
21
+ }
22
+ }
13
23
}
14
24
]
15
25
}
Original file line number Diff line number Diff line change 6
6
"Action" : [
7
7
" ec2:DescribeInstances" ,
8
8
" ec2:DescribeTags" ,
9
- " ec2:CreateTags" ,
10
9
" ec2:RunInstances"
11
10
],
12
11
"Resource" : [" *" ]
13
12
},
13
+ {
14
+ "Effect" : " Allow" ,
15
+ "Action" : [
16
+ " ec2:CreateTags"
17
+ ],
18
+ "Resource" : [" *" ],
19
+ "Condition" : {
20
+ "StringEquals" : {
21
+ "ec2:CreateAction" : " RunInstances"
22
+ }
23
+ }
24
+ },
14
25
{
15
26
"Effect" : " Allow" ,
16
27
"Action" : " iam:PassRole" ,
You can’t perform that action at this time.
0 commit comments