terraform-aws-modules / terraform-aws-ecr

Terraform module to create AWS ECR resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/ecr/aws
Apache License 2.0
52 stars 109 forks source link

feat: Add a new variable to control the creation of a lifecycle policy #4

Closed phr3nzii closed 2 years ago

phr3nzii commented 2 years ago

Description

Motivation 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?

I have tested using the complete example by setting create_lifecycle_policy to both true and false. 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

antonbabenko commented 2 years ago

This PR is included in version 1.3.0 :tada:

github-actions[bot] commented 1 year ago

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.