Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
dbParamGroup.addDependsOn(dbSubnetGroup);
// AURORA SERVERLESS CLUSTERS
const aurora = new CfnDBCluster(
this,
"AuroraServerless",
auroraProps(
DB_NAME,
DB_CLUSTER_ID,
dbSubnetGroup.dbSubnetGroupName,
dbParamGroup
)
);
const aurora2 = new CfnDBCluster(
this,
"AuroraServerless2",
auroraProps(
`${DB_NAME}2`,
`${DB_CLUSTER_ID}2`,
dbSubnetGroup.dbSubnetGroupName,
dbParamGroup
)
);
aurora.addDependsOn(dbParamGroup);
aurora2.addDependsOn(dbParamGroup);
new CfnOutput(this, "AASAResourceArn", {
value: `arn:aws:rds:${this.region}:${this.account}:cluster:${DB_CLUSTER_ID}`
});
new CfnOutput(this, "AASAResourceArn2", {
value: `arn:aws:rds:${this.region}:${this.account}:cluster:${DB_CLUSTER_ID}2`
innodb_file_format: "Barracuda",
character_set_client: "utf8mb4",
character_set_connection: "utf8mb4",
character_set_database: "utf8mb4",
character_set_results: "utf8mb4",
character_set_server: "utf8mb4",
collation_server: "utf8mb4_unicode_ci",
collation_connection: "utf8mb4_unicode_ci"
}
}
);
dbParamGroup.addDependsOn(dbSubnetGroup);
// AURORA SERVERLESS CLUSTERS
const aurora = new CfnDBCluster(
this,
"AuroraServerless",
auroraProps(
DB_NAME,
DB_CLUSTER_ID,
dbSubnetGroup.dbSubnetGroupName,
dbParamGroup
)
);
const aurora2 = new CfnDBCluster(
this,
"AuroraServerless2",
auroraProps(
`${DB_NAME}2`,
`${DB_CLUSTER_ID}2`,
dbSubnetGroup.dbSubnetGroupName,