Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 765 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 765 Bytes

terraform-credentials-env

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.

Installation

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