Terraform code for simple lambda with sqs trigger.
Terraform v1+ required.
Create a .zip file with lambda code.
cd example
zip example.zip index.js
Deploy Terraform infrastructure.
cd terraform
terraform init --backend-config=./config/dev/config.remote
terraform apply --var-file=./config/dev/config.tfvars