-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS EC2 partition number support #7777
Conversation
AWS added partition placement group feature which uses partition_count argument. So I added partiton_count argument to set the number.
currently using this locally without any issues. +1 |
partition_count := d.Get("partition_count").(int) | ||
|
||
if strategy != "partition" && partition_count > 1 { | ||
log.Printf("[WARN] partition_count is only valid for storategy partition for PlacementGroup") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Printf("[WARN] partition_count is only valid for storategy partition for PlacementGroup") | |
log.Printf("[WARN] partition_count is only valid for strategy partition for PlacementGroup") |
I updated this for the latest provider if you want to merge my changes (and also make sure I have the tests done correctly... I'm not a Go programmer): https://github.com/art19/terraform-provider-aws/tree/art19-v2.53.0 I wonder how we get Hashicorp to notice this PR? |
FYI, there is another implementation of this feature that is tightly scoped to just the placement groups in #15360 |
@david-cako Thanks for the contribution 🎉 👏. |
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. |
Changes proposed in this pull request:
placement_partition_number
for AWS EC2 instances.partition_count
foraws_placement_group
TestAccAWSInstance_placementGroup
(was not in functional state in forked commit -- instance no longer available and AMI incompatible)Output from acceptance testing: