Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion usecases/blea-guest-ecs-app-sample/lib/construct/canary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '/',
Expand Down
24 changes: 18 additions & 6 deletions usecases/blea-guest-ecs-app-sample/lib/construct/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down