Skip to content

Commit 0a0b37c

Browse files
authored
feat(synthetics-alpha): add latest two NodeJS runtimes (#26967)
This adds the ability to use the latest two NodeJS runtimes in your Synthetics construct. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 078e26a commit 0a0b37c

File tree

1 file changed

+26
-0
lines changed
  • packages/@aws-cdk/aws-synthetics-alpha/lib

1 file changed

+26
-0
lines changed

Diff for: packages/@aws-cdk/aws-synthetics-alpha/lib/runtime.ts

+26
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,32 @@ export class Runtime {
216216
*/
217217
public static readonly SYNTHETICS_NODEJS_PUPPETEER_4_0 = new Runtime('syn-nodejs-puppeteer-4.0', RuntimeFamily.NODEJS);
218218

219+
/**
220+
* `syn-nodejs-puppeteer-5.0` includes the following:
221+
* - Lambda runtime Node.js 16.x
222+
* - Puppeteer-core version 19.7.0
223+
* - Chromium version 111.0.5563.146
224+
*
225+
* New Features:
226+
* - **Dependency upgrade**: The Puppeteer-core version is updated to 19.7.0. The Chromium version is upgraded to 111.0.5563.146.
227+
*
228+
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.0
229+
*/
230+
public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_0 = new Runtime('syn-nodejs-puppeteer-5.0', RuntimeFamily.NODEJS);
231+
232+
/**
233+
* `syn-nodejs-puppeteer-5.1` includes the following:
234+
* - Lambda runtime Node.js 16.x
235+
* - Puppeteer-core version 19.7.0
236+
* - Chromium version 111.0.5563.146
237+
*
238+
* Bug fixes:
239+
* - **Bug fix**: This runtime fixes a bug in `syn-nodejs-puppeteer-5.0` where the HAR files created by the canaries were missing request headers.
240+
*
241+
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.1
242+
*/
243+
public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_1 = new Runtime('syn-nodejs-puppeteer-5.1', RuntimeFamily.NODEJS);
244+
219245
/**
220246
* `syn-python-selenium-1.0` includes the following:
221247
* - Lambda runtime Python 3.8

0 commit comments

Comments
 (0)