This repository uses terraform to deploy the application It works on creating a lambda function and setting a trigger to it with an API Gateway
- Install terraform cli v0.12.16
- Clone this directory
- export AWS_ACCESS_KEY_ID=
- export AWS_SECRET_ACCESS_KEY=
- run terraform init
- run terraform plan first to make sure all is good. (Please populate prompts"
- run terraform apply
The API Gateway that gets generated is called myapi
example payload
{
"snowRequestId":"some-id",
"environment":"stag",
"cpuCount":"2",
"memoryGB":"5"
}
curl -X POST https://api-gateway-way-enpoint/ops/update-terraform-repo --data '{"snowRequestId":"some-id","environment":"stag","cpuCount":"2","memoryGB":"5"}'