-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Lambda: Support SnapStart #23153
Comments
It is possible for AWS CDK to enable this feature starting from v2.53.0. Before we have L2 support, you should be able to enable this feature like this: const fn = new lambda.Function(this, 'Func', {
runtime: lambda.Runtime.JAVA_11,
handler: 'example.Handler',
code: lambda.Code.fromAsset(path.join(__dirname, '../../lambda/example.jar')),
memorySize: 256,
});
(fn.node.defaultChild as lambda.CfnFunction).addPropertyOverride('SnapStart', {
ApplyOn: 'PublishedVersions',
});
// publish a version
new lambda.Version(this, 'MyVersion', {
lambda: fn,
}); I believe it is not difficult to add this property for the L2 construct. Any community PRs would be highly welcome! |
Thank you for this. I've noted this down, and we will unblock ourselves from experimenting with this new, exciting feature! I'd still like to leave this feature request open so customer-facing CDK code can be written to improve the dev experience on enabling this feature. |
@pahud I have tried to provide a L2 construct support for the same. Could you please have a look at it whenever possible ? |
Yes #23196 LGTM now! But we need the core team maintainer to take another look. |
Is there any update on this? Looks like it's about to merge - still waiting on that maintainer to review it? |
I'd like to add that if you use API Gateway it's not enough. You have to ensure that API Gateway is configured to use this published version, instead of the default Here is how I did that, with the help of the original advice: const fn = new lambda.Function(this, 'fn', {
// …
});
(fn.node.defaultChild as lambda.CfnFunction).snapStart = {
applyOn: 'PublishedVersions'
};
const api = new apigateway.RestApi(this, 'api', {
// …
});
api.root
.addResource('resource')
// .addMethod('POST', new apigateway.LambdaIntegration(fn)); // Not like this! But like this 👇
.addMethod('POST', new apigateway.LambdaIntegration(fn.currentVersion)); Although I hope that this issue will be closed in one of the upcoming releases, but ensuring the correct version being used in other places is important anyway. Otherwise, the magic of SnapStart just won't work. |
The discussion - on the now closed #23196 so I cannot comment there - is quite interesting and I saw that it ended with needing to have more information from the Lambda team to ensure getting the right interface that aligns with where this feature will be going.
All that, makes me learning towards - at least ultimately - I'm pro a construct prop, as having multiple functions, I tend to have a constant with a set of props with base settings for all functions I use in my CDK app e.g. |
@humanzz , thanks for the updates. From the 3 points you had mentioned, I would align towards a constructor prop as well. Should we re-open the CR with modifications ? Do we know that if there are any L2 construct support planned for snapStart ? |
I've seen examples of how to tie a the most recently deployed version of a lambda / alias to API Gateway, but I still haven't figured out how to do that when running under a load balancer. During deployment the load balancer seems to invoke a specific version of the lambda, but when it gets hit externally it always invokes $LATEST. As a result each cold start goes through the INIT_START phase, resulting in excessive startup times. |
X-ray support has just been released for SnapStart https://aws.amazon.com/blogs/compute/debugging-snapstart-enabled-lambda-functions-made-easy-with-aws-x-ray/ Are there any updates on when L2 construct support might be added? |
Closes #23153 - Support SnapStart on L2 constructs by setting `snapStart: lambda.SnapStartConfig.ON_PUBLISHED_VERSIONS`. This value will be converted to `SnapStart: {ApplyOn: 'PublishedVersions',}` in template. - Supports checking limitation stated in [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) except for Provisioned Concurrency which is at version level and can't be checked with function level props. - This PR is heavily inspired by [PR](#23196) from @DeerajTheepshi and [discussion](#23153 (comment)) in the issue, Thank you ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [Amazon.CDK.Lib](https://togithub.com/aws/aws-cdk) | nuget | minor | `2.93.0` -> `2.94.0` | --- ### Release Notes <details> <summary>aws/aws-cdk (Amazon.CDK.Lib)</summary> ### [`v2.94.0`](https://togithub.com/aws/aws-cdk/releases/tag/v2.94.0) ##### Features - **apigateway:** L2 construct for Sagemaker Integration ([#​25459](https://togithub.com/aws/aws-cdk/issues/25459)) ([53d61bb](https://togithub.com/aws/aws-cdk/commit/53d61bbc9c96708147dc4d2e285eb8122409d700)) - **appsync:** merged APIs ([#​26895](https://togithub.com/aws/aws-cdk/issues/26895)) ([fe930a5](https://togithub.com/aws/aws-cdk/commit/fe930a53998d449c6e1687fa40c2e94577339792)), closes [#​25960](https://togithub.com/aws/aws-cdk/issues/25960) - **cloudfront:** Add RealtimeLogConfig to Distribution ([#​26808](https://togithub.com/aws/aws-cdk/issues/26808)) ([b1f4e27](https://togithub.com/aws/aws-cdk/commit/b1f4e277e466c0a79249ce4cc75edb2861e901ba)) - **ec2:** add c7gn instance type ([#​26905](https://togithub.com/aws/aws-cdk/issues/26905)) ([8cc9ecb](https://togithub.com/aws/aws-cdk/commit/8cc9ecb9f77dc18853326077c3dbdecd0271a8c2)), closes [#​23147](https://togithub.com/aws/aws-cdk/issues/23147) - **ec2:** contributor insight rules for vpc endpoint service ([#​25965](https://togithub.com/aws/aws-cdk/issues/25965)) ([c6a96f0](https://togithub.com/aws/aws-cdk/commit/c6a96f062e32b6c99d0a4b27a3d18881c1efb85a)) - **lambda:** L2 constructs for SnapStart ([#​26761](https://togithub.com/aws/aws-cdk/issues/26761)) ([356f302](https://togithub.com/aws/aws-cdk/commit/356f30221ae8bc352b2ad94517dacd2bd3cf83ad)), closes [#​23153](https://togithub.com/aws/aws-cdk/issues/23153) [/github.com/aws/aws-cdk/issues/23153#issuecomment-1407779812](https://togithub.com/aws//github.com/aws/aws-cdk/issues/23153/issues/issuecomment-1407779812) - **rds:** add support for postgresql 11.21, 12.16, 13.12, 14.9, 15.4 and deprecate versions out-of-support ([#​26906](https://togithub.com/aws/aws-cdk/issues/26906)) ([4b0c378](https://togithub.com/aws/aws-cdk/commit/4b0c378595a41d80dba0e439210e14a4ee8a66bb)) - **rds:** support certificate autority certificate ([#​26883](https://togithub.com/aws/aws-cdk/issues/26883)) ([4fd510e](https://togithub.com/aws/aws-cdk/commit/4fd510ec75f03e3e674911cd347fa96ea3edd93a)), closes [#​26865](https://togithub.com/aws/aws-cdk/issues/26865) - **s3-deployment:** specify lambda execution role in DeployTimeSubstitutedFile ([#​26896](https://togithub.com/aws/aws-cdk/issues/26896)) ([6c2143c](https://togithub.com/aws/aws-cdk/commit/6c2143c0caf1d772e88df361bd5e882195fb6930)), closes [#​26879](https://togithub.com/aws/aws-cdk/issues/26879) - **stepfunctions-tasks:** `algorithmName` validation for `SageMakerCreateTrainingJob` ([#​26877](https://togithub.com/aws/aws-cdk/issues/26877)) ([1cead3b](https://togithub.com/aws/aws-cdk/commit/1cead3b032c382f8cf63f72508c3222a3c58e85a)), closes [#​26675](https://togithub.com/aws/aws-cdk/issues/26675) - update AWS Service Spec ([#​26911](https://togithub.com/aws/aws-cdk/issues/26911)) ([d345335](https://togithub.com/aws/aws-cdk/commit/d345335ce10998e831894c21a06124c9d040e99a)) - **stepfunctions-tasks:** FastFile mode for SageMaker Training Job ([#​26675](https://togithub.com/aws/aws-cdk/issues/26675)) ([5fef403](https://togithub.com/aws/aws-cdk/commit/5fef403825110205d472bae90b63866c850efed6)), closes [/github.com/aws/aws-cdk/blob/v2.90.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts#L458](https://togithub.com/aws//github.com/aws/aws-cdk/blob/v2.90.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts/issues/L458) [#​26653](https://togithub.com/aws/aws-cdk/issues/26653) ##### Bug Fixes - **aws-cdk-lib:** ADOT Lambda Layer constants update - v0.32.0 ([#​26801](https://togithub.com/aws/aws-cdk/issues/26801)) ([ad9d764](https://togithub.com/aws/aws-cdk/commit/ad9d7649ae444191d5463145f2a94695a94dae0a)), closes [#​26793](https://togithub.com/aws/aws-cdk/issues/26793) - **cli:** asset not uploaded with different synthesizer configs ([#​26910](https://togithub.com/aws/aws-cdk/issues/26910)) ([b06a38f](https://togithub.com/aws/aws-cdk/commit/b06a38ffca7faeebd994a31bd36e079478b67da5)), closes [#​25927](https://togithub.com/aws/aws-cdk/issues/25927) - **cli:** ecs hotswap fails on log configuration enabled ([#​26876](https://togithub.com/aws/aws-cdk/issues/26876)) ([6cffca0](https://togithub.com/aws/aws-cdk/commit/6cffca06d972824214c5571d7eae1a424d15ddaa)), closes [#​26871](https://togithub.com/aws/aws-cdk/issues/26871) - **core:** add RetainExceptOnCreate to ParseDeletionPolicy method ([#​26880](https://togithub.com/aws/aws-cdk/issues/26880)) ([702d9d5](https://togithub.com/aws/aws-cdk/commit/702d9d502c3720f577c6c94a94fea82c2957bab4)), closes [/github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/helpers-internal/cfn-parse.ts#L468](https://togithub.com/aws//github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/helpers-internal/cfn-parse.ts/issues/L468) [#​26863](https://togithub.com/aws/aws-cdk/issues/26863) - **core:** support cache-from and cache-to flags in DockerImage ([#​26337](https://togithub.com/aws/aws-cdk/issues/26337)) ([d152d61](https://togithub.com/aws/aws-cdk/commit/d152d61a97b3602c2a20d00a2293bcb30c1df5e1)), closes [#​24024](https://togithub.com/aws/aws-cdk/issues/24024) [#​24024](https://togithub.com/aws/aws-cdk/issues/24024) [#​25925](https://togithub.com/aws/aws-cdk/issues/25925) - **core:** undeprecate `addWarning` ([#​26943](https://togithub.com/aws/aws-cdk/issues/26943)) ([4ce64fe](https://togithub.com/aws/aws-cdk/commit/4ce64fe7a52bc3b7c23501a7106a49ee33e21c7a)), closes [#​26914](https://togithub.com/aws/aws-cdk/issues/26914) - **custom-resources:** cross-environment call fails in opt-in region ([#​26917](https://togithub.com/aws/aws-cdk/issues/26917)) ([3701aa7](https://togithub.com/aws/aws-cdk/commit/3701aa7a4449df2163b7a8b7f520db7f43dd619b)), closes [#​26562](https://togithub.com/aws/aws-cdk/issues/26562) - **ec2:** networkAclName property for NetworkAcl does not work ([#​26898](https://togithub.com/aws/aws-cdk/issues/26898)) ([7f31da8](https://togithub.com/aws/aws-cdk/commit/7f31da81a41c6608fd7bca055bb02a6d1558f292)), closes [#​26371](https://togithub.com/aws/aws-cdk/issues/26371) [#​26897](https://togithub.com/aws/aws-cdk/issues/26897) - **elasticloadbalancingv2:** remove equality check for health threshold counts ([#​26949](https://togithub.com/aws/aws-cdk/issues/26949)) ([c8b8f1c](https://togithub.com/aws/aws-cdk/commit/c8b8f1cb8ae3d28468e4abe47480bf3e540c1f4d)), closes [#​26941](https://togithub.com/aws/aws-cdk/issues/26941) - **lambda:** GO\_1\_X runtime will be EOL soon, deprecate in favor of PROVIDED_AL2 runtime ([#​26899](https://togithub.com/aws/aws-cdk/issues/26899)) ([37c59a4](https://togithub.com/aws/aws-cdk/commit/37c59a44d9460e4bc2661134f6124e65700068e9)) - **lambda:** NodeJS14 runtime will be EOL soon, deprecate in favor of newer runtimes ([#​26903](https://togithub.com/aws/aws-cdk/issues/26903)) ([31ff125](https://togithub.com/aws/aws-cdk/commit/31ff12522d4b0e88f9a1bd6621b3a18961c3fb30)) - **lambda:** PROVIDED runtime will be EOL soon, deprecate in favor of PROVIDED_AL2 ([#​26904](https://togithub.com/aws/aws-cdk/issues/26904)) ([fded078](https://togithub.com/aws/aws-cdk/commit/fded078a654f93dd49ba660c2e41b74ecd7424d8)) - **lambda:** update default runtimes and tests to node 16 everywhere ([#​26921](https://togithub.com/aws/aws-cdk/issues/26921)) ([bdce16c](https://togithub.com/aws/aws-cdk/commit/bdce16c6f6bf1880aa988e3c209673b9dfc24166)) - **logs:** LogRetention resources fail with rate exceeded errors ([#​26858](https://togithub.com/aws/aws-cdk/issues/26858)) ([b60e6ef](https://togithub.com/aws/aws-cdk/commit/b60e6efe54983c2ad0b8cdf3c50da84021aef8f6)), closes [#​26837](https://togithub.com/aws/aws-cdk/issues/26837) [#​26837](https://togithub.com/aws/aws-cdk/issues/26837) - **route53:** IHostedZone cannot be used for ses.Identity.publicHostedZone anymore ([#​26888](https://togithub.com/aws/aws-cdk/issues/26888)) ([b5bd39e](https://togithub.com/aws/aws-cdk/commit/b5bd39e479f342830b2a0fb89e75202ef657cbad)), closes [#​26872](https://togithub.com/aws/aws-cdk/issues/26872) - **secrets-manager:** SecretRotationApplication creates lambda on python 3.7 which is EOL ([#​26884](https://togithub.com/aws/aws-cdk/issues/26884)) ([2d9d8d6](https://togithub.com/aws/aws-cdk/commit/2d9d8d64c28554cd17e2c96d994800d8d989b378)), closes [#​26866](https://togithub.com/aws/aws-cdk/issues/26866) - **servicecatalog:** only one ProductStack per Portfolio can use assets ([#​26885](https://togithub.com/aws/aws-cdk/issues/26885)) ([9cb395c](https://togithub.com/aws/aws-cdk/commit/9cb395c48c0c04f6e38f4441a95f9a514fb4a08c)), closes [#​25189](https://togithub.com/aws/aws-cdk/issues/25189) - **sqs:** encryptionType is incorrect when encryptionMasterKey is provided ([#​26886](https://togithub.com/aws/aws-cdk/issues/26886)) ([bf441fa](https://togithub.com/aws/aws-cdk/commit/bf441fab2d34e087ce2490d544ca32689664adcb)), closes [#​26719](https://togithub.com/aws/aws-cdk/issues/26719) *** ##### Alpha modules (2.94.0-alpha.0) ##### Features - **amplify:** enables apps hosted with server side rendering ([#​26861](https://togithub.com/aws/aws-cdk/issues/26861)) ([c67da83](https://togithub.com/aws/aws-cdk/commit/c67da83d9c77eaca41ce0691dddad6da11ed397c)), closes [#​24076](https://togithub.com/aws/aws-cdk/issues/24076) [#​23325](https://togithub.com/aws/aws-cdk/issues/23325) - **scheduler:** base target methods and lambda invoke target ([#​26575](https://togithub.com/aws/aws-cdk/issues/26575)) ([39cbd46](https://togithub.com/aws/aws-cdk/commit/39cbd46f5d25d2304415aa2f0b5034dca0f260d8)) - **synthetics-alpha:** add latest two NodeJS runtimes ([#​26967](https://togithub.com/aws/aws-cdk/issues/26967)) ([0a0b37c](https://togithub.com/aws/aws-cdk/commit/0a0b37c5ac5c38abe698f82f5e4f0e0f2cd051b7)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/cythral/brighid-commands). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---|---|---| | | | lockFileMaintenance | All locks refreshed | [![age](https://developer.mend.io/api/mc/badges/age///?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption///?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility////?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence////?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@aws-cdk/aws-apigatewayv2-alpha](https://togithub.com/aws/aws-cdk) | dependencies | minor | [`2.93.0-alpha.0` -> `2.94.0-alpha.0`](https://renovatebot.com/diffs/npm/@aws-cdk%2faws-apigatewayv2-alpha/2.93.0-alpha.0/2.94.0-alpha.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-cdk%2faws-apigatewayv2-alpha/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-cdk%2faws-apigatewayv2-alpha/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-cdk%2faws-apigatewayv2-alpha/2.93.0-alpha.0/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-cdk%2faws-apigatewayv2-alpha/2.93.0-alpha.0/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@aws-cdk/aws-apigatewayv2-integrations-alpha](https://togithub.com/aws/aws-cdk) | dependencies | minor | [`2.93.0-alpha.0` -> `2.94.0-alpha.0`](https://renovatebot.com/diffs/npm/@aws-cdk%2faws-apigatewayv2-integrations-alpha/2.93.0-alpha.0/2.94.0-alpha.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-cdk%2faws-apigatewayv2-integrations-alpha/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-cdk%2faws-apigatewayv2-integrations-alpha/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-cdk%2faws-apigatewayv2-integrations-alpha/2.93.0-alpha.0/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-cdk%2faws-apigatewayv2-integrations-alpha/2.93.0-alpha.0/2.94.0-alpha.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@aws-sdk/client-secrets-manager](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-secrets-manager) ([source](https://togithub.com/aws/aws-sdk-js-v3)) | dependencies | minor | [`3.398.0` -> `3.405.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-secrets-manager/3.398.0/3.405.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-sdk%2fclient-secrets-manager/3.405.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-sdk%2fclient-secrets-manager/3.405.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-sdk%2fclient-secrets-manager/3.398.0/3.405.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-sdk%2fclient-secrets-manager/3.398.0/3.405.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@trautonen/cdk-dns-validated-certificate](https://togithub.com/trautonen/cdk-dns-validated-certificate) | dependencies | patch | [`0.0.18` -> `0.0.19`](https://renovatebot.com/diffs/npm/@trautonen%2fcdk-dns-validated-certificate/0.0.18/0.0.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@trautonen%2fcdk-dns-validated-certificate/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@trautonen%2fcdk-dns-validated-certificate/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@trautonen%2fcdk-dns-validated-certificate/0.0.18/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@trautonen%2fcdk-dns-validated-certificate/0.0.18/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/luxon](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/luxon) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | devDependencies | patch | [`3.3.1` -> `3.3.2`](https://renovatebot.com/diffs/npm/@types%2fluxon/3.3.1/3.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fluxon/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fluxon/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fluxon/3.3.1/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fluxon/3.3.1/3.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | devDependencies | patch | [`20.5.6` -> `20.5.9`](https://renovatebot.com/diffs/npm/@types%2fnode/20.5.6/20.5.9) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.5.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.5.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.5.6/20.5.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.5.6/20.5.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [aws-cdk](https://togithub.com/aws/aws-cdk) | devDependencies | minor | [`2.93.0` -> `2.94.0`](https://renovatebot.com/diffs/npm/aws-cdk/2.93.0/2.94.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/aws-cdk/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/aws-cdk/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/aws-cdk/2.93.0/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/aws-cdk/2.93.0/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [aws-cdk-lib](https://togithub.com/aws/aws-cdk) | dependencies | minor | [`2.93.0` -> `2.94.0`](https://renovatebot.com/diffs/npm/aws-cdk-lib/2.93.0/2.94.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/aws-cdk-lib/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/aws-cdk-lib/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/aws-cdk-lib/2.93.0/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/aws-cdk-lib/2.93.0/2.94.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [constructs](https://togithub.com/aws/constructs) | dependencies | patch | [`10.2.69` -> `10.2.70`](https://renovatebot.com/diffs/npm/constructs/10.2.69/10.2.70) | [![age](https://developer.mend.io/api/mc/badges/age/npm/constructs/10.2.70?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/constructs/10.2.70?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/constructs/10.2.69/10.2.70?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/constructs/10.2.69/10.2.70?slim=true)](https://docs.renovatebot.com/merge-confidence/) | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Release Notes <details> <summary>aws/aws-sdk-js-v3 (@​aws-sdk/client-secrets-manager)</summary> ### [`v3.405.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-secrets-manager/CHANGELOG.md#34050-2023-09-01) [Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.398.0...v3.405.0) **Note:** Version bump only for package [@​aws-sdk/client-secrets-manager](https://togithub.com/aws-sdk/client-secrets-manager) </details> <details> <summary>trautonen/cdk-dns-validated-certificate (@​trautonen/cdk-dns-validated-certificate)</summary> ### [`v0.0.19`](https://togithub.com/trautonen/cdk-dns-validated-certificate/releases/tag/v0.0.19) [Compare Source](https://togithub.com/trautonen/cdk-dns-validated-certificate/compare/v0.0.18...v0.0.19) ##### [0.0.19](https://togithub.com/trautonen/cdk-dns-validated-certificate/compare/v0.0.18...v0.0.19) (2023-08-28) </details> <details> <summary>aws/aws-cdk (aws-cdk)</summary> ### [`v2.94.0`](https://togithub.com/aws/aws-cdk/releases/tag/v2.94.0) [Compare Source](https://togithub.com/aws/aws-cdk/compare/v2.93.0...v2.94.0) ##### Features - **apigateway:** L2 construct for Sagemaker Integration ([#​25459](https://togithub.com/aws/aws-cdk/issues/25459)) ([53d61bb](https://togithub.com/aws/aws-cdk/commit/53d61bbc9c96708147dc4d2e285eb8122409d700)) - **appsync:** merged APIs ([#​26895](https://togithub.com/aws/aws-cdk/issues/26895)) ([fe930a5](https://togithub.com/aws/aws-cdk/commit/fe930a53998d449c6e1687fa40c2e94577339792)), closes [#​25960](https://togithub.com/aws/aws-cdk/issues/25960) - **cloudfront:** Add RealtimeLogConfig to Distribution ([#​26808](https://togithub.com/aws/aws-cdk/issues/26808)) ([b1f4e27](https://togithub.com/aws/aws-cdk/commit/b1f4e277e466c0a79249ce4cc75edb2861e901ba)) - **ec2:** add c7gn instance type ([#​26905](https://togithub.com/aws/aws-cdk/issues/26905)) ([8cc9ecb](https://togithub.com/aws/aws-cdk/commit/8cc9ecb9f77dc18853326077c3dbdecd0271a8c2)), closes [#​23147](https://togithub.com/aws/aws-cdk/issues/23147) - **ec2:** contributor insight rules for vpc endpoint service ([#​25965](https://togithub.com/aws/aws-cdk/issues/25965)) ([c6a96f0](https://togithub.com/aws/aws-cdk/commit/c6a96f062e32b6c99d0a4b27a3d18881c1efb85a)) - **lambda:** L2 constructs for SnapStart ([#​26761](https://togithub.com/aws/aws-cdk/issues/26761)) ([356f302](https://togithub.com/aws/aws-cdk/commit/356f30221ae8bc352b2ad94517dacd2bd3cf83ad)), closes [#​23153](https://togithub.com/aws/aws-cdk/issues/23153) [/github.com/aws/aws-cdk/issues/23153#issuecomment-1407779812](https://togithub.com/aws//github.com/aws/aws-cdk/issues/23153/issues/issuecomment-1407779812) - **rds:** add support for postgresql 11.21, 12.16, 13.12, 14.9, 15.4 and deprecate versions out-of-support ([#​26906](https://togithub.com/aws/aws-cdk/issues/26906)) ([4b0c378](https://togithub.com/aws/aws-cdk/commit/4b0c378595a41d80dba0e439210e14a4ee8a66bb)) - **rds:** support certificate autority certificate ([#​26883](https://togithub.com/aws/aws-cdk/issues/26883)) ([4fd510e](https://togithub.com/aws/aws-cdk/commit/4fd510ec75f03e3e674911cd347fa96ea3edd93a)), closes [#​26865](https://togithub.com/aws/aws-cdk/issues/26865) - **s3-deployment:** specify lambda execution role in DeployTimeSubstitutedFile ([#​26896](https://togithub.com/aws/aws-cdk/issues/26896)) ([6c2143c](https://togithub.com/aws/aws-cdk/commit/6c2143c0caf1d772e88df361bd5e882195fb6930)), closes [#​26879](https://togithub.com/aws/aws-cdk/issues/26879) - **stepfunctions-tasks:** `algorithmName` validation for `SageMakerCreateTrainingJob` ([#​26877](https://togithub.com/aws/aws-cdk/issues/26877)) ([1cead3b](https://togithub.com/aws/aws-cdk/commit/1cead3b032c382f8cf63f72508c3222a3c58e85a)), closes [#​26675](https://togithub.com/aws/aws-cdk/issues/26675) - update AWS Service Spec ([#​26911](https://togithub.com/aws/aws-cdk/issues/26911)) ([d345335](https://togithub.com/aws/aws-cdk/commit/d345335ce10998e831894c21a06124c9d040e99a)) - **stepfunctions-tasks:** FastFile mode for SageMaker Training Job ([#​26675](https://togithub.com/aws/aws-cdk/issues/26675)) ([5fef403](https://togithub.com/aws/aws-cdk/commit/5fef403825110205d472bae90b63866c850efed6)), closes [/github.com/aws/aws-cdk/blob/v2.90.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts#L458](https://togithub.com/aws//github.com/aws/aws-cdk/blob/v2.90.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts/issues/L458) [#​26653](https://togithub.com/aws/aws-cdk/issues/26653) ##### Bug Fixes - **aws-cdk-lib:** ADOT Lambda Layer constants update - v0.32.0 ([#​26801](https://togithub.com/aws/aws-cdk/issues/26801)) ([ad9d764](https://togithub.com/aws/aws-cdk/commit/ad9d7649ae444191d5463145f2a94695a94dae0a)), closes [#​26793](https://togithub.com/aws/aws-cdk/issues/26793) - **cli:** asset not uploaded with different synthesizer configs ([#​26910](https://togithub.com/aws/aws-cdk/issues/26910)) ([b06a38f](https://togithub.com/aws/aws-cdk/commit/b06a38ffca7faeebd994a31bd36e079478b67da5)), closes [#​25927](https://togithub.com/aws/aws-cdk/issues/25927) - **cli:** ecs hotswap fails on log configuration enabled ([#​26876](https://togithub.com/aws/aws-cdk/issues/26876)) ([6cffca0](https://togithub.com/aws/aws-cdk/commit/6cffca06d972824214c5571d7eae1a424d15ddaa)), closes [#​26871](https://togithub.com/aws/aws-cdk/issues/26871) - **core:** add RetainExceptOnCreate to ParseDeletionPolicy method ([#​26880](https://togithub.com/aws/aws-cdk/issues/26880)) ([702d9d5](https://togithub.com/aws/aws-cdk/commit/702d9d502c3720f577c6c94a94fea82c2957bab4)), closes [/github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/helpers-internal/cfn-parse.ts#L468](https://togithub.com/aws//github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/helpers-internal/cfn-parse.ts/issues/L468) [#​26863](https://togithub.com/aws/aws-cdk/issues/26863) - **core:** support cache-from and cache-to flags in DockerImage ([#​26337](https://togithub.com/aws/aws-cdk/issues/26337)) ([d152d61](https://togithub.com/aws/aws-cdk/commit/d152d61a97b3602c2a20d00a2293bcb30c1df5e1)), closes [#​24024](https://togithub.com/aws/aws-cdk/issues/24024) [#​24024](https://togithub.com/aws/aws-cdk/issues/24024) [#​25925](https://togithub.com/aws/aws-cdk/issues/25925) - **core:** undeprecate `addWarning` ([#​26943](https://togithub.com/aws/aws-cdk/issues/26943)) ([4ce64fe](https://togithub.com/aws/aws-cdk/commit/4ce64fe7a52bc3b7c23501a7106a49ee33e21c7a)), closes [#​26914](https://togithub.com/aws/aws-cdk/issues/26914) - **custom-resources:** cross-environment call fails in opt-in region ([#​26917](https://togithub.com/aws/aws-cdk/issues/26917)) ([3701aa7](https://togithub.com/aws/aws-cdk/commit/3701aa7a4449df2163b7a8b7f520db7f43dd619b)), closes [#​26562](https://togithub.com/aws/aws-cdk/issues/26562) - **ec2:** networkAclName property for NetworkAcl does not work ([#​26898](https://togithub.com/aws/aws-cdk/issues/26898)) ([7f31da8](https://togithub.com/aws/aws-cdk/commit/7f31da81a41c6608fd7bca055bb02a6d1558f292)), closes [#​26371](https://togithub.com/aws/aws-cdk/issues/26371) [#​26897](https://togithub.com/aws/aws-cdk/issues/26897) - **elasticloadbalancingv2:** remove equality check for health threshold counts ([#​26949](https://togithub.com/aws/aws-cdk/issues/26949)) ([c8b8f1c](https://togithub.com/aws/aws-cdk/commit/c8b8f1cb8ae3d28468e4abe47480bf3e540c1f4d)), closes [#​26941](https://togithub.com/aws/aws-cdk/issues/26941) - **lambda:** GO\_1\_X runtime will be EOL soon, deprecate in favor of PROVIDED_AL2 runtime ([#​26899](https://togithub.com/aws/aws-cdk/issues/26899)) ([37c59a4](https://togithub.com/aws/aws-cdk/commit/37c59a44d9460e4bc2661134f6124e65700068e9)) - **lambda:** NodeJS14 runtime will be EOL soon, deprecate in favor of newer runtimes ([#​26903](https://togithub.com/aws/aws-cdk/issues/26903)) ([31ff125](https://togithub.com/aws/aws-cdk/commit/31ff12522d4b0e88f9a1bd6621b3a18961c3fb30)) - **lambda:** PROVIDED runtime will be EOL soon, deprecate in favor of PROVIDED_AL2 ([#​26904](https://togithub.com/aws/aws-cdk/issues/26904)) ([fded078](https://togithub.com/aws/aws-cdk/commit/fded078a654f93dd49ba660c2e41b74ecd7424d8)) - **lambda:** update default runtimes and tests to node 16 everywhere ([#​26921](https://togithub.com/aws/aws-cdk/issues/26921)) ([bdce16c](https://togithub.com/aws/aws-cdk/commit/bdce16c6f6bf1880aa988e3c209673b9dfc24166)) - **logs:** LogRetention resources fail with rate exceeded errors ([#​26858](https://togithub.com/aws/aws-cdk/issues/26858)) ([b60e6ef](https://togithub.com/aws/aws-cdk/commit/b60e6efe54983c2ad0b8cdf3c50da84021aef8f6)), closes [#​26837](https://togithub.com/aws/aws-cdk/issues/26837) [#​26837](https://togithub.com/aws/aws-cdk/issues/26837) - **route53:** IHostedZone cannot be used for ses.Identity.publicHostedZone anymore ([#​26888](https://togithub.com/aws/aws-cdk/issues/26888)) ([b5bd39e](https://togithub.com/aws/aws-cdk/commit/b5bd39e479f342830b2a0fb89e75202ef657cbad)), closes [#​26872](https://togithub.com/aws/aws-cdk/issues/26872) - **secrets-manager:** SecretRotationApplication creates lambda on python 3.7 which is EOL ([#​26884](https://togithub.com/aws/aws-cdk/issues/26884)) ([2d9d8d6](https://togithub.com/aws/aws-cdk/commit/2d9d8d64c28554cd17e2c96d994800d8d989b378)), closes [#​26866](https://togithub.com/aws/aws-cdk/issues/26866) - **servicecatalog:** only one ProductStack per Portfolio can use assets ([#​26885](https://togithub.com/aws/aws-cdk/issues/26885)) ([9cb395c](https://togithub.com/aws/aws-cdk/commit/9cb395c48c0c04f6e38f4441a95f9a514fb4a08c)), closes [#​25189](https://togithub.com/aws/aws-cdk/issues/25189) - **sqs:** encryptionType is incorrect when encryptionMasterKey is provided ([#​26886](https://togithub.com/aws/aws-cdk/issues/26886)) ([bf441fa](https://togithub.com/aws/aws-cdk/commit/bf441fab2d34e087ce2490d544ca32689664adcb)), closes [#​26719](https://togithub.com/aws/aws-cdk/issues/26719) *** #### Alpha modules (2.94.0-alpha.0) ##### Features - **amplify:** enables apps hosted with server side rendering ([#​26861](https://togithub.com/aws/aws-cdk/issues/26861)) ([c67da83](https://togithub.com/aws/aws-cdk/commit/c67da83d9c77eaca41ce0691dddad6da11ed397c)), closes [#​24076](https://togithub.com/aws/aws-cdk/issues/24076) [#​23325](https://togithub.com/aws/aws-cdk/issues/23325) - **scheduler:** base target methods and lambda invoke target ([#​26575](https://togithub.com/aws/aws-cdk/issues/26575)) ([39cbd46](https://togithub.com/aws/aws-cdk/commit/39cbd46f5d25d2304415aa2f0b5034dca0f260d8)) - **synthetics-alpha:** add latest two NodeJS runtimes ([#​26967](https://togithub.com/aws/aws-cdk/issues/26967)) ([0a0b37c](https://togithub.com/aws/aws-cdk/commit/0a0b37c5ac5c38abe698f82f5e4f0e0f2cd051b7)) </details> <details> <summary>aws/constructs (constructs)</summary> ### [`v10.2.70`](https://togithub.com/aws/constructs/releases/tag/v10.2.70) [Compare Source](https://togithub.com/aws/constructs/compare/v10.2.69...v10.2.70) ##### [10.2.70](https://togithub.com/aws/constructs/compare/v10.2.69...v10.2.70) (2023-08-29) ##### Bug Fixes - improve addChild and path performance ([#​1891](https://togithub.com/aws/constructs/issues/1891)) ([fdde3da](https://togithub.com/aws/constructs/commit/fdde3da78acd57124f7d241f638ab6504fffd101)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 5am on sunday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SvenKirschbaum/aws-utils).
Describe the feature
https://techcrunch.com/2022/11/28/aws-makes-lambda-cold-start-latency-a-thing-of-the-past-with-snapstart/
Currently SnapStart is only supported with existing lambdas, and currently there is no mention in the AWS Docs of this feature being supported.
Use Case
As an internal team to Amazon, we want to use SnapStart to eliminate coldstart on our Java lambdas.
Proposed Solution
Put a boolean into the Lambda construct to enable SnapStart.
Other Information
No response
Acknowledgements
CDK version used
Any
Environment details (OS name and version, etc.)
Any
The text was updated successfully, but these errors were encountered: