Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an Aurora Serverless Cluster from cloudformation?

Tags:

From Aurora Serverless's document, there are 3 ways to create an Aurora serverless DB cluster: AWS management console, CLI, and RDS API. (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/aurora-serverless.create.html)

Form my understanding, one would use EngineMode in the RDS API to create Aurora Serverless, but this property is not available in AWS::RDS::DBCluster yet (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html).

Would it be possible to create an Aurora Serverless Cluster from cloudformation? Any advice would be appreciated!

like image 247
howard.h Avatar asked Aug 16 '18 14:08

howard.h


People also ask

How do I make an Aurora Serverless cluster?

To create a new Aurora Serverless v1 DB cluster with the AWS CLI, run the create-db-cluster command and specify serverless for the --engine-mode option. You can optionally specify the --scaling-configuration option to configure the minimum capacity, maximum capacity, and automatic pause when there are no connections.

What is difference between Aurora and Aurora Serverless?

Amazon Aurora and Aurora Serverless are two distinct products from AWS. While Amazon's Aurora lets you use cloud-based computing resources to test and run your applications, the Aurora Serverless is a configuration that enables automated capacity scaling and for connecting applications.

What is a limitation of Amazon Aurora serverless?

All Aurora Serverless v1 DB clusters have the following limitations: You can't export Aurora Serverless v1 snapshots to Amazon S3 buckets. You can't save data to text files in Amazon S3. You can't use AWS Database Migration Service and Change Data Capture (CDC) with Aurora Serverless v1 DB clusters.


1 Answers

Thanks for Chris's update. As an example, here is my cloudFormation template for serverless aurora. We no longer need the DBInstance.

  RDSCluster:     Type: AWS::RDS::DBCluster     Properties:       MasterUsername:          Ref: DBUsername       MasterUserPassword:          Ref: DBPassword       DatabaseName: RANDOMNAME       Engine: aurora       EngineMode: serverless       ScalingConfiguration:         AutoPause: true         MaxCapacity: 16         MinCapacity: 2         SecondsUntilAutoPause: 300       DBSubnetGroupName:         Ref: DBSubnetGroup 

More complete example of all available options for RDS (including Aurora): https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html

like image 190
howard.h Avatar answered Oct 10 '22 06:10

howard.h