Aws-sam-cli

Latest version: v1.116.0

Safety actively analyzes 627711 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 23 of 34

1.0.0rc2

Not secure
Release Candidate 2 for AWS SAM CLI general availability release.

This release fixes a bug in which customers installing with Homebrew could not invoke a function locally (issue 2095).

All changes should be fully backwards compatible with 0.53.0 and 1.0.0rc1. Assuming no regressions or issues are identified, this will become AWS SAM CLI 1.0.0.

1.0.0rc1

Not secure
Release Candidate 1 for AWS SAM CLI general availability release.

Uses `amazon/aws-sam-cli*` images from DockerHub for building with containers and for local testing. These images are based off the AWS Lambda execution environment.

All changes should be fully backwards compatible with `0.53.0`. Assuming no regressions or issues are identified, this will become AWS SAM CLI `1.0.0`.

0.53.0

Not secure
[2a0cdd3](https://api.github.com/repos/awslabs/aws-sam-cli/commits/2a0cdd322607f19587cca39565af3ae889805a65) - docs: Removing python 2 info from the development guide (#1993)
[a2bec59](https://api.github.com/repos/awslabs/aws-sam-cli/commits/a2bec594d1307e4dc1c88f37c96fe0916f14561f) - Adding docker info. (#1995)
[b5b1ec4](https://api.github.com/repos/awslabs/aws-sam-cli/commits/b5b1ec43f37f685897db39c0bb20176dae249cee) - fix: guided deploy doesn't update default capabilities that is provided via --capabilites option as CLI argument (#2041)
[612ee73](https://api.github.com/repos/awslabs/aws-sam-cli/commits/612ee73d3c609aaf1f3dd76160d79ea8c941b6e8) - fix(start-api): Don't cache static files in responses (#2038)
[4f12dc7](https://api.github.com/repos/awslabs/aws-sam-cli/commits/4f12dc74ca8ff6fddd661711db7c3048812b4119) - fix(docs): md table-format for sam-build-cmd design (#1984)
[cd5efb0](https://api.github.com/repos/awslabs/aws-sam-cli/commits/cd5efb07ea8a2423ed9886004df1e7e72eec4019) - Adding SAM 1.25.0 Functional Test (#2048)
[4c467b5](https://api.github.com/repos/awslabs/aws-sam-cli/commits/4c467b55c19f7f241c747a149880b7a1e3c48249) - chore: bump version to 0.53.0 (#2049)
[c4dbf96](https://api.github.com/repos/awslabs/aws-sam-cli/commits/c4dbf96b916ff70ceb3c1d02677199e247aed2c7) - Removing hack for docker issue as it is fixed by AppVeyor. (#2050)

0.52.0

Not secure
[3ed51f2](https://api.github.com/repos/awslabs/aws-sam-cli/commits/3ed51f296a83c01737c54c969b43c8d0570dcfce) - Fixed inline help issue in "sam local generate-event" (#2007)
[5d5d81a](https://api.github.com/repos/awslabs/aws-sam-cli/commits/5d5d81a3f51a85f88434ea8e2b5d646b870b0cf6) - Fixing bug for build for layers in container. (#2008)
[de0633f](https://api.github.com/repos/awslabs/aws-sam-cli/commits/de0633f9b7ded33e42fdcc33feff2f70293af7b3) - feat: Support for Step Functions Resource (#2009)

0.51.0

Not secure
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

yaml
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](https://api.github.com/repos/awslabs/aws-sam-cli/commits/49cb854d3f04ecbd59a562ddd5285b31da3dfc9e) - feat: allow a custom builder workflow selection (#1957)
[39add9a](https://api.github.com/repos/awslabs/aws-sam-cli/commits/39add9acd0c7532129a6543134919eb6ae9df4f3) - feat: adding makefile workflow for layers build. (#2000)
[98be672](https://api.github.com/repos/awslabs/aws-sam-cli/commits/98be672418f76bf1cc54db7528988b8a1c6a6b52) - chore: version v0.51.0 (#2004)

0.50.0

Not secure
Support for Building Layers

SAM CLI now supports building layers specified in template by specifying `BuildMethod` under a Metadata Attribute of the Layer Resource. If `BuildMethod` is not specified, the layer is not built.


Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: hello_world/
Handler: app.lambda_handler
Runtime: python3.8
Layers:
- !Ref MyLayer
- !Ref MyLayer2
Events:
HelloWorld:
Type: Api More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Properties:
Path: /hello
Method: get
MyLayer:
Type: AWS::Serverless::LayerVersion
Properties:
Description: Layer description
ContentUri: 'my_layer/'
CompatibleRuntimes:
- python3.8
Metadata:
BuildMethod: python3.8
MyLayer2:
Type: AWS::Serverless::LayerVersion
Properties:
Description: Layer description
ContentUri: 'my_layer2/'
CompatibleRuntimes:
- python3.8


`sam build MyLayer` build single layer.

`sam build HelloWorldFunction` builds function and the layer that the function uses.



[23212ef](https://api.github.com/repos/awslabs/aws-sam-cli/commits/23212ef827a105d23339712adc9422c6cc55e12c) - Build for Layers (#1936)
[de8ad8e](https://api.github.com/repos/awslabs/aws-sam-cli/commits/de8ad8e78491ebfa884c02c3439c6bcecd08516b) - Adding design doc for 'build for layers' (#1945)
[24af60e](https://api.github.com/repos/awslabs/aws-sam-cli/commits/24af60ec85d21d9ebde18a9c2219e7742bc59011) - chore: version bump to 0.50.0 (#1998)
[30b1016](https://api.github.com/repos/awslabs/aws-sam-cli/commits/30b1016bd23de4cfa3b5a3a1b7301d849355a2e1) - bug: security prompt - instrinsics in definition body (#1988)

Page 23 of 34

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.