-
Notifications
You must be signed in to change notification settings - Fork 9.9k
fix: allow update of database_insights_mode for db_instance #41960
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
fix: allow update of database_insights_mode for db_instance #41960
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
|
ewbankkit
left a comment
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=TestAccRDSInstance_PerformanceInsights_databaseInsightsMode' PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.7 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSInstance_PerformanceInsights_databaseInsightsMode -timeout 360m -vet=off
2025/03/23 18:23:12 Initializing Terraform AWS Provider...
=== RUN TestAccRDSInstance_PerformanceInsights_databaseInsightsMode
=== PAUSE TestAccRDSInstance_PerformanceInsights_databaseInsightsMode
=== CONT TestAccRDSInstance_PerformanceInsights_databaseInsightsMode
--- PASS: TestAccRDSInstance_PerformanceInsights_databaseInsightsMode (1135.51s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 1141.457s|
@stefanfreitag Thanks for the contribution 🎉 👏. |
|
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.93.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
When updating the
database_insights_modefor adb_instance, additional details about the performance insights configuration needs to be passed along (performance_insights_enabledandperformance_insights_retention_period) to the AWS API.At the moment this additional information is missing, causing the error message
This pull request focuses on adding the details for
db_instance, but it looks like theclusteris also affected (link to source code in References section).Relations
database_insights_modeon existing cluster #41792References
clusterresource, here onlyperformance_insights_enabledis added to the input.Output from Acceptance Testing
I enhanced an already existing test for the
database_insights_modeto address the case of non-changing performance insights log retention when updating fromstandardtoadvancedmode.