On this sample of Infrastructure as Code, we are using Terraform to deploy infrastructure to schedule Serverless jobs (bash script) using AWS Fargate.
Blog post available here
- Create an artifacts bucket:
make artifactsfor Terraform S3 remote state
git clone https://github.com/z0ph/serverless-jobs-using-fargate.git- Prepare your Docker image (using
Dockerfile) - Adapt the
variables.tf, and "Config" part inMakefileto your needs - Run
make build-docker - Prepare deployment using
make init,make validate, thenmake plan - Run
make apply - Take a nap, enjoy 🍸
- Run
make destroy
