RDS instance uses an outdated CA certificate

Replace the CA certificate with a valid one supported by RDS.

Description

Set the RDS instance’s ca_cert_identifier to a CA supported by its engine version and Region. Replacements for rds-ca-2019, which expired in 2024, include rds-ca-rsa2048-g1, rds-ca-rsa4096-g1 and rds-ca-ecc384-g1.

Potential impact

Clients that verify TLS certificates can lose connectivity if the CA expires or they do not trust the replacement.

Remediation

Install the new CA on clients that connect directly to the instance. Check whether the engine needs a restart, apply the change and reconnect with certificate verification enabled.

Examples

The examples change the same MySQL instance from rds-ca-2015 to rds-ca-rsa2048-g1. Supply a compatible engine version and instance class for your Region and provide the real password securely.

Before

hcl
resource "aws_db_instance" "example" {
  allocated_storage                   = 20
  storage_type                        = "gp2"
  engine                              = "mysql"
  engine_version                      = var.mysql_engine_version
  instance_class                      = var.db_instance_class
  db_name                             = "mydb"
  username                            = "foo"
  password                            = "foobarbaz"
  iam_database_authentication_enabled = true
  storage_encrypted                   = true
  ca_cert_identifier                  = "rds-ca-2015"
}

After

hcl
resource "aws_db_instance" "example" {
  allocated_storage                   = 20
  storage_type                        = "gp2"
  engine                              = "mysql"
  engine_version                      = var.mysql_engine_version
  instance_class                      = var.db_instance_class
  db_name                             = "mydb"
  username                            = "foo"
  password                            = "foobarbaz"
  iam_database_authentication_enabled = true
  storage_encrypted                   = true
  ca_cert_identifier                  = "rds-ca-rsa2048-g1"
}

References