[Python] ECR's "tag immutability" property not available?
See original GitHub issueThe Question
The constructor for aws_ecr on CDK python 1.14 seems to lack the ECR tag immutability flag:
"""Define an ECR repository."""
def __init__(self, scope: aws_cdk.core.Construct, id: str, *, lifecycle_registry_id: typing.Optional[str]=None, lifecycle_rules: typing.Optional[typing.List["LifecycleRule"]]=None, removal_policy: typing.Optional[aws_cdk.core.RemovalPolicy]=None, repository_name: typing.Optional[str]=None) -> None:
"""
:param scope: -
:param id: -
:param props: -
:param lifecycle_registry_id: The AWS account ID associated with the registry that contains the repository. Default: The default registry is assumed.
:param lifecycle_rules: Life cycle rules to apply to this registry. Default: No life cycle rules
:param removal_policy: Determine what happens to the repository when the resource/stack is deleted. Default: RemovalPolicy.Retain
:param repository_name: Name for this repository. Default: Automatically generated name.
"""
Environment
- CDK CLI Version: 1.14.0 (build 261a1bf)
- Module Version: aws-cdk.aws-ecr==1.14.0
- OS: OSX Catalina 10.15
- Language: Python
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Image tag mutability - Amazon ECR - AWS Documentation
When tag immutability is enabled for a repository, this affects all tags and you cannot make some tags immutable while others aren't. You...
Read more >Ensure ECR image tags are immutable - Documentation
Arguments: Properties.ImageTagMutability - (Optional) The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE.
Read more >ECR — Boto3 Docs 1.26.35 documentation - Amazon AWS
If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten. imageScanningConfiguration ( ...
Read more >aws.ecr.Repository - Pulumi
The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE . Defaults to MUTABLE . name ...
Read more >docker - Retagging image on AWS ECR creates new image
The repository setting has immutability disabled. I would rather avoid the docker pull , docker tag , docker push approach as this will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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
+1
reaction to the issue to encourage the CloudFormation team to add it.I am done implementing this feature and would like to send pull request today. cc @SomayaB