-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Aurora Serverless scaling to zero capacity. #40230
Allow Aurora Serverless scaling to zero capacity. #40230
Conversation
Community NoteVoting for Prioritization
For Submitters
|
+1 |
Nice, this enables the scale back to 0 for serverless v2 It is posssible to add the |
This PR should add the |
Documentation should be updated too but + for the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccRDSCluster_serverlessV2ScalingConfiguration\|TestAccRDSCluster_enableHTTPEndpointProvisioned\|TestAccRDSCluster_engineMode' PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSCluster_serverlessV2ScalingConfiguration\|TestAccRDSCluster_enableHTTPEndpointProvisioned\|TestAccRDSCluster_engineMode -timeout 360m
2024/12/04 09:04:40 Initializing Terraform AWS Provider...
=== RUN TestAccRDSCluster_engineMode
=== PAUSE TestAccRDSCluster_engineMode
=== RUN TestAccRDSCluster_serverlessV2ScalingConfiguration
=== PAUSE TestAccRDSCluster_serverlessV2ScalingConfiguration
=== RUN TestAccRDSCluster_enableHTTPEndpointProvisioned
=== PAUSE TestAccRDSCluster_enableHTTPEndpointProvisioned
=== CONT TestAccRDSCluster_engineMode
=== CONT TestAccRDSCluster_enableHTTPEndpointProvisioned
=== CONT TestAccRDSCluster_serverlessV2ScalingConfiguration
--- PASS: TestAccRDSCluster_serverlessV2ScalingConfiguration (174.19s)
--- PASS: TestAccRDSCluster_enableHTTPEndpointProvisioned (190.18s)
--- PASS: TestAccRDSCluster_engineMode (386.20s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 391.747s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
@ohookins Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.80.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
https://aws.amazon.com/blogs/database/introducing-scaling-to-0-capacity-with-amazon-aurora-serverless-v2
Aurora Serverless now supports scaling to 0 (previously the minimum was 0.5). There are some additional checks around specific versions of the engine (e.g. PostgreSQL versions) but these are likely to change reasonably frequently and may not be wise to encode in the provider. API checks at runtime will error out if an incompatible engine version is selected.
Relations
Closes #40226.
Closes #40427.
Closes #40421.
References
https://aws.amazon.com/blogs/database/introducing-scaling-to-0-capacity-with-amazon-aurora-serverless-v2
Output from Acceptance Testing
Not quite sure what's going on here, it doesn't seem related to the change since it happens on the main branch as well. I checked the debug logs and the clusters are created properly, it just doesn't seem to clean up after a provider credential change 🤔