Skip to main content

AWS SAM CLI is a CLI tool for local development and testing of Serverless applications

Project description

SAM CLI (Beta)

Build Status Apache-2.0 Contributers GitHub-release PyPI version

Join the SAM developers channel (#samdev) on Slack to collaborate with fellow community members and the AWS SAM team.

sam is the AWS CLI tool for managing Serverless applications written with AWS Serverless Application Model (SAM). SAM CLI can be used to test functions locally, start a local API Gateway from a SAM template, validate a SAM template, fetch logs, generate sample payloads for various event sources, and generate a SAM project in your favorite Lambda Runtime.

Main features

  • Develop and test your Lambda functions locally with sam local and Docker
  • Invoke functions from known event sources such as Amazon S3, Amazon DynamoDB, Amazon Kinesis Streams, etc.
  • Start local API Gateway from a SAM template, and quickly iterate over your functions with hot-reloading
  • Validate SAM templates
  • Get started with boilerplate Serverless Service in your chosen Lambda Runtime sam init

Get Started

Learn how to get started using the SAM CLI with these guides:

Project Status

  • [x] Python Versions support
    • [x] Python 2.7
    • [x] Python 3.6
    • [x] Python 3.7
  • [ ] Supported AWS Lambda Runtimes
    • [x] nodejs
    • [x] nodejs4.3
    • [x] nodejs6.10
    • [x] nodejs8.10
    • [x] java8
    • [x] python2.7
    • [x] python3.6
    • [x] python3.7
    • [x] go1.x
    • [ ] dotnetcore1.0
    • [x] dotnetcore2.0
    • [x] dotnetcore2.1
    • [x] ruby2.5
    • [x] Provided
  • [x] AWS credential support
  • [x] Debugging support
  • [x] Inline Swagger support within SAM templates
  • [x] Validating SAM templates locally
  • [x] Generating boilerplate templates
    • [x] nodejs
    • [x] nodejs4.3
    • [x] nodejs6.10
    • [x] nodejs8.10
    • [x] java8
    • [x] python2.7
    • [x] python3.6
    • [x] python3.7
    • [x] go1.x
    • [x] dotnetcore1.0
    • [x] dotnetcore2.0
    • [x] ruby2.5
    • [ ] Provided

Contributing

Contributions and feedback are welcome! Proposals and pull requests will be considered and responded to. For more information, see the CONTRIBUTING file.

A special thank you

SAM CLI uses the open source docker-lambda Docker images created by @mhart.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-sam-cli-0.13.0.tar.gz (196.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aws_sam_cli-0.13.0-py3-none-any.whl (304.8 kB view details)

Uploaded Python 3

aws_sam_cli-0.13.0-py2-none-any.whl (304.8 kB view details)

Uploaded Python 2

File details

Details for the file aws-sam-cli-0.13.0.tar.gz.

File metadata

  • Download URL: aws-sam-cli-0.13.0.tar.gz
  • Upload date:
  • Size: 196.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for aws-sam-cli-0.13.0.tar.gz
Algorithm Hash digest
SHA256 3a0cc1755b5cb21e9e30507b9ef0e52376ff94c0ac2e13b320fe742591b26bd2
MD5 6d470ca110fc0d7f0b043cb355eeac05
BLAKE2b-256 08bc2f80c1351abe15147a7e50ee65a820a1df955989b594921143c50b76511a

See more details on using hashes here.

File details

Details for the file aws_sam_cli-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: aws_sam_cli-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 304.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for aws_sam_cli-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f7252889091cdb2519b977fb51c910a76c71350d5f666d1106f8cb85c5ad5b8
MD5 4fc4a97ddcc434ffdf6357cf3d48e5f3
BLAKE2b-256 c466518b4937512d01e9ee1e8519b5118dfd0579e8fdcdef36f0b1d1246d117f

See more details on using hashes here.

File details

Details for the file aws_sam_cli-0.13.0-py2-none-any.whl.

File metadata

  • Download URL: aws_sam_cli-0.13.0-py2-none-any.whl
  • Upload date:
  • Size: 304.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for aws_sam_cli-0.13.0-py2-none-any.whl
Algorithm Hash digest
SHA256 8b2863f617f4d0b12dbbf912b5fe1169ebd04838120befafcb471ada0f26edd6
MD5 765f984437e216b62e34646c4fa5a8cb
BLAKE2b-256 5406368fcb7728aeef014f13baab5659ef2b00acd2683b131e14ae45312007ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page