-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
enhancement(resourcegroups): Add configuration type and attribute #26934
enhancement(resourcegroups): Add configuration type and attribute #26934
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @IainSteers 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
This is crucial for my customer's use of capacity reservations. If this works according to the planned use of |
@dkheyman as well as the acceptance tests, using one of our test AWS accounts I was able to use this resource to create a Host Resource Group, verify the fields in the console. I was then able to reference the created Host-Resource-Group from both the Instance Launch Wizard and a Launch Template successfully and have dedicated hosts and instances spin up. Basically following https://aws.amazon.com/blogs/compute/implementing-autoscaling-for-ec2-mac-instances/ but with this new resource support |
Acceptance test output: % make testacc TESTARGS='-run=TestAccResourceGroupsGroup_' PKG=resourcegroups ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/resourcegroups/... -v -count 1 -parallel 2 -run=TestAccResourceGroupsGroup_ -timeout 180m === RUN TestAccResourceGroupsGroup_basic === PAUSE TestAccResourceGroupsGroup_basic === RUN TestAccResourceGroupsGroup_tags === PAUSE TestAccResourceGroupsGroup_tags === RUN TestAccResourceGroupsGroup_Configuration === PAUSE TestAccResourceGroupsGroup_Configuration === CONT TestAccResourceGroupsGroup_basic === CONT TestAccResourceGroupsGroup_Configuration --- PASS: TestAccResourceGroupsGroup_basic (34.23s) === CONT TestAccResourceGroupsGroup_tags --- PASS: TestAccResourceGroupsGroup_Configuration (58.01s) --- PASS: TestAccResourceGroupsGroup_tags (46.30s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/resourcegroups 84.833s
Acceptance test output: % make testacc TESTARGS='-run=TestAccResourceGroupsGroup_' PKG=resourcegroups ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/resourcegroups/... -v -count 1 -parallel 2 -run=TestAccResourceGroupsGroup_ -timeout 180m === RUN TestAccResourceGroupsGroup_basic === PAUSE TestAccResourceGroupsGroup_basic === RUN TestAccResourceGroupsGroup_tags === PAUSE TestAccResourceGroupsGroup_tags === RUN TestAccResourceGroupsGroup_Configuration === PAUSE TestAccResourceGroupsGroup_Configuration === CONT TestAccResourceGroupsGroup_basic === CONT TestAccResourceGroupsGroup_Configuration --- PASS: TestAccResourceGroupsGroup_basic (34.75s) === CONT TestAccResourceGroupsGroup_tags --- PASS: TestAccResourceGroupsGroup_Configuration (56.45s) --- PASS: TestAccResourceGroupsGroup_tags (44.25s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/resourcegroups 83.145s
…ashicorp#15090). Acceptance test output: % make testacc TESTARGS='-run=TestAccResourceGroupsGroup_' PKG=resourcegroups ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/resourcegroups/... -v -count 1 -parallel 2 -run=TestAccResourceGroupsGroup_ -timeout 180m === RUN TestAccResourceGroupsGroup_basic === PAUSE TestAccResourceGroupsGroup_basic === RUN TestAccResourceGroupsGroup_tags === PAUSE TestAccResourceGroupsGroup_tags === RUN TestAccResourceGroupsGroup_Configuration === PAUSE TestAccResourceGroupsGroup_Configuration === CONT TestAccResourceGroupsGroup_basic === CONT TestAccResourceGroupsGroup_Configuration --- PASS: TestAccResourceGroupsGroup_basic (32.33s) === CONT TestAccResourceGroupsGroup_tags --- PASS: TestAccResourceGroupsGroup_Configuration (53.89s) --- PASS: TestAccResourceGroupsGroup_tags (43.16s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/resourcegroups 79.452s
Acceptance test output: % make testacc TESTARGS='-run=TestAccResourceGroupsGroup_' PKG=resourcegroups ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/resourcegroups/... -v -count 1 -parallel 2 -run=TestAccResourceGroupsGroup_ -timeout 180m === RUN TestAccResourceGroupsGroup_basic === PAUSE TestAccResourceGroupsGroup_basic === RUN TestAccResourceGroupsGroup_tags === PAUSE TestAccResourceGroupsGroup_tags === RUN TestAccResourceGroupsGroup_Configuration === PAUSE TestAccResourceGroupsGroup_Configuration === CONT TestAccResourceGroupsGroup_basic === CONT TestAccResourceGroupsGroup_Configuration --- PASS: TestAccResourceGroupsGroup_basic (34.17s) === CONT TestAccResourceGroupsGroup_tags --- PASS: TestAccResourceGroupsGroup_Configuration (56.72s) --- PASS: TestAccResourceGroupsGroup_tags (45.15s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/resourcegroups 83.659s
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 🚀.
% make testacc TESTARGS='-run=TestAccResourceGroupsGroup_' PKG=resourcegroups ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/resourcegroups/... -v -count 1 -parallel 2 -run=TestAccResourceGroupsGroup_ -timeout 180m
=== RUN TestAccResourceGroupsGroup_basic
=== PAUSE TestAccResourceGroupsGroup_basic
=== RUN TestAccResourceGroupsGroup_tags
=== PAUSE TestAccResourceGroupsGroup_tags
=== RUN TestAccResourceGroupsGroup_Configuration
=== PAUSE TestAccResourceGroupsGroup_Configuration
=== CONT TestAccResourceGroupsGroup_basic
=== CONT TestAccResourceGroupsGroup_Configuration
--- PASS: TestAccResourceGroupsGroup_basic (34.17s)
=== CONT TestAccResourceGroupsGroup_tags
--- PASS: TestAccResourceGroupsGroup_Configuration (56.72s)
--- PASS: TestAccResourceGroupsGroup_tags (45.15s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/resourcegroups 83.659s
@IainSteers Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.36.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. |
Closes #26933
Output from acceptance testing:
I added some new acceptance tests for the configuration group and also verified that the additions don't fail the existing acceptance tests.