Git

Using .gitignore to keep terraform secrets secret

This is the third in a series of posts that will walk you through using terraform to deploy and configure virtual machines on vsphere. In this post you will see how to use a .gitignore file to prevent a terraform.tfvar file from getting committed into a git repository. There is nothing vsphere specific in this post, but it is more about showing a pattern for keeping deployment specifics out of terraform code.