AWS SAM Local (Beta) Compatibility

AWS just launched SAM local (Beta) which allows local builds and tests based on the SAM model. Will serverless integrate with it? It’s nice because it simulates event sources invocation from AWS services locally with Docker images.

Serverless doesn’t use SAM so I wouldn’t expect it any time soon.

1 Like

I also think it would be good to have aws-sam-local integration.

For example, it would allow to test binary/static libraries without having to upload them first and then speed up the development process.

@buggy can you please explain more why you think this is a non-topic ?
Maybe a serverless plugin would be a good tradeoff ?

Serverless support for AWS is based on CloudFormation. To support SAM the first step is writing a new provider. I’m not saying that it won’t happen, simply that it won’t happen any time soon.

i am using to test packages in a lambda-like environment.

My workflow is :

  • Run full test suite on Travis directly
  • package with serverless package --package <my-package-folder>
  • generate a sam-template.yml using serverless sam export
  • test the packaged version using sam local invoke
  • deploy using serverless deploy --package <my-package-folder>