You can use SST to define the Lambda configuration and deploy it.

The example below builds the BAML x86_64 rust binaries into a Lambda layer and uses the layer in the Lambda function.

Example Node + SST Project

Let us know if you want to deploy a python BAML project on AWS. Our example project is coming soon.

Current limitations

The BAML binaries only support the NodeJS 20.x runtime (or a runtime using Amazon Linux 2023). Let us know if you need a different runtime version.