File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,24 @@ Resources:
7
7
EncryptionType : AES256
8
8
ImageScanningConfiguration :
9
9
ScanOnPush : true
10
+ LifecyclePolicy :
11
+ LifecyclePolicyText : |
12
+ {
13
+ "rules": [
14
+ {
15
+ "rulePriority": 1,
16
+ "description": "Keep newest",
17
+ "selection": {
18
+ "tagStatus": "any",
19
+ "countType": "imageCountMoreThan",
20
+ "countNumber": 5
21
+ },
22
+ "action": {
23
+ "type": "expire"
24
+ }
25
+ }
26
+ ]
27
+ }
10
28
11
29
Outputs :
12
30
GoCaptureRepository :
Original file line number Diff line number Diff line change @@ -72,8 +72,12 @@ Resources:
72
72
ecr:DescribeRepositories,
73
73
ecr:GetAuthorizationToken,
74
74
ecr:GetDownloadUrlForLayer,
75
+ ecr:GetRepositoryPolicy,
75
76
ecr:InitiateLayerUpload,
77
+ ecr:ListTagsForResource,
76
78
ecr:PutImage,
79
+ ecr:PutImageScanningConfiguration,
80
+ ecr:PutLifecyclePolicy,
77
81
ecr:UploadLayerPart
78
82
],
79
83
" Resource " : " *"
You can’t perform that action at this time.
0 commit comments