A Terraform credentials helper that reads credentials from environment varialbles.
Environment variable format: TF_TOKEN_<hostname>
.
Hostname should have .
characters replaced with _
, as it is difficult
to set environment variables with dots in name.
Example usage:
TF_TOKEN_app_terraform_io=abc123
direnv is recommended when using this plugin.
mkdir -p ~/.terraform.d/plugins/ &&
wget https://raw.githubusercontent.com/favadi/terraform-credentials-env/main/terraform-credentials-env -O ~/.terraform.d/plugins/terraform-credentials-env &&
chmod +x ~/.terraform.d/plugins/terraform-credentials-env