HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

How to set 'image tag mutability' using CloudFormation?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
mutabilityimagetagcloudformationusinghowset

Problem

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.

Solution

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.

Context

StackExchange DevOps Q#9087, answer score: 3

Revisions (0)

No revisions yet.