Skip to content

Commit 8baf486

Browse files
committed
Adding legacy StringEquals
1 parent 66bcc58 commit 8baf486

File tree

1 file changed

+61
-45
lines changed

1 file changed

+61
-45
lines changed
Lines changed: 61 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,64 @@
11
{
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"
4625
}
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+
]
4864
}

0 commit comments

Comments
 (0)