Skip to content

Commit

Permalink
Document minimal IAM Role for launching instance
Browse files Browse the repository at this point in the history
  • Loading branch information
probably-not committed Jan 6, 2025
1 parent 0985885 commit 172f280
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions lib/flame_ec2.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,52 @@ defmodule FlameEC2 do
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ec2RunInstances",
"Effect": "Allow",
"Action": [
"ec2:DescribeTags",
"ec2:CreateTags",
"ec2:DeleteTags",
"ec2:RunInstances"
],
"Resource": "*"
},
{
"Sid": "ssmParameters",
"Effect": "Allow",
"Action": [
"ssm:GetParameters"
],
"Resource": "*"
},
{
"Sid": "iamRolePassing",
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::*:instance-profile/*"
],
"Condition": {
"StringEquals": {
"iam:PassedToService": "ec2.amazonaws.com"
}
}
},
{
"Sid": "s3GetRelease",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject"
],
"Resource": "*"
}
]
}
```
Expand Down

0 comments on commit 172f280

Please sign in to comment.