env
abuxton/env/tfx
Terraform Environment Data This module exposes environmental variables in a TF(x) TFE or TFC, so they can be used for tags or outputs. Not all variables are always populated due to the differences between deployments and versions of TF(x). Atlas is a term still in use in TFC and TFE previously the name of Terraform Cloud Service. Usage see ./tests/default for usage example. available from `` HCL module "env" { source = "../.." // version = "0.1.2" ATLAS_ADDRESS = var.ATLAS_ADDRESS ATLAS_CONFIGURATION_NAME = var.ATLAS_CONFIGURATION_NAME ATLAS_CONFIGURATION_SLUG = var.ATLAS_CONFIGURATION_SLUG ATLAS_CONFIGURATION_VERSION_GITHUB_BRANCH = var.ATLAS_CONFIGURATION_VERSION_GITHUB_BRANCH ATLAS_CONFIGURATION_VERSION_GITHUB_COMMIT_SHA = var.ATLAS_CONFIGURATION_VERSION_GITHUB_COMMIT_SHA ATLAS_RUN_ID =
| Name | Type | Description | Default |
|---|---|---|---|
| TFE_RUN_ID | string | Exposes TF_VAR_TFE_RUN_ID = run-id | "" |
| ATLAS_ADDRESS | string | Exposes TF_VAR_ATLAS_ADDRESS=https://app.terraform.io | "" |
| TFC_RUN_ID | string | Exposes TF_VAR_TFC_RUN_ID=run-id | "" |
| ATLAS_CONFIGURATION_VERSION_GITHUB_COMMIT_SHA | string | Exposes TF_VAR_ATLAS_CONFIGURATION_VERSION_GITHUB_COMMIT_SHA=sha | "" |
| ATLAS_RUN_ID | string | Exposes TF_VAR_ATLAS_RUN_ID=run-id | "" |
| ATLAS_WORKSPACE_SLUG | string | Exposes TF_VAR_ATLAS_WORKSPACE_SLUG=organization/workspace | "" |
| TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA | string | Exposes TF_VAR_TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA=sha | "" |
| ATLAS_CONFIGURATION_NAME | string | Exposes TF_VAR_ATLAS_CONFIGURATION_NAME=workspace | "" |
| ATLAS_WORKSPACE_NAME | string | Exposes TF_VAR_ATLAS_WORKSPACE_NAME=workspace | "" |
| TFC_CONFIGURATION_VERSION_GIT_BRANCH | string | Exposes TF_VAR_TFC_CONFIGURATION_VERSION_GIT_BRANCH=branchname | "" |
| TFC_WORKSPACE_NAME | string | Exposes TF_VAR_TFC_WORKSPACE_NAME =workspace | "" |
| TFC_WORKSPACE_SLUG | string | Exposes TF_VAR_TFC_WORKSPACE_SLUG = organization/workspace | "" |
| ATLAS_CONFIGURATION_SLUG | string | Exposes TF_VAR_ATLAS_CONFIGURATION_SLUG=organization/workspace | "" |
| ATLAS_CONFIGURATION_VERSION_GITHUB_BRANCH | string | Exposes TF_VAR_ATLAS_CONFIGURATION_VERSION_GITHUB_BRANCH=branchname | "" |
tfx-env-map — Exposes the environment variables created during a TF(x) (TFC || TFE) run as a maptfx-env-json — Exposes the environment variables created during a TF(x) (TFC || TFE) run as json object, to do withtfx-env-tfe_run_id