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 artifacts
for 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 inMakefile
to 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