Giter VIP home page Giter VIP logo

terraform-healthcheck-reference's Introduction

Terraform Control repo built following the pattern as outlined by Charity Majors

TLDR, but really, go read the post, it's way better then what I'm going to write here..

Terraform Version

The Current production terraform version can be found here

To create a new repo using the terraform-reference repo.

  • Clone the repo git clone https://github.com/FitnessKeeper/terraform-reference
  • Edit .env in the root of the repo, in particular make sure you add a TF_PROJECT_NAME
    • When creating a spike make sure you update TF_SPINE in env if something other then rk is needed, at the time of this writing rk and asics are valid spines.
    • Also when creating ASICS spikes update to TF_LOCK_TABLE=asics-services-terraformStateLock
  • Initialize variables.tf, this only needs to be done once, when the repo is created run ./init-variables.tf.sh
  • Remove the old origin git remote rm origin
  • Add your new repo git remote add origin https://github.com/FitnessKeeper/terraform-reference.git
  • Commit your changes
  • git push -u origin master
  • Edit variables.tf to reflect your new service

To use an environment in the control repo

  • cd into the base dir for the env you want to work on
    • cd terraform-<service>/env-development/
  • ./init.sh # to initialize your environment
  • terraform get # to load your modules
  • terraform plan -var-file=development.tfvars # manage all the things!

Design pattern

We are trying to follow a pattern where we have an infrastructure repo with 3 tiers - dev, stage, and production, known as FitnessKeeper/terraform-runkeeper. We will use that control repo to build VPC, ECS Clusters, DNS Zones, and other resources that can be presented as a platform for use by services.

Services, will be created using atomic control repos, based off this skel, and have distinct state files for each of the tiers. In this way, we can make changes to the state of a service living atop our infrastructure, without having to push stage changes to the underlying resources.

terraform-healthcheck-reference's People

Contributors

falpangaea avatar hakamadare avatar tfhartmann avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.