Skip to content

ServerlessV2ScalingConfiguration doesn't allow MinCapacity to be set to 0, and SecondsUntilAutoPause to be defined

0

I have the following CF template...

AuroraServerlessCluster:
    Type: 'AWS::RDS::DBCluster'
    Properties:
      Engine: aurora-mysql
      EngineVersion: 8.0.mysql_aurora.3.08.0 
      DatabaseName: !Sub "aurora-database-${Environment}"
      Username: admin #This is not the correct field name but I cannot post this using the word that comes before Username
      UserPassword: Password123! #This is not the correct field name but I cannot post this using the word that comes before UserPassword
      ServerlessV2ScalingConfiguration:
        MinCapacity: 0.5
        MaxCapacity: 4
        # SecondsUntilAutoPause: 300
      EnableHttpEndpoint: true
      EnableIAMDatabaseAuthentication: true
      StorageEncrypted: true

But I want the MinCapacity to be 0 and to be able to set SecondsUntilAutoPause. These options do not seem to be allowed? How come? And is there any other way I can do this, without creating the resource manually?

Thank you!

2 Answers
0

Hello,

Thank you for your query regarding the Aurora Serverless v2 configuration in CloudFormation. I've investigated your concerns and can provide the following information:

1. Scaling to 0 ACUs:

Amazon Aurora Serverless v2 recently added support for scaling capacity down to 0 ACUs. However, this feature is not yet reflected in the CloudFormation resource type for AWS::RDS::DBCluster.

2. SecondsUntilAutoPause:

While the AWS CLI supports the --serverless-v2-scaling-configuration option with SecondsUntilAutoPause, CloudFormation does not currently include this property in its ServerlessV2ScalingConfiguration.

3. CloudFormation limitations:

As of now, there is no way to set these options (MinCapacity to 0 and SecondsUntilAutoPause) using CloudFormation alone.

4. Existing issue:

This limitation has been reported to the CloudFormation team. You can track the progress of this feature request on GitHub: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2202

5. Alternative approaches:

Unfortunately, there isn't a straightforward way to implement these specific configurations without manual intervention or using additional automation outside of CloudFormation.

I recommend keeping an eye on the GitHub issue for updates. In the meantime, you may need to consider creating or modifying the resource manually after initial deployment, or explore custom solutions using AWS Lambda or other automation tools to apply these configurations post-deployment.

If you have any further questions or need additional clarification, please don't hesitate to ask.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

-1
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Cloudformation doesn't seem to allow you to define this though?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.