Skip to content

Commit 024b890

Browse files
authored
feat(synthetics): add support for puppeteer 3.4 runtime (#19429)
Fixes #19382 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 1bef14e commit 024b890

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

packages/@aws-cdk/aws-synthetics/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ new synthetics.Canary(this, 'Inline Canary', {
129129
code: synthetics.Code.fromInline('/* Synthetics handler code */'),
130130
handler: 'index.handler', // must be 'index.handler'
131131
}),
132-
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_3,
132+
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_4,
133133
});
134134

135135
// To supply the code from your local filesystem:
@@ -138,7 +138,7 @@ new synthetics.Canary(this, 'Asset Canary', {
138138
code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
139139
handler: 'index.handler', // must end with '.handler'
140140
}),
141-
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_3,
141+
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_4,
142142
});
143143

144144
// To supply the code from a S3 bucket:
@@ -149,7 +149,7 @@ new synthetics.Canary(this, 'Bucket Canary', {
149149
code: synthetics.Code.fromBucket(bucket, 'canary.zip'),
150150
handler: 'index.handler', // must end with '.handler'
151151
}),
152-
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_3,
152+
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_4,
153153
});
154154
```
155155

@@ -188,7 +188,7 @@ new synthetics.Canary(this, 'Vpc Canary', {
188188
code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
189189
handler: 'index.handler',
190190
}),
191-
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_3,
191+
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_4,
192192
vpc,
193193
});
194194
```

packages/@aws-cdk/aws-synthetics/lib/runtime.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ export class Runtime {
114114
*/
115115
public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_3 = new Runtime('syn-nodejs-puppeteer-3.3', RuntimeFamily.NODEJS);
116116

117+
/**
118+
* `syn-nodejs-puppeteer-3.4` includes the following:
119+
* - Lambda runtime Node.js 12.x
120+
* - Puppeteer-core version 5.5.0
121+
* - Chromium version 88.0.4298.0
122+
*
123+
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.4
124+
*/
125+
public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_4 = new Runtime('syn-nodejs-puppeteer-3.4', RuntimeFamily.NODEJS);
126+
117127
/**
118128
* `syn-python-selenium-1.0` includes the following:
119129
* - Lambda runtime Python 3.8
@@ -130,4 +140,4 @@ export class Runtime {
130140
*/
131141
public constructor(public readonly name: string, public readonly family: RuntimeFamily) {
132142
}
133-
}
143+
}

0 commit comments

Comments
 (0)