env

abuxton/env/tfx

Terraform Module HCL TFX
Install
module "env" {
source = "abuxton/env/tfx"
version = "0.1.4"
}
plain text: /constructs/tfmod-abuxton-env-tfx/install.txt
⭐ Source on GitHub 📦 Registry page
README

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 =

Inputs (14)
NameTypeDescriptionDefault
TFE_RUN_IDstringExposes TF_VAR_TFE_RUN_ID = run-id""
ATLAS_ADDRESSstringExposes TF_VAR_ATLAS_ADDRESS=https://app.terraform.io""
TFC_RUN_IDstringExposes TF_VAR_TFC_RUN_ID=run-id""
ATLAS_CONFIGURATION_VERSION_GITHUB_COMMIT_SHAstringExposes TF_VAR_ATLAS_CONFIGURATION_VERSION_GITHUB_COMMIT_SHA=sha""
ATLAS_RUN_IDstringExposes TF_VAR_ATLAS_RUN_ID=run-id""
ATLAS_WORKSPACE_SLUGstringExposes TF_VAR_ATLAS_WORKSPACE_SLUG=organization/workspace""
TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHAstringExposes TF_VAR_TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA=sha""
ATLAS_CONFIGURATION_NAMEstringExposes TF_VAR_ATLAS_CONFIGURATION_NAME=workspace""
ATLAS_WORKSPACE_NAMEstringExposes TF_VAR_ATLAS_WORKSPACE_NAME=workspace""
TFC_CONFIGURATION_VERSION_GIT_BRANCHstringExposes TF_VAR_TFC_CONFIGURATION_VERSION_GIT_BRANCH=branchname""
TFC_WORKSPACE_NAMEstringExposes TF_VAR_TFC_WORKSPACE_NAME =workspace""
TFC_WORKSPACE_SLUGstringExposes TF_VAR_TFC_WORKSPACE_SLUG = organization/workspace""
ATLAS_CONFIGURATION_SLUGstringExposes TF_VAR_ATLAS_CONFIGURATION_SLUG=organization/workspace""
ATLAS_CONFIGURATION_VERSION_GITHUB_BRANCHstringExposes TF_VAR_ATLAS_CONFIGURATION_VERSION_GITHUB_BRANCH=branchname""
Outputs (3)
tfx-env-map — Exposes the environment variables created during a TF(x) (TFC || TFE) run as a map
tfx-env-json — Exposes the environment variables created during a TF(x) (TFC || TFE) run as json object, to do with
tfx-env-tfe_run_id
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.4
Cloud TFX
★ Stars0
Forks0
Total downloads463
Inputs14
Outputs3
LicenseUnlicense
Namespaceabuxton
Updated