Review RDS automatic minor upgrades

Manage minor-version patching according to the engine and operating policy.

Description

Automatic minor upgrades install versions AWS designates during maintenance. When the playbook omits the option, check the effective settings on the DB instance and cluster.

Potential impact

Delaying both automatic and manual updates leaves security patches and bug fixes unapplied.

Remediation

For Aurora MySQL automatic upgrades, check the cluster setting and confirm auto_minor_version_upgrade is enabled on every member instance. Test the target version and plan the maintenance window. Set a patch deadline if you manage updates manually.

Examples

The Aurora instance joins an existing cluster that manages the administrator credentials. Use an instance class supported for the engine version in your Region.

Before

yaml
- name: Aurora 인스턴스 생성
  community.aws.rds_instance:
    engine: aurora-mysql
    db_instance_identifier: ansible-test-aurora-db-instance
    instance_type: "{{ aurora_instance_class }}"
    cluster_id: ansible-test-cluster
    auto_minor_version_upgrade: false

- name: MariaDB 인스턴스 생성
  community.aws.rds_instance:
    id: test-encrypted-db
    state: present
    engine: mariadb
    storage_encrypted: true
    db_instance_class: db.t2.medium
    username: "{{ username }}"
    password: "{{ password }}"
    allocated_storage: "{{ allocated_storage }}"

The MariaDB task omits the option. For automatic upgrades, check the effective setting and a backup retention period greater than zero.

After

yaml
- name: Aurora 인스턴스 생성
  community.aws.rds_instance:
    engine: aurora-mysql
    db_instance_identifier: ansible-test-aurora-db-instance
    instance_type: "{{ aurora_instance_class }}"
    cluster_id: ansible-test-cluster
    auto_minor_version_upgrade: true

The second excerpt enables the option on just one Aurora instance.

References