π‘οΈ 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 - Tags:
- π’ Policy with categories
- π Policy with internal.md
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY,RELIABILITY,PERFORMANCE
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [RDS.13] RDS automatic minor version upgrades should be enabled
- Cloud Conformity: RDS Auto Minor Version Upgrade
- Internal:
dec-x-215302da
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-215302da | 1 |
Internal Notes π β
Notesβ
For some reason, similar policies mention only
mysqlandpostgresengines in the policyauditandremediationsections. However, AWS documentation tells thatAutoMinorVersionUpgradeattribute is supported onALLDB engines: docsWe've modified the
sshcommands 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 backupspanel.... see more
Remediationβ
Remediationβ
Remediate AWS RDS Instancesβ
Using AWS CloudFormationβ
- CloudFormation template (YAML):
AWSTemplateFormatVersion: '2010-09-09'
Description: Enables automatic minor version upgrades for an existing RDS instance.
Parameters:
DBInstanceIdentifier:
Type: String
Description: ID of the existing RDS instance
Resources:
AutoMinorUpgradeRDS:
Type: AWS::RDS::DBInstance
Properties:
DBInstanceIdentifier: !Ref DBInstanceIdentifier
AutoMinorVersionUpgrade: trueUsing Terraformβ
- Terraform configuration file (.tf):
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
provider "aws" {
profile = "default"
region = "us-east-1"
}
resource "aws_db_instance" "rds-database-instance" {
allocated_storage = 20
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t2.small"
name = "mysqldb"
username = "ccmysqluser01"
password = "ccmysqluserpwd"
... [see more](remediation.md)