-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
feat!: Updated AWS provider to v4, added ECR repo force_delete argument in docker-build module #337
Merged
antonbabenko
merged 8 commits into
terraform-aws-modules:master
from
1Mill:add-ecr_force_delete
Aug 18, 2022
Merged
feat!: Updated AWS provider to v4, added ECR repo force_delete argument in docker-build module #337
antonbabenko
merged 8 commits into
terraform-aws-modules:master
from
1Mill:add-ecr_force_delete
Aug 18, 2022
Conversation
This file contains 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
1Mill
changed the title
feat: Add ecr_force_delete option
feat: Set ECR force_delete argument to true
Aug 8, 2022
1 task
antonbabenko
requested changes
Aug 16, 2022
This reverts commit 51d9a00.
Co-authored-by: Anton Babenko <[email protected]>
…form-aws-lambda into add-ecr_force_delete
antonbabenko
changed the title
feat: Set ECR force_delete argument to true
feat!: Updated AWS provider to v4, added ECR repo force_delete argument in docker-build module
Aug 18, 2022
antonbabenko
approved these changes
Aug 18, 2022
Hi @1Mill ! Thank you for this addition! |
This PR is included in version 4.0.0 🎉 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
Maintain behavior to force delete created
aws_ecr_repository
even if it contains images.Motivation and Context
AWS v4.22.0 introduced a breaking change to the behavior of this module.
Previously,
aws_ecr_repository
resources would always be destroyed, even if they contained images. Now,aws_ecr_repository
resources are only destroyed if either (a) the repository is completely empty of images or (b)force_delete
is set totrue
.This PR sets
force_delete
totrue
so that any createdaws_ecr_repository
resource is always successfully destroyed onterraform destroy
to maintain the existing behavior of this module.Breaking Changes
aws >= 4.22.0
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projects