Support for Building `provided` runtimes
aws-sam-cli-bot
released this
21 May 19:39
·
2421 commits
to master
since this release
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)