hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[Enhancement]: AutoMinorVersionUpgrade for non-Aurora rds_cluster #38539

Open dreid opened 4 months ago

dreid commented 4 months ago

Description

The AutoMinorVersionUpgrade attribute can used to control whether a Multi-AZ DB Cluster has minor version upgrades automatically applied.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_rds_cluster" "cluster" {
    ...
    auto_minor_version_upgrade = true
    ...
}

References

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html#:~:text=Required%3A%20No-,AutoMinorVersionUpgrade,-Specifies%20whether%20minor

Would you like to implement a fix?

None

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

scrudge commented 1 month ago

In our testing this feature needs to be enabled at the cluster level as well as the instance level. Please consider adding this parameter to the aws_rds_cluster resource, as we are unable to automate enabling this feature. We currently have to fix this post provisiioning either using the AWS CLI or in the console:

cluster_identifier="your-aurora-postgres-cluster-identifier"

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