RDS instances should have automatic minor version upgrades turned on
This check looks at the auto minor version upgrade setting on each Amazon RDS database instance. The safe setting is on, so backward-compatible engine updates are applied in the maintenance window instead of waiting for someone to schedule them.
Why it matters
Database engines receive bug fixes and security fixes through minor versions. AWS describes a minor version upgrade as containing only changes that are backward-compatible with existing applications. When the setting is off, an instance stays on its current minor version until a person remembers to upgrade it, and known issues stay open in the meantime.
AWS also notes that it can apply a minor upgrade even when the option is off, for critical security issues or when a version reaches its end-of-support date. Turning the option on means you decide that this happens in your maintenance window rather than on a date you did not choose. Source: Amazon RDS User Guide, Upgrading a DB instance engine version.
How to check it yourself
In the AWS console open RDS > Databases, select an instance and look for the Auto minor version upgrade value in its details. To list every instance in a region with a read-only command:
aws rds describe-db-instances \
--region eu-west-1 \
--query "DBInstances[].{Id:DBInstanceIdentifier,Engine:Engine,Version:EngineVersion,AutoMinor:AutoMinorVersionUpgrade}" \
--output tableAny row where AutoMinor is False is a finding. Repeat for each region you use. Run it with a read-only role first.
How to fix it
In the console choose the instance, then Modify, switch on Auto minor version upgrade, and choose to apply it during the next scheduled maintenance window. The same change from the command line:
aws rds modify-db-instance \
--db-instance-identifier my-db-instance \
--auto-minor-version-upgrade \
--no-apply-immediatelyCheck the instance's maintenance window first and move it to a quiet period if needed. ConfigCobra itself is read-only and never changes your AWS account; these steps are yours to run.
What changes when you fix it
Nothing changes at the moment you switch the setting on. Later, in the maintenance window, RDS runs a precheck, upgrades the engine to the target minor version and runs post-upgrade checks. AWS states that automatic upgrades incur downtime, and the length depends on the engine type and the size of the database.
The people affected are the owners of applications that use the database: connections drop during the upgrade and need to reconnect. Teams that must stay on one exact version, for example while testing a vendor application, should upgrade manually on their own schedule and record that as a deliberate exception. If you plan to migrate an RDS for PostgreSQL instance to Aurora soon, AWS advises turning auto upgrades off early in the planning.
Included in
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Amazon Web Services Foundations v7.0.0 | 3.2.2 | Level 1 |
Check this on your AWS
ConfigCobra runs this check with every other control of the CIS Amazon Web Services Benchmarks, read-only.