3

When one would like to create an Elastic Container Registry then it is possible to set 'image tag mutability':

Image tag mutability

The image tag mutability setting for the repository. Select "immutable" to prevent image tags from being overwritten by subsequent image pushes using the same tag. Mutable Immutable

According to this user guide it does not seem to be possible to configure this using AWS CloudFormation.

  • As Dan1701 said unfortunately it takes some time for features to make it into CloudFormation. Not that this is a suitable answer, but just in case you have the ability to use a different tool... have a look at Terraform (which does support ECR immutable image tags) or Pulumi (which probably does, but I don't use it so am not sure). – Tim Malone Oct 14 '19 at 7:04
3

The ImageTagMutability property in ECR is not currently supported in CloudFormation, as verified by experimentation (nor is it part of the LifecyclePolicy property). There is sometimes lag between feature availability in CloudFormation, and the mutability flag was only introduced in late July.

This comes up elsewhere in the corners of AWS, including:

  • AWS Global Accelerator - this entire service is not provisionable using CloudFormation.
  • AWS WAF geo match rules cannot be created in CFN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.