-
-
Notifications
You must be signed in to change notification settings - Fork 135
Add support for image_tag_mutability_exclusion_filter in ECR repositories #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Benbentwo
merged 15 commits into
main
from
copilot/fix-7d6b6c27-e54c-419f-bb97-e9127134b18f
Sep 22, 2025
Merged
Add support for image_tag_mutability_exclusion_filter in ECR repositories #153
Benbentwo
merged 15 commits into
main
from
copilot/fix-7d6b6c27-e54c-419f-bb97-e9127134b18f
Sep 22, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request was automatically closed as it no longer contains any changes. This typically happens when another merged pull request has already included this request's |
…form code Co-authored-by: Benbentwo <[email protected]>
…n_filter feature Co-authored-by: Benbentwo <[email protected]>
Copilot finished work on behalf of
Benbentwo
September 18, 2025 19:53
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
/terratest |
goruha
approved these changes
Sep 22, 2025
These changes were released in v1.0.0. |
This was referenced Sep 25, 2025
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements support for the
image_tag_mutability_exclusion_filter
feature in AWS ECR repositories, allowing fine-grained control over tag mutability settings.Problem
ECR repositories previously only supported global
image_tag_mutability
settings (MUTABLE
orIMMUTABLE
), which applied to all tags uniformly. This created limitations in scenarios where users needed mixed mutability - for example, keeping production tags immutable while allowing development tags likelatest
,dev-*
, orfeature-*
to be mutable.Solution
Added comprehensive support for
image_tag_mutability_exclusion_filter
which allows users to define specific tag patterns that should be excluded from the repository's global mutability setting.Key Changes
New Variable: Added
image_tag_mutability_exclusion_filter
variable with proper type definition:Dynamic Resource Block: Implemented dynamic block in
aws_ecr_repository
resource to conditionally apply exclusion filters.Comprehensive Validation: Added validation rules to ensure:
filter_type
must be a valid value (WILDCARD
)filter
values cannot be empty or whitespace-onlyProvider Version Update: Updated minimum AWS provider version to
>= 6.8.0
to support this feature across all modules and examples.Usage Example
This enables scenarios where production tags remain immutable for safety, while development and utility tags maintain flexibility for iterative workflows.
Documentation
Updated README.md with comprehensive documentation including:
Testing
Breaking Changes
This is an additive feature that defaults to an empty list, preserving existing behavior.
HOWEVER the AWS Provider is updated two major versions.
Requirements
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint-api.hashicorp.com
terraform version
(dns block)terraform init
(dns block)terraform fmt -check
(dns block)esm.ubuntu.com
/usr/lib/apt/methods/https
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.