[Enhancement]: AWS RDS: Check for valid values of performance_insights_retention_period during plan #34342
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
Description
The valid values for the performance insights retention period are 7, 731 (2 years) or a multiple of 31. This is properly documented. However, in case of an invalid value terraform plan does not complain, you will get the error only after trying to apply the change.
Could we check the value even during the terraform plan?
This is related to #25931.
Affected Resource(s) and/or Data Source(s)
aws_db_instance and aws_rds_cluster_instance
Potential Terraform Configuration
No response
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#performance_insights_retention_period
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: