-
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
resource/aws_placement_group: add support for the attribute partition count #15360
Conversation
This seems to be a different version of #7649, but which currently merges. I notice the docs say it defaults to I wonder if Hashicorp hates partitioning or something, there are a ton of PRs bringing in this functionality that never make it :(. |
22df73a
to
39c601c
Compare
@sean- Can we get an update on this? |
@hansh0801 I'm waiting for this, too, just like you are. Having only two placement groups in some AZs for some workloads is a problem for me. It would be great if someone from HashiCorp could merge this PR. |
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.
LGTM 🚀.
Commercial
% make testacc TESTARGS='-run=TestAccAWSPlacementGroup_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSPlacementGroup_ -timeout 180m
=== RUN TestAccAWSPlacementGroup_basic
=== PAUSE TestAccAWSPlacementGroup_basic
=== RUN TestAccAWSPlacementGroup_disappears
=== PAUSE TestAccAWSPlacementGroup_disappears
=== RUN TestAccAWSPlacementGroup_Tags
=== PAUSE TestAccAWSPlacementGroup_Tags
=== RUN TestAccAWSPlacementGroup_PartitionCount
=== PAUSE TestAccAWSPlacementGroup_PartitionCount
=== CONT TestAccAWSPlacementGroup_basic
=== CONT TestAccAWSPlacementGroup_PartitionCount
=== CONT TestAccAWSPlacementGroup_disappears
=== CONT TestAccAWSPlacementGroup_Tags
--- PASS: TestAccAWSPlacementGroup_disappears (15.26s)
--- PASS: TestAccAWSPlacementGroup_PartitionCount (19.42s)
--- PASS: TestAccAWSPlacementGroup_basic (19.42s)
--- PASS: TestAccAWSPlacementGroup_Tags (38.50s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 41.731s
% make testacc TESTARGS='-run=TestAccAWSInstanceDataSource_basic\|TestAccAWSInstance_placementGroup\|TestAccAWSInstance_placementPartitionNumber\|TestAccAWSInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstanceDataSource_basic\|TestAccAWSInstance_placementGroup\|TestAccAWSInstance_placementPartitionNumber\|TestAccAWSInstance_basic -timeout 180m
=== RUN TestAccAWSInstanceDataSource_basic
=== PAUSE TestAccAWSInstanceDataSource_basic
=== RUN TestAccAWSInstance_basic
=== PAUSE TestAccAWSInstance_basic
=== RUN TestAccAWSInstance_placementGroup
=== PAUSE TestAccAWSInstance_placementGroup
=== RUN TestAccAWSInstance_placementPartitionNumber
=== PAUSE TestAccAWSInstance_placementPartitionNumber
=== CONT TestAccAWSInstanceDataSource_basic
=== CONT TestAccAWSInstance_placementPartitionNumber
=== CONT TestAccAWSInstance_placementGroup
=== CONT TestAccAWSInstance_basic
--- PASS: TestAccAWSInstance_basic (100.89s)
--- PASS: TestAccAWSInstance_placementGroup (115.92s)
--- PASS: TestAccAWSInstanceDataSource_basic (121.01s)
--- PASS: TestAccAWSInstance_placementPartitionNumber (122.68s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 126.291s
GovCloud
% make testacc TESTARGS='-run=TestAccAWSPlacementGroup_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSPlacementGroup_ -timeout 180m
=== RUN TestAccAWSPlacementGroup_basic
=== PAUSE TestAccAWSPlacementGroup_basic
=== RUN TestAccAWSPlacementGroup_disappears
=== PAUSE TestAccAWSPlacementGroup_disappears
=== RUN TestAccAWSPlacementGroup_Tags
=== PAUSE TestAccAWSPlacementGroup_Tags
=== RUN TestAccAWSPlacementGroup_PartitionCount
=== PAUSE TestAccAWSPlacementGroup_PartitionCount
=== CONT TestAccAWSPlacementGroup_basic
=== CONT TestAccAWSPlacementGroup_PartitionCount
=== CONT TestAccAWSPlacementGroup_Tags
=== CONT TestAccAWSPlacementGroup_disappears
--- PASS: TestAccAWSPlacementGroup_disappears (16.13s)
--- PASS: TestAccAWSPlacementGroup_basic (21.47s)
--- PASS: TestAccAWSPlacementGroup_PartitionCount (21.50s)
--- PASS: TestAccAWSPlacementGroup_Tags (45.86s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 49.135s
% make testacc TESTARGS='-run=TestAccAWSInstanceDataSource_basic\|TestAccAWSInstance_placementGroup\|TestAccAWSInstance_placementPartitionNumber\|TestAccAWSInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstanceDataSource_basic\|TestAccAWSInstance_placementGroup\|TestAccAWSInstance_placementPartitionNumber\|TestAccAWSInstance_basic -timeout 180m
=== RUN TestAccAWSInstanceDataSource_basic
=== PAUSE TestAccAWSInstanceDataSource_basic
=== RUN TestAccAWSInstance_basic
=== PAUSE TestAccAWSInstance_basic
=== RUN TestAccAWSInstance_placementGroup
=== PAUSE TestAccAWSInstance_placementGroup
=== RUN TestAccAWSInstance_placementPartitionNumber
=== PAUSE TestAccAWSInstance_placementPartitionNumber
=== CONT TestAccAWSInstanceDataSource_basic
=== CONT TestAccAWSInstance_placementPartitionNumber
=== CONT TestAccAWSInstance_placementGroup
=== CONT TestAccAWSInstance_basic
--- PASS: TestAccAWSInstance_placementPartitionNumber (95.41s)
--- PASS: TestAccAWSInstanceDataSource_basic (102.07s)
--- PASS: TestAccAWSInstance_basic (107.74s)
--- PASS: TestAccAWSInstance_placementGroup (126.75s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 130.003s
@sean- Thanks for the contribution 🎉 👏. |
Thank you for merging it!!! I'm going to ping you with a few more PRs in the future (waiting sucks). |
This functionality has been released in v3.63.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Setting
partition_count
changes the number of internal partitions AWS uses to distribute resources within a particular AZ. Only applicable for thepartition
strategy. API docs: https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#CreatePlacementGroupInputFixes: #7754
Community Note
Closes #7754
Release note for CHANGELOG:
Output from acceptance testing: