-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS Lambdaeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
The new feature is currently being worked on in this PR. In the meantime, you can access the SnapStart feature using the following workaround:
const fn = new lambda.Function(this, 'Func', {
runtime: lambda.Runtime.JAVA_21,
handler: 'example.Handler',
architecture: lambda.Architecture.ARM_64,
code: lambda.Code.fromAsset(path.join(__dirname, '../../lambda/example.jar')),
memorySize: 256,
});
// Workaround: Add SnapStart configuration like this:
(fn.node.defaultChild as lambda.CfnFunction).addPropertyOverride('SnapStart', {
ApplyOn: 'PublishedVersions',
});
CDK version used
2.149.0
Environment details (OS name and version, etc.)
All
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS Lambdaeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2