cloudposse / terraform-aws-rds

Terraform module to provision AWS RDS instances
https://cloudposse.com/accelerate
Apache License 2.0
157 stars 180 forks source link

aws_rds_cluster needs to be able to set Auto minor version upgrade #191

Open drakeravenspire opened 1 month ago

drakeravenspire commented 1 month ago

Describe the Feature

aws_rds_cluster needs to be able to set Auto minor version upgrade. Currently we are only able to set auto minor version upgrade on the instance level. Unfortunantly AWS now sometimes requires that this be set on both the instance level and the cluster level.

Expected Behavior

When I set enable_auto_minor_version = true using the aws_rds_cluster resource, then the managed rds cluster in AWS will be set Auto minor version upgrade to true in aws.

Use Case

Currently we have AWS clusters with all instances set to enable auto minor version upgrade, however the instances will not pick up the newer minor instances. When we use the AWS CLI to enable the auto_minor_upgrade then the new minor version of the cluster becomes available.

cluster_identifier="cluster-identifier-here"

aws rds modify-db-cluster \
    --db-cluster-identifier "$cluster_identifier" \
    --apply-immediately \
    --auto-minor-version-upgrade

Describe Ideal Solution

add the ability to enable auto minor upgrade on the aws_rds_cluster resource.

Alternatives Considered

We have applied manualy using the CSI as a workaround for now.

Additional Context

No response