Closed realharry closed 5 years ago
Serverless can be created with the cdk. See https://github.com/aws/aws-cdk/issues/929#issuecomment-516511171
Use the following: Engine: aurora Mode: serverless EngineVersion: 2.3
MinCapacity: 8 (required min)
When in doubt, always check the aws cli docs to see what valid values are. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.create.html
Thanks, @ApocDev Yes, I think I had some mixups with regions and/or other params. I was finally able to deploy it on us-west-2.
I'm submitting a ...
What is the current behavior? If the current behavior is a :beetle:bug:beetle:: Please provide the steps to reproduce
Call to
new CfnDBCluster()
withengineMode: 'serverless'
fails oncdk deploy
.For example, here's an example code:
(I tried various different combinations of engines (e.g., aurora vs aurora-postgresql) and engVersions, and paramGroupNames, etc. with consistent results. It fails to deploy.)
The error I get:
Anything that can be created via CloudFormation should be create-able using CDK, even with low level CFN constructs.
Documentation does not explicitly mention that aurora serverless cannot be created via CDK. https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-rds.CfnDBCluster.html
Likewise, CloudFormation doc does not state that it cannot create aurora serverless.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
This is related to https://github.com/aws/aws-cdk/issues/929, which requests for a way to create Aurora Serverless using high-level RDS constructs.
Note: I tried it on various regions including us-west-1 and us-west-2 with the same results.