resource/aws_placement_group: Remove hardcoded upper limit for partition_count #45060
+4
−1
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.
Description
This PR removes the hardcoded upper limit (7) for the
partition_countargument in theaws_placement_groupresource.AWS has mutable service limits for partition count, so Terraform should defer validation to the AWS API instead of enforcing a static upper bound. This change replaces
validation.IntBetween(0, 7)withvalidation.IntAtLeast(0).Motivation and Context
Deferring this validation to AWS allows Terraform to remain compatible with future updates without requiring provider releases whenever limits change.
This aligns with HashiCorp’s principle of avoiding hardcoded API limits that can change on the AWS side.
Affected Resource(s)
aws_placement_groupChanges Made