Project to test integration between API Gateway + SQS + Lambda
- API Gateway
- SQS Queue
- Roles/Policies
- Lambda - Golang
cd app;; $Env:GOOS = "linux";; go build -o ./tf_generated/coffee-shop-lambda
Follow these steps to provision the infrastructure using Terraform:
-
Initialize the Terraform working directory:
terraform init
-
Preview the changes that will be applied:
terraform plan
-
Apply the changes and create the infrastructure:
terraform apply
curl --request POST \
--url https://<api-gateway>.execute-api.us-east-1.amazonaws.com/coffee \
--data '{
"name": "Jean Jacques",
"order": {
"value": 10.2,
"item": "Mocaccino"
}
}'