Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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`
});
// SECRETS
const secret = new CfnSecret(
this,
"Secret",
secretProps(aurora, DB_CLUSTER_ID)
);
const secret2 = new CfnSecret(
this,
"Secret2",
secretProps(aurora2, `${DB_CLUSTER_ID}2`)
);
secret.addDependsOn(aurora);
secret2.addDependsOn(aurora2);
new CfnOutput(this, "AASASecretArn", {
value: secret.ref
});
new CfnOutput(this, "AASASecretArn2", {
value: secret2.ref
});
// TEST USER
const user = new User(this, "TestUser");
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`
});
// SECRETS
const secret = new CfnSecret(
this,
"Secret",
secretProps(aurora, DB_CLUSTER_ID)
);
const secret2 = new CfnSecret(
this,
"Secret2",
secretProps(aurora2, `${DB_CLUSTER_ID}2`)
);
secret.addDependsOn(aurora);
secret2.addDependsOn(aurora2);
new CfnOutput(this, "AASASecretArn", {
value: secret.ref
});
new CfnOutput(this, "AASASecretArn2", {
value: secret2.ref