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!
It is now possible to create an
AWS::RDS::DBCluster
with anEngineMode
set toserverless
. See more here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginemodeSimple answer - No. Not till they make it available in CFN. As of 1-2 days ago, the
EngineMode
andScalingConfiguration
property are not yet available in the RDS API, as my API call threw this error. First they will make available the APIs/cli. Once that works, create a CFNCustom Resource
to invoke the RDS API from a lambda. It might be a while before it is made directly available in CFN.And I know role/permission is not a problem as I could launch normal
Aurora
cluster from the same.PS: RDS APIs now work for serverless
Edit: Some time in Oct 18,
EngineMode
added to CFN, so now this is possible -> https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginemodeThanks for Chris's update. As an example, here is my cloudFormation template for serverless aurora. We no longer need the
DBInstance
.More complete example of all available options for RDS (including Aurora): https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html
I found an article that indicated that the Go SDK has been updated with the EngineMode parameter, and when I looked through the AWS SDK changelog, I found some RDS updates in the most recent versions. I've had to manually update my AWS CLI to the latest release to get my shell scripts working with that option.
https://github.com/aws/aws-cli/releases
https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst
https://github.com/terraform-providers/terraform-provider-aws/issues/5503
No news on the CloudFormation side though.