Hi all,
I want to create a simple MYSQL RDS Auror instance :
- 1 instance for staging env
- 2 instances (1 mastr + 1 replica) for PROD
I would like to know, in the case of non-stage env, if this code creates 1 Aurora DB with 1 replica (instances: 2), or create 2 mastr DB, each one of them has replicas?
const instanceCluster = new rds.DatabaseCluster(this, 'AuroraDatabase', {
engine,
credentials: Credentials.fromSecret(xxxxx),
port: xxxxxx,
**instances: props.env["ENV"] === 'stage' ? 1 : 2,**
defaultDatabaseName: xxxxxxx,
instanceProps: {
.......
........
Thanks.