(rds): support for Aurora Serverless V2
See original GitHub issueDescribe the feature
Please like the original post instead of leaving a +1 comment.
Add CDK support for aurora serverless v2 ideally via the ServerlessCluster construct.
edit there’s a few solutions using base cloud formation constructs in the comments. Please see those for a work around.
Currently deploying a Serverless V2 instance via cdk doesn’t seem possible.
I’ve got this far
enum ServerlessInstanceType {
SERVERLESS = 'serverless',
}
type CustomInstanceType = ServerlessInstanceType | ec2.InstanceType;
const CustomInstanceType = {
...ServerlessInstanceType,
...ec2.InstanceType,
};
this.serverlessCluster = new DatabaseCluster(
this,
'ServerlessClusterV2',
{
engine: DatabaseClusterEngine.auroraMysql({
version: AuroraMysqlEngineVersion.of(
'8.0.mysql_aurora.3.02.0'
), // The new minor version of Database Engine.
}),
storageEncrypted: true,
iamAuthentication: true,
parameterGroup: ParameterGroup.fromParameterGroupName(
this,
'rdsClusterPrameterGroup',
'default.aurora-mysql8.0'
),
storageEncryptionKey: new Key(this, 'dbEncryptionKey'),
instanceProps: {
instanceType:
CustomInstanceType.SERVERLESS as unknown as InstanceType,
vpc: props.vpc,
vpcSubnets: {
subnetType: SubnetType.PRIVATE_ISOLATED,
},
},
}
);
but I keep running into this error
Set the Serverless v2 scaling configuration on the parent DB cluster before creating a Serverless v2 DB instance.
Which I can’t figure out a way around.
Use Case
Need to create a DB via CDK. I want to use Serverless V2 because of the support for mysql 8.0.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.15.0
Environment details (OS name and version, etc.)
mac OS X
Issue Analytics
- State:
- Created a year ago
- Reactions:632
- Comments:155 (21 by maintainers)
Top Results From Across the Web
Using Aurora Serverless v2 - AWS Documentation
Aurora Serverless v2 is an on-demand, autoscaling configuration for Amazon Aurora. Aurora Serverless v2 helps to automate the processes of monitoring the ...
Read more >Requirements for Aurora Serverless v2 - 亚马逊云科技
An Aurora cluster must have a ServerlessV2ScalingConfiguration attribute before you can add any DB instances that use the db.serverless DB instance class. This ......
Read more >AWS Aurora Serverless v2: Architecture, Features, Pricing ...
Aurora Serverless v2 does not support the popular Data API, requiring users ... RDS, which offers MySQL, Postgres, Oracle, and SQL Server, ...
Read more >No, AWS, Aurora Serverless v2 Is Not Serverless
The term best describing the offering of Aurora Serverless v2 is “auto-scaling,” which isn't nearly as trendy or as hyped as “serverless.” But ......
Read more >Aurora Serverless V2 with AWS CDK - DEV Community
Aurora Serverless v2 is a new version of Aurora Serverless that provides a new storage engine, Aurora Storage Engine (Aurora SE), and a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, this is definitely on our roadmap. Not sure when we’re going to get to it though - leaving +1s on the issue will definitely help us prioritize.
We also encourage community contributions. Our “Contributing” guide: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md.
Thanks, Adam
I’m happy to see this is such a popular request as I want it too! Could we please 👍 the original description instead of adding +1 comments? I imagine there are many people subscribed to this issue and each of these comments notify all of them. Additionally, adding a 👍 allows the CDK team to sort issues by that reaction to inform priority.