dazzling-sundown-39670
07/03/2020, 10:34 PMconst m2cluster = new aws.rds.Cluster(
'magento2-cluster',
{
backupRetentionPeriod: 5,
masterUsername: mysqlUser,
masterPassword: mysqlPassword,
preferredBackupWindow: '07:00-09:00',
deletionProtection: !isDev,
vpcSecurityGroupIds: [sg.id],
dbSubnetGroupName: subnetGroup.name,
tags: pulumiTags,
clusterIdentifierPrefix: 'magento2-cluster',
databaseName: 'MAGENTO',
skipFinalSnapshot: isDev,
// finalSnapshotIdentifier: 'magento2-cluster-snapshot',
storageEncrypted: true,
},
{
dependsOn: subnetGroup,
},
);
const mysqlProvider = new mysql.Provider(
'mysql',
{
endpoint: m2cluster.endpoint,
username: m2cluster.masterUsername,
password: m2cluster.masterPassword.apply((p) => p!.toString()),
},
{
dependsOn: m2cluster,
},
);
millions-furniture-75402
07/06/2020, 2:12 PMdazzling-sundown-39670
07/07/2020, 8:22 AM