Using the AWS SAM CLI with Serverless.tf for local debugging and testing (original) (raw)

The AWS Serverless Application Model Command Line Interface (AWS SAM CLI) can be used with Serverless.tf modules for local debugging and testing of your AWS Lambda functions and layers. The following AWS SAM CLI commands are supported:

Note

Serverless.tf version 4.6.0 and newer supports AWS SAM CLI integration.

To begin using the AWS SAM CLI with your Serverless.tf modules, update to the latest version Serverless.tf and the AWS SAM CLI.

Starting from serverless.tf version 6.0.0, you must set the create_sam_metadata parameter as true. This generates the metadata resources that the AWS SAM CLI sam build command requires.

To learn more about Serverless.tf, see the terraform-aws-lambda-module.

Using AWS SAM CLI with Terraform

Terraform reference

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.