Skip to content

Commit

Permalink
feat(synthetics-alpha): add latest two NodeJS runtimes (#26967)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
philipmw authored Sep 1, 2023
1 parent 078e26a commit 0a0b37c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/@aws-cdk/aws-synthetics-alpha/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,32 @@ export class Runtime {
*/
public static readonly SYNTHETICS_NODEJS_PUPPETEER_4_0 = new Runtime('syn-nodejs-puppeteer-4.0', RuntimeFamily.NODEJS);

/**
* `syn-nodejs-puppeteer-5.0` includes the following:
* - Lambda runtime Node.js 16.x
* - Puppeteer-core version 19.7.0
* - Chromium version 111.0.5563.146
*
* New Features:
* - **Dependency upgrade**: The Puppeteer-core version is updated to 19.7.0. The Chromium version is upgraded to 111.0.5563.146.
*
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.0
*/
public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_0 = new Runtime('syn-nodejs-puppeteer-5.0', RuntimeFamily.NODEJS);

/**
* `syn-nodejs-puppeteer-5.1` includes the following:
* - Lambda runtime Node.js 16.x
* - Puppeteer-core version 19.7.0
* - Chromium version 111.0.5563.146
*
* Bug fixes:
* - **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.
*
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.1
*/
public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_1 = new Runtime('syn-nodejs-puppeteer-5.1', RuntimeFamily.NODEJS);

/**
* `syn-python-selenium-1.0` includes the following:
* - Lambda runtime Python 3.8
Expand Down

0 comments on commit 0a0b37c

Please sign in to comment.