diff --git a/usecases/blea-guest-ecs-app-sample/lib/construct/canary.ts b/usecases/blea-guest-ecs-app-sample/lib/construct/canary.ts index 29754a04a..d1ffe37ca 100644 --- a/usecases/blea-guest-ecs-app-sample/lib/construct/canary.ts +++ b/usecases/blea-guest-ecs-app-sample/lib/construct/canary.ts @@ -50,7 +50,7 @@ export class Canary extends Construct { }), // It's recommended that use the latest runtime version. // See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_5, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, environmentVariables: { TARGETHOST: props.appEndpoint, TARGETPATH: '/', diff --git a/usecases/blea-guest-ecs-app-sample/lib/construct/datastore.ts b/usecases/blea-guest-ecs-app-sample/lib/construct/datastore.ts index 3c7334c99..ca7ef9352 100644 --- a/usecases/blea-guest-ecs-app-sample/lib/construct/datastore.ts +++ b/usecases/blea-guest-ecs-app-sample/lib/construct/datastore.ts @@ -35,16 +35,28 @@ export class Datastore extends Construct { // version: rds.AuroraMysqlEngineVersion.VER_2_09_1 // }), credentials: rds.Credentials.fromGeneratedSecret('dbadmin'), - instanceProps: { + vpcSubnets: { + subnetType: SubnetType.PRIVATE_ISOLATED, + }, + vpc: props.vpc, + writer: rds.ClusterInstance.provisioned('Instance1', { + instanceIdentifier: 'Datastore1', instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM), - vpcSubnets: { - subnetType: SubnetType.PRIVATE_ISOLATED, - }, - vpc: props.vpc, enablePerformanceInsights: true, performanceInsightEncryptionKey: props.cmk, performanceInsightRetention: rds.PerformanceInsightRetention.DEFAULT, // 7 days - }, + isFromLegacyInstanceProps: true, + }), + readers: [ + rds.ClusterInstance.provisioned('Instance2', { + instanceIdentifier: 'Datastore2', + instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM), + enablePerformanceInsights: true, + performanceInsightEncryptionKey: props.cmk, + performanceInsightRetention: rds.PerformanceInsightRetention.DEFAULT, // 7 days + isFromLegacyInstanceProps: true, + }), + ], removalPolicy: RemovalPolicy.SNAPSHOT, defaultDatabaseName: 'mydb', storageEncrypted: true, diff --git a/usecases/blea-guest-ecs-app-sample/test/__snapshots__/blea-guest-ecs-app-sample.test.ts.snap b/usecases/blea-guest-ecs-app-sample/test/__snapshots__/blea-guest-ecs-app-sample.test.ts.snap index edc847613..1b5886b36 100644 --- a/usecases/blea-guest-ecs-app-sample/test/__snapshots__/blea-guest-ecs-app-sample.test.ts.snap +++ b/usecases/blea-guest-ecs-app-sample/test/__snapshots__/blea-guest-ecs-app-sample.test.ts.snap @@ -4059,7 +4059,7 @@ exports[`Snapshot test for BLEA ECS App Stacks 3`] = ` "TARGETPATH": "/", }, }, - "RuntimeVersion": "syn-nodejs-puppeteer-3.5", + "RuntimeVersion": "syn-nodejs-puppeteer-6.0", "Schedule": { "DurationInSeconds": "0", "Expression": "rate(1 minute)",