2 Answers
- Newest
- Most votes
- Most comments
0
This is supported as follows.
Tag prefix list
tagPrefixList
Type: list[string]
Required: yes, only if tagStatus is set to tagged
Only used if you specified "tagStatus": "tagged". You must specify a comma-separated list of image tag prefixes on which to take action with your lifecycle policy.
For example, if your images are tagged as prod, prod1, prod2, and so on, you would use the tag prefix prod to specify all of them. If you specify multiple tags, only the images with all specified tags are selected.
Ensure you also set the tagStatus to tagged also. Try main, master, latest without any square brackets which is what we usually use to define a list in TF.
https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lp_tag_prefix_list
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago