Skip to content

Commit 62597bb

Browse files
authored
Merge pull request #33 from sourcetoad/issue-32
docs: add information about codedeploy permissions
2 parents 4104d5a + cf6584e commit 62597bb

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ Following inputs can be used as `step.with` keys
6363

6464
## IAM Permissions
6565

66-
You shouldn't be using a root user. Below is a snippet of an inline policy with perfect permissions for action.
66+
You shouldn't be using a root user. Below are snippets of an inline policies with suggested permissions for the action.
67+
68+
* You might need to adapt these to fit your use case.
69+
* You will need to insert proper resources/ARNs to make the snippets below valid.
6770

6871
```json
6972
{
@@ -86,6 +89,40 @@ You shouldn't be using a root user. Below is a snippet of an inline policy with
8689
}
8790
```
8891

92+
* This restricts the action to uploading an object and listing/getting the object so it can obtain the location for CodeDeploy
93+
* It is restricted to a specific bucket.
94+
95+
For deploying via CodeDeploy you will need another set of permissions.
96+
```json
97+
{
98+
"Version": "2012-10-17",
99+
"Statement": [
100+
{
101+
"Action": [
102+
"codedeploy:CreateDeployment"
103+
],
104+
"Effect": "Allow",
105+
"Resource": [
106+
"arn:aws:codedeploy:codedeploy-arn"
107+
]
108+
},
109+
{
110+
"Action": [
111+
"codedeploy:Batch*",
112+
"codedeploy:Get*",
113+
"codedeploy:List*",
114+
"codedeploy:RegisterApplicationRevision"
115+
],
116+
"Effect": "Allow",
117+
"Resource": "*"
118+
}
119+
]
120+
}
121+
```
122+
123+
* These permissions are a rough example of allowing the user to list/get/register a revision for all resources
124+
* A specific permission statement exists to lock creating the deployment to a specific resource
125+
89126
---
90127

91128
### Install as Local Action

0 commit comments

Comments
 (0)