-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Python] ECR's "tag immutability" property not available? #4640
[Python] ECR's "tag immutability" property not available? #4640
Comments
Hey @brainstorm, Unfortunately, the field is currently not implemented in CloudFormation. An issue was opened on the roadmap, aws-cloudformation-coverage-roadmap#222. Feel free to add a |
I just stumbled upon this, as I need to set this property and it seems to be available in CloudFormation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-imagetagmutability So the |
Not ideal but since this is now implemented in CloudFormation you can use the raw CFN resource to create it: ecr_props = {
"ImageScanningConfiguration": {
"scanOnPush": "true"
},
"ImageTagMutability": "IMMUTABLE"
}
core.CfnResource(
self,
"ECR",
type="AWS::ECR::Repository",
properties=dict(ecr_props)
) I am sure it is possible to do with an override on the higher level construct but I am not quite sure what that looks like. |
I am done implementing this feature and would like to send pull request today. cc @SomayaB |
This property allows setting tag mutability on ECR repositoes. Tag mutability is useful to ensure image integrity and can prevent supply chain attacks. Closes aws#4640
Anyone have any suggestions on what the override will look like? |
So, this was shipped in November in CF. Any idea where this will be implemented in the CDK? |
This property allows setting tag mutability on ECR repositoes. Tag mutability is useful to ensure image integrity and can prevent supply chain attacks. Closes #4640 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
The Question
The constructor for aws_ecr on CDK python 1.14 seems to lack the ECR tag immutability flag:
Environment
The text was updated successfully, but these errors were encountered: