=============================================================================== Infrastructure as Code =============================================================================== ------------------------------------------------------------------------------- Overview ------------------------------------------------------------------------------- We use `terraform `__ to manage some of our infrastructure. It lets us repeat infrastructure setup tasks without having to rely on individual developers clicking the right buttons in the right order. ------------------------------------------------------------------------------- Setup ------------------------------------------------------------------------------- 1. Install terraform with the `official docs `__ 2. Make sure you're authenticated to GCP for `*application* usage `__, not just normal gcloud usage: ``gcloud auth application-default login`` ------------------------------------------------------------------------------- Development ------------------------------------------------------------------------------- Just put things into ``main.tf`` for now. You might want to check out the `GCP tutorial `__ or the `GCP provider docs `__. Run: 1. ``tf init`` so you get the GCP provider. You only need to do this the first time. 2. ``tf plan`` to see what is going to happen. 3. ``tf apply`` to make changes to infrastructure.