File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ steps:
192
192
- my-custom-plugin#v1.0.0:
193
193
` ` `
194
194
195
- # ## AWS ECR specific options
195
+ # ## AWS ECR specific configuration
196
196
197
197
# ### Specifying an ECR repository name
198
198
@@ -212,6 +212,34 @@ steps:
212
212
- docker#v3.3.0
213
213
` ` `
214
214
215
+ # ### Required permissions
216
+
217
+ Below is a sample set of IAM policy statements that will allow this plugin to work :
218
+
219
+ ` ` ` yaml
220
+ - Sid: AllowRepositoryActions
221
+ Action:
222
+ - ecr:BatchCheckLayerAvailability
223
+ - ecr:BatchGetImage
224
+ - ecr:CompleteLayerUpload
225
+ - ecr:CreateRepository
226
+ - ecr:DescribeImages
227
+ - ecr:DescribeRepositories
228
+ - ecr:InitiateLayerUpload
229
+ - ecr:PutImage
230
+ - ecr:PutLifecyclePolicy
231
+ - ecr:SetRepositoryPolicy
232
+ - ecr:UploadLayerPart
233
+ Effect: Allow
234
+ Resource:
235
+ - Fn::Sub: arn:aws:ecr:*:${AWS::AccountId}:repository/build-cache/${YourOrganisationSlug}/${YourPipelineSlug}
236
+ - Sid: AllowGetAuthorizationToken
237
+ Action:
238
+ - ecr:GetAuthorizationToken
239
+ Resource: "*"
240
+ Effect: Allow
241
+ ` ` `
242
+
215
243
# ## GCP GCR specific configuration
216
244
217
245
[Overview of Google Container Registry](https://cloud.google.com/container-registry/docs/overview)
You can’t perform that action at this time.
0 commit comments