Repository navigation
Rust Durable Functions availability? #37246
Replies: 1 comment
|
There are two independent support questions here: infrastructure support and Rust runtime/SDK support. CDK now has infrastructure support. Current import { Duration } from 'aws-cdk-lib';
import * as lambda from 'aws-cdk-lib/aws-lambda';
const fn = new lambda.DockerImageFunction(this, 'RustDurableFunction', {
code: lambda.DockerImageCode.fromImageAsset('../rust-handler'),
architecture: lambda.Architecture.ARM_64, // match the image you build
durableConfig: {
executionTimeout: Duration.hours(1),
retentionPeriod: Duration.days(7),
},
});
const version = fn.currentVersion;
const live = new lambda.Alias(this, 'Live', {
aliasName: 'live',
version,
});The L2 support landed in The service runtime restriction is the part causing the rejection. AWS's current supported runtimes for durable functions lists Node.js, Python and Java managed runtimes. Rust normally uses the OS-only AWS does document OCI container images as the route for additional/custom runtime configurations. That is why the example above uses Important caveats for the Rust crate:
Inspect So the short answer is: there is no separate If this gets the Rust image past CloudFormation validation, please mark it as the accepted answer so others can find the managed-runtime versus container distinction. |
Uh oh!
There was an error while loading. Please reload this page.
Hi team,
was writing a small testing rust lambda taking approach of https://crates.io/crates/durable-execution-sdk and found that I couldn't deploy my lambda because CloudFormation (CDK) rejects it.
Was trying to see whether there's an alpha version of aws-cdk-lib or cargo-lambda-cdk that enables it but seems it's still not available anywhere.
Thanks
All reactions