π AWS RDS Instance Auto Minor Version Upgrade is not enabled π π’
- Contextual name: π Instance Auto Minor Version Upgrade is not enabled π π’
- ID:
/ce/ca/aws/rds/instance-auto-minor-version-upgrade
- Located in: π AWS RDS
Flagsβ
- π’ Policy with categories
- π Policy with internal.md
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
PERFORMANCE
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-215302da
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-215302da | 1 |
Logicβ
- π§ prod.logic.yaml π’
Internal Notes π β
Notesβ
For some reason, similar policies mention only
mysql
andpostgres
engines in the policyaudit
andremediation
sections. However, AWS documentation tells thatAutoMinorVersionUpgrade
attribute is supported onALL
DB engines: docsWe've modified the
ssh
commands to include all engines (see remediation.md).Our policy document also accepts all engines (doesn't filter any).
Descriptionβ
Descriptionβ
Ensure that RDS database instances have the Auto Minor Version Upgrade flag enabled in order to receive automatically minor engine upgrades during the specified maintenance window. So, RDS instances can get the new features, bug fixes, and security patches for their database engines.
Rationaleβ
AWS RDS will occasionally deprecate minor engine versions and provide new ones for an upgrade. When the last version number within the release is replaced, the version changed is considered minor. With Auto Minor Version Upgrade feature enabled, the version upgrades will occur automatically during the specified maintenance window so your RDS instances can get the new features, bug fixes, and security patches for their database engines.
Auditβ
From Consoleβ
- Log in to the AWS management console and navigate to the RDS dashboard at https://console.aws.amazon.com/rds/.
- In the left navigation panel, click on
Databases
.- Select the RDS instance that wants to examine.
- Click on the
Maintenance and backups
panel.... see more
Remediationβ
Remediationβ
Remediate AWS RDS Instancesβ
Using AWS CLoudFormationβ
- CloudFormation template (JSON):
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Enable Auto Minor Version Upgrade for Database Instances",
"Parameters": {
"DBInstanceName": {
"Default": "mysql-database-instance",
"Description": "RDS database instance name",
"Type": "String",
"MinLength": "1",
"MaxLength": "63",
"AllowedPattern": "^[0-9a-zA-Z-/]*$",
"ConstraintDescription": "Must begin with a letter and must not end with a hyphen or contain two consecutive hyphens."
},
"DBInstanceClass": {
"Default": "db.t2.small",
"Description": "DB instance class/type",
"Type": "String",
"ConstraintDescription": "Must provide a valid DB instance type."
},
"DBAllocatedStorage": {
"Default": "20",
"Description": "The size of the database (GiB)",
"Type": "Number",
"MinValue": "20",
"MaxValue": "65536",
"ConstraintDescription": "Must be between 20 and 65536 GiB."
},
"DBName": {
"Default": "mysqldb",
... [see more](remediation.md)