Create secret.tfvars
and provide an AWS S3 bucket name for uploads:
upload_bucket = "s3-bucket-name"
Terraform commands are run via Docker using a Makefile
.
make plan
make apply
Retrieve the API key from the API Gateway dashboard.
curl -X PUT --data "@/path/to/file" -H "X-Api-Key: APIKEY" https://APIID.execute-api.us-east-1.amazonaws.com/prod/s3-key
curl -H "X-Api-Key: APIKEY" https://APIID.execute-api.us-east-1.amazonaws.com/prod/s3-key