-
Couldn't load subscription status.
- Fork 9.8k
changed aws_guardduty_feature additional_configuration from list to set #44627
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
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
|
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 🎉
--- PASS: TestAccGuardDuty_serial (102.90s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature (102.90s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/basic (14.67s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/additional_configuration (32.79s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/additional_configuration_order (19.76s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/multiple (35.67s)|
@icco Thanks for the rebase! @joelmccoy Thanks for your contribution! |
| Schema: map[string]*schema.Schema{ | ||
| "additional_configuration": { | ||
| Optional: true, | ||
| ForceNew: true, |
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.
It may show in the plan, but ForceNew has no effect since Delete is NoOp.
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.
It's an interesting resource. ForceNew makes little difference (Delete is no-op). Ignoring the order is the key.
--- PASS: TestAccGuardDuty_serial (136.40s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature (136.40s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/additional_configuration (34.22s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/additional_configuration_new_order (19.74s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/additional_configuration_migrate_list_to_set (35.77s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/basic (11.72s)
--- PASS: TestAccGuardDuty_serial/DetectorFeature/multiple (34.95s)|
Findings for future travelers:
|
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 🚀
|
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 v6.18.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! |
Rollback Plan
Not needed.
Changes to Security Controls
No
Description
This is a rebase of #36985.
Description
This changes the aws_guardduty_detector_feature additional_configuration type from a list to a set. This is so that the order of the additional configurations does not matter. Before pushing this fix, if you didn't provide the additional_configurations in the order the AWS API returns them, there would be a force replace on every terraform apply.
I added an additional acceptance test to confirm that the ordering of the additional_configurations doesn't matter and that an empty plan is returned no matter the order.
Relations
Closes #36400
Closes #36695
Closes #36985
References
Output from Acceptance Testing