Description
Check which CA the RDS instance uses. A playbook that omits ca_certificate_identifier does not tell you the active CA. The older rds-ca-2019 expired in 2024.
Potential impact
A client that verifies the server certificate can lose its database connection if the certificate expires or its trust store lacks the new CA.
Remediation
Choose a G1 CA supported by the engine version and Region. Update the trust stores of clients that connect directly to the instance, and schedule a restart if required. After rotating the instance CA, reconnect with certificate verification enabled.
Examples
Both tasks target the same existing DB instance. The first uses the historical rds-ca-2015 value. The second selects rds-ca-rsa2048-g1.
Before
- name: Update the DB instance CA
amazon.aws.rds_instance:
db_instance_identifier: ansible-test-aurora-db-instance
ca_certificate_identifier: rds-ca-2015
After
- name: Update the DB instance CA
amazon.aws.rds_instance:
db_instance_identifier: ansible-test-aurora-db-instance
ca_certificate_identifier: rds-ca-rsa2048-g1