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.14.2.tar.gz (247.2 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.14.2-py3-none-any.whl (354.9 kB view details)

Uploaded Python 3

aws_sam_cli-0.14.2-py2-none-any.whl (354.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: aws-sam-cli-0.14.2.tar.gz
  • Upload date:
  • Size: 247.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10

File hashes

Hashes for aws-sam-cli-0.14.2.tar.gz
Algorithm Hash digest
SHA256 b7f80838d57c1096a9a03ed703a91a8a5775a6ead33df8f31765ecf39b3a956f
MD5 d8decd78f218ba32e978e3079e5ede2b
BLAKE2b-256 d3fb3a4e78922af3dc4e5190dcd28810eb3313b46330090f45ee9fc845489944

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_sam_cli-0.14.2-py3-none-any.whl
  • Upload date:
  • Size: 354.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10

File hashes

Hashes for aws_sam_cli-0.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 915b22f442c19755aabf3d96d7909ca0967c06248c448b54f5afd31c763e72d2
MD5 43f1085007a37b9f7bc18b3058b39c63
BLAKE2b-256 d102b6791ce288ec8ad6df235f360e4d35dc95a3e223cb25f38e130b4bcb1528

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_sam_cli-0.14.2-py2-none-any.whl
  • Upload date:
  • Size: 354.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10

File hashes

Hashes for aws_sam_cli-0.14.2-py2-none-any.whl
Algorithm Hash digest
SHA256 50ac587d65d9b53e48b28b3605d3c2e6e0625dcc947e746359d87835627da021
MD5 fff2d89559d113193785c58331e948ba
BLAKE2b-256 41e244d94ffa4393dcbee9cfed1309981fe4e5e4bc44e80c3dabd3010543f5b6

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