resource/aws_s3_bucket: Mark replication_configuration rules id attribute as required #2543
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #665
The
rules
underreplication_configuration
are currently TypeSet with the hash computed including the ID attribute when available. However, when creating a rule that omits the ID attribute (allowing AWS to generate the ID), the plan will always show a difference due to the hash changing. Rather than deal with a state migration to TypeList on a critical resource for seemingly little benefit, set this attribute asRequired
as the least effort option to make the resource configuration less surprising.I do not believe this needs to be marked as a breaking change, due to the current behavior.
If there are better ways to handle this via the
Set
function or some other way, please let me know!