question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Python] ECR's "tag immutability" property not available?

See original GitHub issue

The 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.
        """

Skärmavbild 2019-10-23 kl  16 40 34

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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
nmussycommented, Oct 23, 2019

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.

4reactions
ap00rvcommented, Sep 26, 2020

I am done implementing this feature and would like to send pull request today. cc @SomayaB

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found