Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(synthetics): add syn-nodejs-puppeteer-3.3 runtime #17132

Merged
merged 4 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
feat(synthetics): add syn-nodejs-puppeteer-3.3 runtime
  • Loading branch information
msambol committed Oct 24, 2021
commit b878edb1177696ed94ae947db54b7236a8aefad3
10 changes: 10 additions & 0 deletions packages/@aws-cdk/aws-synthetics/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ export class Runtime {
*/
public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_2 = new Runtime('syn-nodejs-puppeteer-3.2', RuntimeFamily.NODEJS);

/**
* `syn-nodejs-puppeteer-3.3` includes the following:
* - Lambda runtime Node.js 12.x
* - Puppeteer-core version 5.5.0
* - Chromium version 88.0.4298.0
*
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.3
*/
public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_3 = new Runtime('syn-nodejs-puppeteer-3.3', RuntimeFamily.NODEJS);

/**
* `syn-python-selenium-1.0` includes the following:
* - Lambda runtime Python 3.8
Expand Down
10 changes: 10 additions & 0 deletions packages/@aws-cdk/aws-synthetics/test/integ.canary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import * as synthetics from '../lib';
* -- aws synthetics get-canary --name canary-integ has a state of 'RUNNING'
* -- aws synthetics get-canary --name assetcanary-one has a state of 'RUNNING'
* -- aws synthetics get-canary --name assetcanary-two has a state of 'RUNNING'
* -- aws synthetics get-canary --name assetcanary-three has a state of 'RUNNING'
*/
const app = new cdk.App();
const stack = new cdk.Stack(app, 'canary-one');
Expand Down Expand Up @@ -50,6 +51,15 @@ new synthetics.Canary(stack, 'MyCanaryTwo', {
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_2,
});

new synthetics.Canary(stack, 'MyCanaryThree', {
canaryName: 'assetcanary-three',
test: synthetics.Test.custom({
handler: 'canary.handler',
code: synthetics.Code.fromAsset(path.join(__dirname, 'canary.zip')),
}),
runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_3,
});

new synthetics.Canary(stack, 'MyPythonCanary', {
canaryName: 'py-canary-integ',
test: synthetics.Test.custom({
Expand Down