You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-ecr/README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,11 +51,29 @@ grants an IAM user access to call this API.
51
51
52
52
```ts
53
53
import*asiamfrom'@aws-cdk/aws-iam';
54
+
import*asecrfrom'@aws-cdk/aws-ecr';
54
55
55
56
const user =newiam.User(this, 'User', { ... });
56
-
iam.AuthorizationToken.grantRead(user);
57
+
ecr.AuthorizationToken.grantRead(user);
57
58
```
58
59
60
+
If you access images in the [Public ECR Gallery](https://gallery.ecr.aws/) as well, it is recommended you authenticate to the regsitry to benefit from
61
+
higher rate and bandwidth limits.
62
+
63
+
> See `Pricing` in https://aws.amazon.com/blogs/aws/amazon-ecr-public-a-new-public-container-registry/ and [Service quotas](https://docs.aws.amazon.com/AmazonECR/latest/public/public-service-quotas.html).
64
+
65
+
The following code snippet grants an IAM user access to retrieve an authorization token for the public gallery.
This user can then proceed to login to the registry using one of the [authentication methods](https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html#public-registry-auth).
76
+
59
77
## Automatically clean up repositories
60
78
61
79
You can set life cycle rules to automatically clean up old images from your
// GetAuthorizationToken only allows '*'. See https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonelasticcontainerregistry.html#amazonelasticcontainerregistry-actions-as-permissions
38
+
// GetServiceBearerToken only allows '*'. See https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssecuritytokenservice.html#awssecuritytokenservice-actions-as-permissions
0 commit comments