This AWS Amplify plugin provides the ability to develop ARM64 Lambda functions in Rust.
To use this plugin, follow the instructions provided by AWS Amplify: https://docs.amplify.aws/cli/plugins/plugins/#plugin-installation
In particular,
npm install --global amplify-rust-arm64-function-runtime-provider
amplify plugin scan
After installing this plugin, you will be able to create Lambda functions in Rust. An option for using the Rust
runtime will be available when using commands like amplify function add
or amplidy api add
to create Lambda functions.
NOTE that to actually use the Rust runtime, you will need to install a Rust template provider, such as amplify-rust-function-template-provider
.
Don't forget to add the following code below "Runtime" in CloudFormation JSON to deploy the Rust code to ARM64 environment.
"Architectures": [
"arm64"
]