Closed phr3nzii closed 2 years ago
This issue has been resolved 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
If
create_repository_policy
is set tofalse
the module still tries to create theaws_ecr_repository_policy.this[0]
resource. This PR fixes this so that when this variable is set to false this resource is no longer created.One question I have is whether
create_repository_policy
should default tofalse
? When creating an ECR repository in the console, you do not automatically get a repository policy. I thought about including this change in this PR but thought I would get feedback first. Apologies if this is not the correct place to discuss this. Should I open an issue for this discussion?Motivation and Context
This change is required to fix the expected behaviour.
Breaking Changes
This is not a breaking change
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request