Skip to content

factorysh/terraform-basic-ungpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform ungpg

Decrypt gpg file with your current key.

Usage

Encrypt a file with all your team keys. Something like :

echo "my secret" | gpg --encrypt [email protected] [email protected] [email protected] --output secret.gpg

In Terraform, you can use something like:

module "ungpg" {
    source = "github.com/factorysh/terraform-basic-ungpg"
    path = "secret.gpg"
}

Get it:

terraform get

Ans use it:

${module.ungpg.secret}