Aws-sam-cli

Latest version: v1.116.0

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

Scan your dependencies

Page 32 of 34

0.4.0

Not secure
This release captures another milestone with Python3.6 being fully supported. We have also captured numerous bug/regressions fixes since version 0.3.0. See Changelog below for more details.

CHANGELOG

Tell Flask we are running the service in main (491)
Proper setting of permissions for the tempdir on posix systems. (485)
add version field to schedule event generator (471)
Prevent form data from being consumed by Flask (419)
Preserve file permissions when decompressing a zip file (464)
Python3 support (446)
Options requests not invoking Local Lambda (468)
Update Flask version to 1.0.2 (459)
Value of QueryString in the API Event should be a string (405)
download a swagger file form a given S3 location (444)
Do not add DefinitionUri when Definitionbody Property is given (447)
sam init Dotnet templates to use Cake for builds (401)
Allow for case insensitive header names (398)

0.3.0

Not secure
What's new in 🐿?

This release is an important milestone - New command to get started with SAM apps, full fidelity SAM Template validation, tons of bug fixes, and greatly improved stability. Oh did I mention, we rewrote the entire CLI from the ground up?! Yes, in 🐍. With this refresh, SAM CLI uses the recently open sourced transform, enabling you leverage any new SAM functionality immediately after release.

Features

New Command: `sam init`
`sam init` is a new command that lets you quickly get started with a SAM app in any runtime of your choice. Just install the CLI and type `sam init` to create a new "Hello World" SAM app that includes everything (directory structure, tests, SAM template, instructions) you need to get started with serverless and eventually grow into a production scale application.

The cool part is, you can use custom templates to initialize a SAM app. For example, you could create a boilerplate SAM app specific for your organization and publish to a private GitHub repo. Others in your organization can run `sam init --location gh:your-org/your-repo` to initialize an app. Applications initialized using `sam init` can be customized to use a different project name, Lambda runtime or even include/exclude various functionalities. Check out the sam init documentation for more information.

Full Fidelity SAM Validation
SAM CLI now provides full-fidelity validation of SAM templates because it uses the recently [open-sourced SAM implementation](https://github.com/awslabs/serverless-application-model). A template that passes sam validate command locally will pass the validation when deployed through AWS CloudFormation.

SAM Local CLI → SAM CLI
If you didn't already notice, we have started calling this tool "SAM CLI" instead of "SAM Local CLI". This is a non-functional change we are making to better align the tool with its purpose - simplify the process of creating, deploying and maintaining serverless apps using the command line.

Installation Instructions
We now support a PIP-based installation method. To install the new SAM CLI, use the following


Uninstall the old CLI if you had originally installed
npm uninstall -g aws-sam-local

Install the new CLI through PIP
pip install --user aws-sam-cli


Go → Python
With this release, we have rewritten SAM CLI in Python to use the open-sourced AWS SAM implementation. As a user, you should notice no difference but as a contributor to the CLI, you would have to adjust your development workflow. We have a detailed [DEVELOPMENT_GUIDE.rst](DEVELOPMENT_GUIDE.rst) to help you quickly ramp up. Read the [DESIGN.rst](DESIGN.rst) for more details on design rationale and decisions.

Changes to CloudFormation intrinsic functions support
There are two notable changes regarding how intrinsic functions are handled within the CLI:

1. If you use an Inline Swagger definition (in DefinitionBody property) property and use Fn::Join to construct the Lambda Integration ARN in the x-amazon-apigateway-integration section, you would have to convert this to Fn::Sub to work with SAM CLI as of this release. You can easily convert Fn::Join to Fn::Sub without any loss of functionality. For example:

A Fn::Join usage like this:
{
"Fn::Join": ["", ["arn:aws:apigateway:", {"Ref": "AWS::Region"}, ":lambda:path/2015-03-31/functions/", {"Fn::GetAtt": ["MyFunction", "Arn"]}, "/invocations"]]
}

Can be converted to:
{
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyFunction.Arn}/invocations"
}


2. If you use CloudFormation parameters with default values to reference a Lambda Function's Timeout or Runtime properties, you now need to specify the values of these in the template. If you are using template parameters to standardize the value of Runtime or Timeout across all your functions, you use `Globals` to specify the value once and have it applied to all your functions.

yaml
Parameters:
NodeRuntime:
Default: nodejs6.10

Function1:
Type: AWS::Serverless::Function
Properties:
Runtime: !Ref NodeRuntime
...
yaml

You can convert it to:
yaml
Globals:
Function:
All your functions will get nodejs6.10 runtime
Runtime: nodejs6.10

Function1:
Type: AWS::Serverless::Function
Properties:
...


Bug Fixes
- Full fidelity SAM template validation [https://github.com/awslabs/aws-sam-local/issues/342](https://github.com/awslabs/aws-sam-local/issues/342)
- Globals support [https://github.com/awslabs/aws-sam-local/issues/234](https://github.com/awslabs/aws-sam-local/issues/234) and [https://github.com/awslabs/aws-sam-local/issues/226](https://github.com/awslabs/aws-sam-local/issues/226)
- Value of APIGW Path property on proxy response is now correct [https://github.com/awslabs/aws-sam-local/issues/244](https://github.com/awslabs/aws-sam-local/issues/244)
- NPM Installation issues [https://github.com/awslabs/aws-sam-local/issues/263](https://github.com/awslabs/aws-sam-local/issues/263)
- Empty values in Api Event are 'null' instead of empty map/lists [https://github.com/awslabs/aws-sam-local/issues/338](https://github.com/awslabs/aws-sam-local/issues/338) and [https://github.com/awslabs/aws-sam-local/issues/340](https://github.com/awslabs/aws-sam-local/issues/340)
- Content-Type of application/json is always added to headers [https://github.com/awslabs/aws-sam-local/issues/329](https://github.com/awslabs/aws-sam-local/issues/329) and [https://github.com/awslabs/aws-sam-local/issues/325](https://github.com/awslabs/aws-sam-local/issues/325) and [https://github.com/awslabs/aws-sam-local/issues/361](https://github.com/awslabs/aws-sam-local/issues/361)
- Full featured YAML support for parsing complex intrinsic functions like !Ref, !GetAtt without failing in template parsing - [https://github.com/awslabs/aws-sam-local/issues/342](https://github.com/awslabs/aws-sam-local/issues/342)
- Parity with credential resolutions mechanisms supported by AWS CLI since SAM CLI now uses boto3 [https://github.com/awslabs/aws-sam-local/issues/372](https://github.com/awslabs/aws-sam-local/issues/372)
- Better support for ANY method [https://github.com/awslabs/aws-sam-local/issues/289](https://github.com/awslabs/aws-sam-local/issues/289)
- Encode JSON output from `generate-event` [https://github.com/awslabs/aws-sam-local/issues/214](https://github.com/awslabs/aws-sam-local/issues/214)
- Works with Chalice out-of-box [https://github.com/awslabs/aws-sam-local/issues/141#issuecomment-332290858](https://github.com/awslabs/aws-sam-local/issues/141#issuecomment-332290858)
- Compatibility with API Gateway Binary Media Types implementation [https://github.com/awslabs/aws-sam-local/issues/312](https://github.com/awslabs/aws-sam-local/issues/312)
- Relative paths in CodeUri get resolved with respect to template path [https://github.com/awslabs/aws-sam-local/pull/279](https://github.com/awslabs/aws-sam-local/pull/279) [https://github.com/awslabs/aws-sam-local/issues/170](https://github.com/awslabs/aws-sam-local/issues/170)
- Make multiple invokes in parallel [https://github.com/awslabs/aws-sam-local/issues/301#issuecomment-385066464](https://github.com/awslabs/aws-sam-local/issues/301#issuecomment-385066464)
- Support AWS::Include to inline a Swagger file

0.2.11

This is a bug fix release. It fixes a bug due to which Node6 debugging was broken for the "legacy" protocol, and Node8 debugging didn't work altogether.

Changelog

a04b791 Fix node debugger protocol (358)

---
Automated with [GoReleaser](https://github.com/goreleaser)
Built with go version go1.8.3 linux/amd64

0.2.10

This release adds supports for Nodejs 8.10 and fixes a minor issue with compatibility with API Gateway X-Forwarded-For headers

Update to latest version

npm update -g aws-sam-local


Big thanks mhart for adding Node 8.10 container and sending a pull request!

Changelog

290b208 Merge pull request 339 from SAPessi/develop
c9bdb4b Merge branch 'develop' into develop
2844be1 Merge pull request 344 from mhart/add-nodejs.810
ee1789f Merge branch 'develop' into add-nodejs.810
520fd02 Merge pull request 345 from mhart/update-debug-flags
e33c658 Update debug flags to match latest on live Lambda
af5ad08 Add support for the Node.js 8.10 Runtime
0aeacd7 Added Forward headers similar to API Gateway's. Helps address https://github.com/awslabs/aws-serverless-java-container/issues/138
ffcd2e5 Adding standard files (335)


---
Automated with [GoReleaser](https://github.com/goreleaser)
Built with go version go1.8.3 linux/amd64

0.2.9

Changelog

290b208 Merge pull request 339 from SAPessi/develop
c9bdb4b Merge branch 'develop' into develop
2844be1 Merge pull request 344 from mhart/add-nodejs.810
ee1789f Merge branch 'develop' into add-nodejs.810
520fd02 Merge pull request 345 from mhart/update-debug-flags
e33c658 Update debug flags to match latest on live Lambda
af5ad08 Add support for the Node.js 8.10 Runtime
0aeacd7 Added Forward headers similar to API Gateway's. Helps address https://github.com/awslabs/aws-serverless-java-container/issues/138
ffcd2e5 Adding standard files (335)


---
Automated with [GoReleaser](https://github.com/goreleaser)
Built with go version go1.8.3 linux/amd64

0.2.8

What's new in 🐿?

Fixed a bug introduced in 0.2.7 due to which debugging did not work.

Update to latest version


npm update -g aws-sam-local



Changelog

629e627 Handle the case of empty debug arguments. Fixes 314 (316)
64cd99d Add Python3.6 to debug overrides section (315)
2c3cb7c Merge pull request 285 from kintalapps/develop
892a36e Merge branch 'develop' into develop
9b1584f Update README.md
7b0c3ac Merge branch 'develop' into develop
3c6b9ee Merge branch 'develop' into develop
08b6a9f Update runtime.go
489862a Update runtime.go
6c65824 Update runtime.go

---
Automated with [GoReleaser](https://github.com/goreleaser)
Built with go version go1.8.3 linux/amd64

Page 32 of 34

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.