Use the AWS Serverless Application Model Command Line Interface (AWS SAM CLI) within your Terraform projects to perform local debugging and testing of your AWS Lambda functions and layers.
Topics
Local debugging and testing with AWS SAM CLI
How the AWS SAM CLI interacts with your Terraform projects
Benefits of AWS SAM CLI Terraform support
xxxxxxxxxx
The AWS SAM CLI supports the following commands for your Terraform projects:
sam build – Package the Lambda resources in your Terraform projects to use with the AWS SAM CLI for local debugging and testing. For more information on sam build, see sam build.
sam local invoke – Invoke an AWS Lambda function once. For more information on sam local invoke, see sam local invoke.
sam local start-lambda – Start a local endpoint for your Lambda function in order to invoke your function locally using AWS Command Line Interface (AWS CLI) or SDKs. For more information on sam local start-lambda, see sam local start-lambda.