cd-with-terraform
cd-with-terraform copied to clipboard
Practical exercises for InfoQ "Continuous deployment with Terraform" workshop
Continuous deployment with Terraform
This repository contains the files and excercises needed to participate in the workshop "Continuous deployment with Terraform".
Welcome! The goal of the workshop is to build a continuous deployment pipeline around an example Fastly config. Combining Fastly’s 5-second deploys, API control, and some open-source tooling (Travis, Terraform) attendees will contribute live changes and see their results in the demo.
Prerequisites
- Have a GitHub account
- Have a machine with a terminal prompt,
MakeandRubyinstalled
Install:
- Fork the GitHub repo: https://github.com/fastly/cd-with-terraform
- Clone the repo to a local directory on your machine:
- Via SSH:
git clone [email protected]:<USERNAME>/cd-with-terraform.git - Via HTTP:
git clone https://github.com/<USERNAME>/cd-with-terraform.git
- Via SSH:
- Change directory into the repo:
cd cd-with-terraform - Install the dependencies
make install- This will install the Terraform binary to your
$HOMEdirectory and link your$PATH. Permission may be required. - If you already have Terraform and the Travis gem installed on your machine or would prefer to install manually, skip this step.
- This will install the Terraform binary to your
- You're good to go!
Exercises:
To start, follow the tasks in the exercises directory:
- Define a Fastly service with Terraform
- Configure continuous deployment with Travis