Skip to content

Commit 172f280

Browse files
committed
Document minimal IAM Role for launching instance
1 parent 0985885 commit 172f280

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

lib/flame_ec2.ex

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,52 @@ defmodule FlameEC2 do
2929
3030
```json
3131
{
32+
"Version": "2012-10-17",
33+
"Statement": [
34+
{
35+
"Sid": "ec2RunInstances",
36+
"Effect": "Allow",
37+
"Action": [
38+
"ec2:DescribeTags",
39+
"ec2:CreateTags",
40+
"ec2:DeleteTags",
41+
"ec2:RunInstances"
42+
],
43+
"Resource": "*"
44+
},
45+
{
46+
"Sid": "ssmParameters",
47+
"Effect": "Allow",
48+
"Action": [
49+
"ssm:GetParameters"
50+
],
51+
"Resource": "*"
52+
},
53+
{
54+
"Sid": "iamRolePassing",
55+
"Effect": "Allow",
56+
"Action": [
57+
"iam:PassRole"
58+
],
59+
"Resource": [
60+
"arn:aws:iam::*:instance-profile/*"
61+
],
62+
"Condition": {
63+
"StringEquals": {
64+
"iam:PassedToService": "ec2.amazonaws.com"
65+
}
66+
}
67+
},
68+
{
69+
"Sid": "s3GetRelease",
70+
"Effect": "Allow",
71+
"Action": [
72+
"s3:ListBucket",
73+
"s3:GetObject"
74+
],
75+
"Resource": "*"
76+
}
77+
]
3278
}
3379
```
3480

0 commit comments

Comments
 (0)