Clojure AWS lambda + Terraform example project.
Build and upload:
lein uberjar
cd terraform
terraform init
terraform plan
terraform apply
Invoke AWS Lambda:
aws lambda invoke --invocation-type RequestResponse --function-name clj-lambda --region us-west-2 --log-type Tail --payload '{"some":"input"}' outfile.txt
Destroy AWS environment:
terraform destroy