The AWS Serverless Application Model Command Line Interface (AWS SAM CLI) supports local debugging and testing of your AWS Lambda functions and layers. For an introduction to this feature, see What is AWS SAM CLI support for Terraform?
Topics
Local debugging and testing overview
sam metadata resource
Defining the sam metadata resource
Using the AWS SAM CLI with Terraform
Building your Terraform project with sam build
Local testing with sam local invoke
Local testing with sam local start-lambda
Unsupported Terraform features