Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

fastly/altitude-trek-ci-cd

Repository files navigation

Building a continuous deployment pipeline
with Terraform and Fastly

Demo repository for the talk Building a continuous deployment pipeline with Terraform and Fastly, first presented at Altitude Trek SF 2019.

In this session, you’ll walk through the process of creating a continuous deployment pipeline using Travis, Terraform, Fastly, and GitHub. We’ll introduce you to the core concepts needed to deploy a new version of your Fastly service via the API, as well as the benefits of automating this process. Along the way, you’ll gain practical, implementable tips and tricks for managing your infrastructure as code.

Requirements

Configuration

Fork this repository and clone to a local directory.

You will need a terraform.tfvars file containing the following access token variables:

FASTLY_API_TOKEN = "<YOUR FASTLY API TOKEN>"

GCP_PROJECT_ID = "<YOUR GCP PROJECT ID>"

GCS_ACCESS_KEY = "<YOUR GCP ACCESS KEY>"

GCS_SECRET_KEY = "<YOUR GCP SECRET KEY>"

You will also need a .google.json file containing the IAM credentials for a service account that has storage write acccess permissions.

Running

  • terraform workspace new staging
  • terraform plan
  • terraform apply
  • Make a change to fastly_service_v1 resource in main.tf
  • git commit -am "Details of your change"
  • git push origin master

License

MIT

About

Demo repository for Altitude Trek 2019 talk: Building a continuous deployment pipeline with Terraform and Fastly

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published