[Bug]: Can't create RDS instances when default account CA isn't supported by engine #39371
Labels
bug
Addresses a defect in current functionality.
service/rds
Issues and PRs that pertain to the rds service.
Terraform Core Version
1.9.5
AWS Provider Version
5.67.0
Affected Resource(s)
Expected Behavior
It should be possible to create RDS instances with specific CAs that are specified with
ca_cert_identifier
, for example SQL Server withrds-ca-rsa4096-g1
. It's not possible to create these instances current when the RDS default CA is overridden (https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyCertificates.html) to one that isn't supported by the engine and/or engine version, egaws rds modify-certificates --certificate-identifier rds-ca-ecc384-g1
.Actual Behavior
The RDS instance can't be created because the RDS default CA is used, and then the
ca_cert_identifier
is applied afterwards https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/rds/instance.go#L1802-L1806.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
aws rds modify-certificates --certificate-identifier rds-ca-ecc384-g1
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: