This is a simple terraform provider which can decrypt files encrypted with git-crypt.
In any infrastructure, there is a set of secrets that need to be stored somewhere. If you define your infrastructure as a code, that is good to be able to keep secrets in code too. However, they need to be secured properly. One way to achieve that is to encrypt your secrets in VCS, e.g. with git-crypt.
In order to provide terraform with access to encrypted content you can use this provider to decrypt and parse secret files on the fly. It is especially useful in cases when you have no control over terraform execution environment to decrypt files with git-crypt CLI, for example if you use Terraform Enterprise.
gitcrypt terraform provider can parse simple file which contains key: value
pairs like var1: value1
.
You can see ENCRYPTED and DECRYPTED files example.
If you're having trouble using gitcrypt provider, create a Github issue or open a pull request.