automation

5 posts

terraform

Store Terraform secrets in YAML files with yamldecode

In May of 2019 Hashicorp released Terraform 0.12. This release completely changed the way in which variable interpolation was performed and whilst some backwards compatibility was kept, there were some breaking changes. Most notably, the way in which functions and interpolations were called with no more "${}" required. Here's the problem statement. I want to use Terraform to create VMs on Digitalocean using the token that doctl stores in ~/.config/doctl/config.yaml. Using that same logic it mad