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

feat(DBCluster): add SecondsUntilAutoPause to ServerlessV2ScalingConfiguration #582

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

zrfr
Copy link
Collaborator

@zrfr zrfr commented Nov 19, 2024

Adds support for the automatic pause/resume feature of Aurora Serverless v2 (recently added to the AWS Java SDK 2.29.16)

The CFN handler framework automatically handles certain exceptions and
returns a failed response. Changing test_handleRequest_base to do the
same.
import software.amazon.awssdk.services.rds.RdsClient;
import software.amazon.awssdk.services.rds.RdsClientBuilder;
import software.amazon.rds.common.client.BaseSdkClientProvider;
import software.amazon.rds.common.client.RdsUserAgentProvider;

public class ClientBuilder extends BaseSdkClientProvider<RdsClientBuilder, RdsClient> {

private static final int MAX_RETRIES = 5;

private static final RetryPolicy RETRY_POLICY = RetryPolicy.builder()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removing deprecated API

@zrfr zrfr marked this pull request as ready for review November 19, 2024 15:36
…iguration

Adds support for the automatic pause/resume feature of
Aurora Serverless v2.

Also bumping the AWS Java SDK to 2.29.16.
@zrfr zrfr force-pushed the seconds-until-auto-pause-v2 branch from bcb37e4 to b5b820a Compare November 21, 2024 06:12
@zrfr
Copy link
Collaborator Author

zrfr commented Nov 21, 2024

Updated to support resetting SecondsUntilAutoPause to the default, instead of rejecting the request (and removing the awful validation I had before).

@zrfr zrfr added this pull request to the merge queue Nov 22, 2024
Merged via the queue into aws-cloudformation:master with commit dc9cb4b Nov 22, 2024
1 check passed
@zrfr zrfr deleted the seconds-until-auto-pause-v2 branch November 22, 2024 00:49
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.

2 participants