Skip to content

Commit

Permalink
docs: update examples to use stable synthetics module (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain authored Apr 28, 2024
1 parent cd99e71 commit 0556141
Show file tree
Hide file tree
Showing 7 changed files with 902 additions and 736 deletions.
3 changes: 1 addition & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ project.buildWorkflow?.addPostBuildJob('test-latest-versions', {
project.package.addField('jsiiRosetta', {
strict: true,
exampleDependencies: {
'@aws-cdk/aws-synthetics-alpha': '2.95.0-alpha.0',
'aws-cdk-lib': '2.95.0',
'aws-cdk-lib': '2.139.0',
'@mrgrain/cdk-esbuild': '^4',
'@types/node': '^18',
},
Expand Down
6 changes: 3 additions & 3 deletions examples/typescript/website/infrastructure/stack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Canary, Cleanup, Runtime, Schedule, Test } from "@aws-cdk/aws-synthetics-alpha";
import { Canary, Cleanup, Runtime, Schedule, Test } from "aws-cdk-lib/aws-synthetics";
import { TypeScriptCode, TypeScriptSource } from "@mrgrain/cdk-esbuild";
import { BlockPublicAccess, Bucket, ObjectOwnership } from "aws-cdk-lib/aws-s3";
import { BucketDeployment } from "aws-cdk-lib/aws-s3-deployment";
Expand Down Expand Up @@ -48,8 +48,8 @@ export class WebsiteStack extends Stack {

const canary = new Canary(this, "Monitoring", {
schedule: Schedule.rate(Duration.hours(1)),
runtime: Runtime.SYNTHETICS_NODEJS_PUPPETEER_5_1,
enableAutoDeleteLambdas: true,
runtime: Runtime.SYNTHETICS_NODEJS_PUPPETEER_7_0,
cleanup: Cleanup.LAMBDA,
test: Test.custom({
code: new TypeScriptCode("./src/canary.ts", {
buildOptions: {
Expand Down
Loading

0 comments on commit 0556141

Please sign in to comment.