(rds): Add missing AuroraMysqlEngineVersion version 2.11.1 #24677
Replies: 6 comments
-
Hi @ilja-trifonovs-monto , thanks for reaching out. Here is the doc link which shows its already supported by CDK. |
Beta Was this translation helpful? Give feedback.
-
Hi @khushail, yep this is what I am looking for. `TSError: ⨯ Unable to compile TypeScript: 55 engine: DatabaseClusterEngine.auroraMysql({ version: AuroraMysqlEngineVersion.VER_2_11_1 }),`
|
Beta Was this translation helpful? Give feedback.
-
We added this support in #24304 And I can Let me know if the sample code works with you. import * as cdk from 'aws-cdk-lib';
import { aws_rds as rds,
aws_ec2 as ec2 } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class AuroramysqlStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
new rds.DatabaseCluster(this, 'Cluster', {
engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_11_1 }),
credentials: rds.Credentials.fromGeneratedSecret('clusteradmin'),
instanceProps: {
vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
vpc: ec2.Vpc.fromLookup(this, 'Vpc', { isDefault: true }),
},
})
}
} |
Beta Was this translation helpful? Give feedback.
-
I don't understand why, but when I try to deploy this code I am getting an error `Iljas-mac:cdk-app iljatrifonovs$ cdk synth CdkAppStack 11 engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_11_1 }), ../../../node_modules/aws-cdk-lib/aws-rds/lib/cluster-engine.d.ts:204:21 14 vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
diagnosticCodes: [ 2551, 2339 ] Subprocess exited with error 1` |
Beta Was this translation helpful? Give feedback.
-
Hi, it is super weird.
so I do not understand why visual studio code affects cdk deploy |
Beta Was this translation helpful? Give feedback.
-
Can you run I doubt your global cdk CLI executable might be way too old. Can you try |
Beta Was this translation helpful? Give feedback.
-
Describe the feature
AuroraMysqlEngineVersion 2.11.1 is missing in latest CDK
Use Case
Allow provisioning Aurora 2.11.1 from the CDK
Proposed Solution
Update AuroraMysqlEngineVersion to include newer versions
Other Information
No response
Acknowledgements
CDK version used
2.69.0
Environment details (OS name and version, etc.)
macOS Ventura Version 13.2.1 (22D68)
Beta Was this translation helpful? Give feedback.
All reactions