Skip to content

Commit 87139ab

Browse files
authored
chore(synthetics): update runtimes (#29446)
### Issue # (if applicable) Could not find any in the backlog ### Reason for this change Update the CDK listed Synthetics runtimes to match the current availability, as well as add missing deprecated versions ### Description of changes * Added new runtimes * Marked existing runtimes as deprecated * Add previously deprecated runtimes * For the sake of consistency and readability, the static fields for `syn-1.0` and `syn-nodejs-2.*` were still named `SYNTHETICS_NODEJS_PUPPETEER_*` * Fix documented versions for existing runtimes * Added `{@link}` tags to match the web documentation ### Description of how you validated changes I compared the current CDK versions to live SDK data, using the `synthetics:DescribeRuntimeVersions` API results. Deprecated versions were established using the `DeprecationDate` field ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent bbc624c commit 87139ab

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

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

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ export class Runtime {
2525
/**
2626
* `syn-nodejs-puppeteer-3.5` includes the following:
2727
* - Lambda runtime Node.js 14.x
28-
* - Puppeteer-core version 10.1.0
28+
* - Puppeteer-core version 5.5.0
2929
* - Chromium version 92.0.4512
3030
*
31+
* New features:
32+
* - **Updated dependencies**: The only new features in this runtime are the updated dependencies.
33+
*
3134
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.5
3235
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime.
3336
*/
@@ -36,7 +39,7 @@ export class Runtime {
3639
/**
3740
* `syn-nodejs-puppeteer-3.6` includes the following:
3841
* - Lambda runtime Node.js 14.x
39-
* - Puppeteer-core version 10.1.0
42+
* - Puppeteer-core version 5.5.0
4043
* - Chromium version 92.0.4512
4144
*
4245
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.6
@@ -47,7 +50,7 @@ export class Runtime {
4750
/**
4851
* `syn-nodejs-puppeteer-3.7` includes the following:
4952
* - Lambda runtime Node.js 14.x
50-
* - Puppeteer-core version 10.1.0
53+
* - Puppeteer-core version 5.5.0
5154
* - Chromium version 92.0.4512
5255
*
5356
* New Features:
@@ -169,7 +172,7 @@ export class Runtime {
169172
* New Features:
170173
* - **Stability improvements**: Added auto-retry logic for handling intermittent Puppeteer launch errors.
171174
* - **Dependency upgrades**: Upgrades for some third-party dependency packages.
172-
* - **Canaries without Amazon S3 permissions**: Bug fixes, such that canaries that don't have any Amazon S3 permissions can still run. These canaries with no Amazon S3 permissions won't be able to upload screenshots or other artifacts to Amazon S3. For more information about permissions for canaries, see Required roles and permissions for canaries.
175+
* - **Canaries without Amazon S3 permissions**: Bug fixes, such that canaries that don't have any Amazon S3 permissions can still run. These canaries with no Amazon S3 permissions won't be able to upload screenshots or other artifacts to Amazon S3. For more information about permissions for canaries, see {@link https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_CanaryPermissions.html | Required roles and permissions for canaries}.
173176
*
174177
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.1
175178
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime.
@@ -191,13 +194,27 @@ export class Runtime {
191194
*/
192195
public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_2 = new Runtime('syn-nodejs-puppeteer-6.2', RuntimeFamily.NODEJS);
193196

197+
/**
198+
* `syn-nodejs-puppeteer-7.0` includes the following:
199+
* - Lambda runtime Node.js 18.x
200+
* - Puppeteer-core version 21.9.0
201+
* - Chromium version 121.0.6167.139
202+
*
203+
* New Features:
204+
* - **Updated versions of the bundled libraries in Puppeteer and Chromium**: The Puppeteer and Chromium dependencies are updated to new versions.
205+
*
206+
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-7.0
207+
*/
208+
public static readonly SYNTHETICS_NODEJS_PUPPETEER_7_0 = new Runtime('syn-nodejs-puppeteer-7.0', RuntimeFamily.NODEJS);
209+
194210
/**
195211
* `syn-python-selenium-1.0` includes the following:
196212
* - Lambda runtime Python 3.8
197213
* - Selenium version 3.141.0
198214
* - Chromium version 83.0.4103.0
199215
*
200216
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.0
217+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime.
201218
*/
202219
public static readonly SYNTHETICS_PYTHON_SELENIUM_1_0 = new Runtime('syn-python-selenium-1.0', RuntimeFamily.PYTHON);
203220

@@ -214,6 +231,7 @@ export class Runtime {
214231
* - **Cross-Region artifact buckets**: A canary can store its artifacts in an Amazon S3 bucket in a different Region.
215232
*
216233
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.1
234+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime.
217235
*/
218236
public static readonly SYNTHETICS_PYTHON_SELENIUM_1_1 = new Runtime('syn-python-selenium-1.1', RuntimeFamily.PYTHON);
219237

@@ -227,6 +245,7 @@ export class Runtime {
227245
* - **Updated dependencies**: The only new features in this runtime are the updated dependencies.
228246
*
229247
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.2
248+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime.
230249
*/
231250
public static readonly SYNTHETICS_PYTHON_SELENIUM_1_2 = new Runtime('syn-python-selenium-1.2', RuntimeFamily.PYTHON);
232251

@@ -240,6 +259,7 @@ export class Runtime {
240259
* - **More precise timestamps**: The start time and stop time of canary runs are now precise to the millisecond.
241260
*
242261
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.3
262+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime.
243263
*/
244264
public static readonly SYNTHETICS_PYTHON_SELENIUM_1_3 = new Runtime('syn-python-selenium-1.3', RuntimeFamily.PYTHON);
245265

@@ -256,7 +276,9 @@ export class Runtime {
256276
* Bug fixes:
257277
* - **Timestamp added**: A timestamp has been added to canary logs.
258278
* - **Session re-use**: A bug was fixed so that canaries are now prevented from reusing the session from their previous canary run.
279+
*
259280
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-2.0
281+
* @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime.
260282
*/
261283
public static readonly SYNTHETICS_PYTHON_SELENIUM_2_0 = new Runtime('syn-python-selenium-2.0', RuntimeFamily.PYTHON);
262284

@@ -273,6 +295,19 @@ export class Runtime {
273295
*/
274296
public static readonly SYNTHETICS_PYTHON_SELENIUM_2_1 = new Runtime('syn-python-selenium-2.1', RuntimeFamily.PYTHON);
275297

298+
/**
299+
* `syn-python-selenium-3.0` includes the following:
300+
* - Lambda runtime Python 3.8
301+
* - Selenium version 4.15.1
302+
* - Chromium version 121.0.6167.139
303+
*
304+
* New Features:
305+
* - **Updated versions of the bundled libraries in Chromium**: The Chromium dependency is updated to a new version.
306+
*
307+
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-3.0
308+
*/
309+
public static readonly SYNTHETICS_PYTHON_SELENIUM_3_0 = new Runtime('syn-python-selenium-3.0', RuntimeFamily.PYTHON);
310+
276311
/**
277312
* @param name The name of the runtime version
278313
* @param family The Lambda runtime family

0 commit comments

Comments
 (0)