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.63k stars 9.01k forks source link

[Enhancement]: aws_rds_cluster: Support for Aurora I/O-Optimized Storage #31431

Closed aviau closed 1 year ago

aviau commented 1 year ago

Description

Allow for enabling Aurora I/O-Optimized Storage as described in this article:

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

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

No

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

aviau commented 1 year ago

Nvm, looks like this is already available as follows:

storage_type = "aurora-iopt1"
bengotow commented 1 year ago

Hey gang! This looks like it works great but for Aurora Serverless v2, changing the storage type to I/O optimized does not require instance replacement and Terraform thinks that it does. I modified my existing deployment manually in AWS and then updated Terraform to match because I didn't want to tear down and replace the databases.

Edit: The docs specify:

(Forces new for Multi-AZ DB clusters) Specifies the storage type to be associated with the DB cluster. For Aurora DB clusters, storage_type modifications can be done in-place.

I think that maybe these two checks are being done in the wrong order. For Aurora Serverless Multi-AZ DB Clusters, the "is aurora" rule might need to override "is multi AZ"? Just a random guess :-)

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.