Ansible via Google Cloud IAP Tunnel

Ansible is a great tool for managing configuration across a fleet of compute resources, but it struggles with dynamic sets of compute that are constantly being destroyed and spawned since it the user has to maintain a static list of hostnames. ...

September 23, 2022 · 2 min · 214 words

Terraform init-validate-plan-apply Bash function

Tired of typing Terraform init, validate, apply? I’ve written this bash function to speed this up and implement some good practices. ...

July 14, 2022 · 3 min · 601 words

Google Cloud CLI 'gcloud' Variables

I find it useful to frontload my terminals with context about my environment; You wouldn’t want to deploy to the wrong environment now would you? Here I extract information from Google Cloud CLI and print it at the start of every new terminal tab in order to understand exactly where my Google Cloud API requests will go by default. ...

June 21, 2022 · 2 min · 292 words

Use Terraform Graph in MermaidJS

Terraform has a built-in command to generate a Graphviz digraph representing the output of terraform plan, but this output is pretty messy and can’t render in MermaidJS. ...

May 11, 2022 · 2 min · 356 words