Closed JamesWhyley closed 2 years ago
Thank you for the issue - I'll take a look
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Creating a private repository with
repository_lifecycle_policy
omitted or set to a value of""
results in a validation error being thrown.Versions
Reproduction Code [Required]
Steps to reproduce the behavior:
Run a plan against the above. This results in successful completion.
Running apply against the plan then creates the requested resources but also returns the following:
Upon closer inspection of the plan, the following unexpected resource is listed.
Expected behavior
Empty ECR repository created with no lifecycle policy.
Actual behavior
Empty ECR repository is created as expected but with a validation error thrown for lifecycle policy creation that wasn't requested.
Additional context
Not a huge issue from our point of view as we're working around the validation error by adding a policy that won't be triggered by anything in the repository but thought it worth mentioning.
Addendum. A colleague has advised that the same behaviour is observed even if
create_repository_policy = false
is set.