File tree Expand file tree Collapse file tree 1 file changed +61
-45
lines changed Expand file tree Collapse file tree 1 file changed +61
-45
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "Version" : " 2012-10-17" ,
3
- "Statement" : [
4
- {
5
- "Effect" : " Allow" ,
6
- "Action" : [
7
- " ec2:DescribeInstances" ,
8
- " ec2:DescribeTags"
9
- ],
10
- "Resource" : [
11
- " *"
12
- ]
13
- },
14
- {
15
- "Effect" : " Allow" ,
16
- "Action" : [
17
- " ec2:TerminateInstances"
18
- ],
19
- "Resource" : [
20
- " *"
21
- ],
22
- "Condition" : {
23
- "StringEquals" : {
24
- "ec2:ResourceTag/ghr:Application" : " github-action-runner"
25
- }
26
- }
27
- },
28
- {
29
- "Effect" : " Allow" ,
30
- "Action" : [
31
- " ssm:GetParameter"
32
- ],
33
- "Resource" : [
34
- " ${github_app_key_base64_arn}" ,
35
- " ${github_app_id_arn}"
36
- ]
37
- %{ if kms_key_arn != "" ~ }
38
- },
39
- {
40
- "Effect" : " Allow" ,
41
- "Action" : [
42
- " kms:Decrypt"
43
- ],
44
- "Resource" : " ${kms_key_arn}"
45
- %{ endif ~ }
2
+ "Version" : " 2012-10-17" ,
3
+ "Statement" : [
4
+ {
5
+ "Effect" : " Allow" ,
6
+ "Action" : [
7
+ " ec2:DescribeInstances" ,
8
+ " ec2:DescribeTags"
9
+ ],
10
+ "Resource" : [
11
+ " *"
12
+ ]
13
+ },
14
+ {
15
+ "Effect" : " Allow" ,
16
+ "Action" : [
17
+ " ec2:TerminateInstances"
18
+ ],
19
+ "Resource" : [
20
+ " *"
21
+ ],
22
+ "Condition" : {
23
+ "StringEquals" : {
24
+ "ec2:ResourceTag/ghr:Application" : " github-action-runner"
46
25
}
47
- ]
26
+ }
27
+ },
28
+ {
29
+ "Effect" : " Allow" ,
30
+ "Action" : [
31
+ " ec2:TerminateInstances"
32
+ ],
33
+ "Resource" : [
34
+ " *"
35
+ ],
36
+ "Condition" : {
37
+ "StringEquals" : {
38
+ "ec2:ResourceTag/Application" : " github-action-runner"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "Effect" : " Allow" ,
44
+ "Action" : [
45
+ " ssm:GetParameter"
46
+ ],
47
+ "Resource" : [
48
+ " ${github_app_key_base64_arn}" ,
49
+ " ${github_app_id_arn}"
50
+ ]
51
+ %{ if kms_key_arn != "" ~
52
+ }
53
+ },
54
+ {
55
+ "Effect" : " Allow" ,
56
+ "Action" : [
57
+ " kms:Decrypt"
58
+ ],
59
+ "Resource" : " ${kms_key_arn}"
60
+ %{ endif ~
61
+ }
62
+ }
63
+ ]
48
64
}
You can’t perform that action at this time.
0 commit comments