-
Notifications
You must be signed in to change notification settings - Fork 9.6k
r/aws_controltower_control: handle removal of parameters block #42494
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
Conversation
Previously, removal of a configured `parameters` block would result in an error due to the update request body being serialized with a nil `Parameters` argument rather than an empty array. This change now returns an empty slice from the `parameters` expander when no value is configured.
…ng delete Previously the delete operation did not gracefully handle `ResourceNotFound` exceptions returned by the `DisableControl` API. Now these errors will be handled by the provider, allowing the apply operation to proceed without error.
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible. |
…rameters` test ```console % TF_AWS_CONTROLTOWER_CONTROL_OU_NAME=<redacted> make testacc PKG=controltower TESTS=TestAccControlTower_serial/Control/ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.8 test ./internal/service/controltower/... -v -count 1 -parallel 20 -run='TestAccControlTower_serial/Control/' -timeout 360m -vet=off 2025/05/05 16:50:01 Initializing Terraform AWS Provider... === RUN TestAccControlTower_serial === PAUSE TestAccControlTower_serial === CONT TestAccControlTower_serial === RUN TestAccControlTower_serial/Control === RUN TestAccControlTower_serial/Control/basic === RUN TestAccControlTower_serial/Control/disappears === RUN TestAccControlTower_serial/Control/parameters --- PASS: TestAccControlTower_serial (349.28s) --- PASS: TestAccControlTower_serial/Control (349.28s) --- PASS: TestAccControlTower_serial/Control/basic (85.56s) --- PASS: TestAccControlTower_serial/Control/disappears (86.00s) --- PASS: TestAccControlTower_serial/Control/parameters (177.72s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/controltower 354.847s ```
0a2125f
to
3c63649
Compare
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 🚀.
% TF_AWS_CONTROLTOWER_CONTROL_OU_NAME=... make testacc PKG=controltower TESTS=TestAccControlTower_serial/Control/
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.8 test ./internal/service/controltower/... -v -count 1 -parallel 20 -run='TestAccControlTower_serial/Control/' -timeout 360m -vet=off
2025/05/06 11:14:44 Initializing Terraform AWS Provider...
=== RUN TestAccControlTower_serial
=== PAUSE TestAccControlTower_serial
=== CONT TestAccControlTower_serial
=== RUN TestAccControlTower_serial/Control
=== RUN TestAccControlTower_serial/Control/basic
=== RUN TestAccControlTower_serial/Control/disappears
=== RUN TestAccControlTower_serial/Control/parameters
--- PASS: TestAccControlTower_serial (348.57s)
--- PASS: TestAccControlTower_serial/Control (348.57s)
--- PASS: TestAccControlTower_serial/Control/basic (85.36s)
--- PASS: TestAccControlTower_serial/Control/disappears (85.54s)
--- PASS: TestAccControlTower_serial/Control/parameters (177.68s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/controltower 353.562s
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.98.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. |
Description
Previously, removal of a configured
parameters
block would result in an error due to the update request body being serialized with a nilParameters
argument rather than an empty array. This change now returns an empty slice from theparameters
expander when no value is configured.Relations
Closes #42485
Output from Acceptance Testing