Skip to content
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

Auto pause aurora serverless cluster #1

Closed

Conversation

ViktorCollin
Copy link

@ViktorCollin ViktorCollin commented Nov 27, 2024

Description

This is my first time working in Go, so please bare with me if there is anything I did not get correctly

This is a continuation of #40230 by ohookins

Original PR:
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.

Addition:
There is a parameter called seconds_until_auto_pause that allows for configuring how long time the instances have to be inactive before they are paused

Relations

Closes #40226

References

https://aws.amazon.com/blogs/database/introducing-scaling-to-0-capacity-with-amazon-aurora-serverless-v2

Output from Acceptance Testing

Same issue as in te original PR

Copy link

@JanuaryThomas JanuaryThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking into similar functionality

changelogbot and others added 28 commits December 3, 2024 21:53
Bumps the aws-sdk-go-v2 group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/aws/aws-sdk-go-v2/service/athena](https://github.com/aws/aws-sdk-go-v2) | `1.48.5` | `1.49.0` |
| [github.com/aws/aws-sdk-go-v2/service/cloudwatch](https://github.com/aws/aws-sdk-go-v2) | `1.43.2` | `1.43.3` |
| [github.com/aws/aws-sdk-go-v2/service/datazone](https://github.com/aws/aws-sdk-go-v2) | `1.24.1` | `1.25.0` |
| [github.com/aws/aws-sdk-go-v2/service/glue](https://github.com/aws/aws-sdk-go-v2) | `1.102.1` | `1.103.0` |
| [github.com/aws/aws-sdk-go-v2/service/redshiftserverless](https://github.com/aws/aws-sdk-go-v2) | `1.24.4` | `1.25.0` |



Updates `github.com/aws/aws-sdk-go-v2/service/athena` from 1.48.5 to 1.49.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@service/eks/v1.48.5...service/s3/v1.49.0)

Updates `github.com/aws/aws-sdk-go-v2/service/cloudwatch` from 1.43.2 to 1.43.3
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@service/ssm/v1.43.2...service/ssm/v1.43.3)

Updates `github.com/aws/aws-sdk-go-v2/service/datazone` from 1.24.1 to 1.25.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@v1.24.1...v1.25.0)

Updates `github.com/aws/aws-sdk-go-v2/service/glue` from 1.102.1 to 1.103.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/ec2/v1.103.0/CHANGELOG.md)
- [Commits](aws/aws-sdk-go-v2@service/glue/v1.102.1...service/ec2/v1.103.0)

Updates `github.com/aws/aws-sdk-go-v2/service/redshiftserverless` from 1.24.4 to 1.25.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](aws/aws-sdk-go-v2@service/pi/v1.24.4...v1.25.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/athena
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-go-v2
- dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudwatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: aws-sdk-go-v2
- dependency-name: github.com/aws/aws-sdk-go-v2/service/datazone
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-go-v2
- dependency-name: github.com/aws/aws-sdk-go-v2/service/glue
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-go-v2
- dependency-name: github.com/aws/aws-sdk-go-v2/service/redshiftserverless
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws-sdk-go-v2
...

Signed-off-by: dependabot[bot] <[email protected]>
…es/aws-sdk-go-v2-589d3b4213

Bump the aws-sdk-go-v2 group across 1 directory with 5 updates
…meter-group-diffs

docs: Better document perpetual diffs
…ent_agent-update-instructions-validation

feat: update max length for bedrock agent instructions
…aurora-serverless-scaling

Allow Aurora Serverless scaling to zero capacity.
…ter_replica_delete

r/aws_rds_cluster_instance: fix destroy error when cluster instance is in a read replica
@ViktorCollin
Copy link
Author

I created a new PR directly to hashicorps repository as the original PR got merged without my additions. The new PR can be found here hashicorp#40441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Support scaling to zero capacity for aurora serverless v2 instance