Skip to content

Commit c31f469

Browse files
author
CloudHero
committed
Merge branch 'master' of github.com:cloud-hero/hero-cli
2 parents 3366bb1 + 26231b0 commit c31f469

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ $./hero provider add digital_ocean -a DO_Access_Token --name my_dev_cloud
6161
$./hero provider add ec2 -a access_key -s secret_key --name my_prod_cloud
6262
```
6363

64+
We prepared for you [the minimum required IAM policy](https://github.com/cloud-hero/hero-cli/blob/master/docs/AWS-policy.md) for CloudHero.
65+
In that example you can see that CloudHero is only allowed to work in Irland and it only needs just a few permissions.
66+
6467
|Parameter|Description|
6568
| --------- | ------- |
6669
|access_key | A valid AWS EC2 access key

docs/AWS-policy.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
3+
4+
```
5+
{
6+
"Version": "2012-10-17",
7+
"Statement": [
8+
{
9+
"Action": [
10+
"ec2:DescribeInstances",
11+
"ec2:DescribeAvailabilityZones",
12+
"ec2:DescribeSubnets",
13+
"ec2:DescribeImages",
14+
"ec2:DescribeTags",
15+
"ec2:DescribeRegions",
16+
"ec2:CreateTags",
17+
"ec2:CreateNetworkInterface",
18+
"ec2:CreateKeyPair",
19+
"ec2:CreateSecurityGroup",
20+
"ec2:DescribeKeyPairs",
21+
"ec2:DescribeSecurityGroups",
22+
"ec2:AuthorizeSecurityGroupEgress",
23+
"ec2:AuthorizeSecurityGroupIngress",
24+
"ec2:ImportKeyPair",
25+
"ec2:DeleteTags",
26+
"ec2:StartInstances",
27+
"ec2:RunInstances",
28+
"ec2:ModifyInstanceAttribute",
29+
"ec2:ModifyNetworkInterfaceAttribute",
30+
"ec2:StopInstances",
31+
"ec2:TerminateInstances"
32+
],
33+
"Resource": "*",
34+
"Effect": "Allow",
35+
"Condition": {
36+
"StringEquals": {
37+
"ec2:Region": "eu-west-1"
38+
}
39+
}
40+
}
41+
]
42+
}
43+
```

0 commit comments

Comments
 (0)