fix: Eliminates depends_on in policy association using ref to access entry - #3640
Conversation
|
|
This PR has been automatically marked as stale because it has been open 30 days |
|
Not stale |
|
we are unlikely to accept the change as is - its written correctly and this would technically be a breaking change. what issue are you encountering? |
|
There is no breaking change here that I can tell. What are you seeing when you run it that makes it breaking? |
|
it assumes |
|
Hmm, are you sure? When I traced through the inputs, looking for Edit: Yeah, other than Line 273 in 42693d4 |
5f95549 to
bc51917
Compare
bc51917 to
d5f7386
Compare
d5f7386 to
5bde289
Compare
fc1d714 to
9e4d21a
Compare
9e4d21a to
ee34a3c
Compare
|
This PR has been automatically marked as stale because it has been open 30 days |
|
Not stale |
ee34a3c to
e7ffa9f
Compare
|
This PR has been automatically marked as stale because it has been open 30 days |
e7ffa9f to
f7bb877
Compare
f7bb877 to
ae9d4d2
Compare
ae9d4d2 to
eb9c3c6
Compare
Description
By using a reference to the
eks_access_entryresource, we can eliminate thedepends_onin theaws_access_entry_policy_associationresource.Motivation and Context
Using
depends_onis generally frowned on, and can cause odd errors for some terraform operations, especially resource recreating operations. In our case, we were running into problems when refactoring resulted in recreating access entries and policy associations for the same principal. Using a attribute ref helped terraform create the graph properly for more types of operations.Breaking Changes
None.
How Has This Been Tested?
examples/*projectspre-commit run -aon my pull request