github aws/aws-sam-cli v0.51.0
Support for Building `provided` runtimes

latest releases: v1.116.0.dev202405030901, v1.116.0.dev202405020901, v1.116.0.dev202405010901...
3 years ago

Support for Building provided runtimes

SAM CLI now supports building provided runtimes specified in template by specifying BuildMethod : makefile in the Metadata Attribute of the Function Resource.

SAM CLI supports building via makefile for official lambda runtimes as well.

Template

Resources:
  HelloRustFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: bootstrap.is.real.handler
      Runtime: provided
      MemorySize: 512
      CodeUri: .
    Metadata:
      BuildMethod: makefile

Makefile

build-HelloRustFunction:
    cargo build --release --target x86_64-unknown-linux-musl
    cp ./target/x86_64-unknown-linux-musl/release/bootstrap $(ARTIFACTS_DIR)

Layers can also be built using BuildMethod : makefile

Changelog

49cb854 - feat: allow a custom builder workflow selection (#1957)
39add9a - feat: adding makefile workflow for layers build. (#2000)
98be672 - chore: version v0.51.0 (#2004)

Don't miss a new aws-sam-cli release

NewReleases is sending notifications on new releases.