Closed phr3nzii closed 2 years ago
This PR is included in version 1.3.0 :tada:
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.
Description
create_lifecycle_policy
totrue
if you want a lifecycle policy to be created.create_repository_policy
variable to policy creationMotivation and Context
Sometimes a lifecycle policy isn't needed or wanted. This fixes https://github.com/terraform-aws-modules/terraform-aws-ecr/issues/2 Closes #5
Breaking Changes
I wouldn't call this a breaking change. However, users who do want to have a lifecycle policy created will need to add the new variable to ensure that it is created.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull requestI have tested using the complete example by setting
create_lifecycle_policy
to bothtrue
andfalse
. I've also updated this example to ensure that the lifecycle policy is created in future.I also tested this using the reproduction code from https://github.com/terraform-aws-modules/terraform-aws-ecr/issues/2