Decrypt gpg file with your current key.
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}