Skip to content

Environment variables ​

VariableEffect
TFCENSUS_CONFIGConfig file to read instead of the discovered project file, as --config does.
TFCENSUS_<KEY>Sets a config key; the configuration page names the variable of each key. An unknown TFCENSUS_ variable is ignored with a warning.
AWS_PROFILEProfile for the default credentials when no --profile, --org or accounts setting names one.
AWS_CONFIG_FILEAWS shared config file to read profiles from, instead of ~/.aws/config.
AWS_SHARED_CREDENTIALS_FILEAWS shared credentials file, instead of ~/.aws/credentials. Only profile names are read from it.
AWS_ENDPOINT_URLEndpoint for every AWS service, such as an emulator. S3 then uses path-style addressing.
AWS_ENDPOINT_URL_S3Endpoint for S3 only. S3 then uses path-style addressing.
AWS_*The AWS SDK reads its usual variables too, such as AWS_REGION, AWS_ACCESS_KEY_ID and AWS_WEB_IDENTITY_TOKEN_FILE.
HOMEHome directory: ~/.aws/config, the config and cache directories, and ~ in discovery.roots and path arguments.
USERPROFILEHome directory on Windows when HOME is not set.
XDG_CONFIG_HOMEBase of the user config file: $XDG_CONFIG_HOME/tfcensus/config.yaml.
XDG_CACHE_HOMEBase of the cache directory: $XDG_CACHE_HOME/tfcensus.
NO_COLORTurns color off with --color auto when set to anything but an empty string.
CLICOLOR_FORCETurns color on with --color auto, even when output is not a terminal, unless it is 0 or NO_COLOR is set.
FORCE_COLORTurns color on like CLICOLOR_FORCE unless it is 0 or false.
CLICOLORSet to 0, turns color off with --color auto.
TERMSet to dumb, turns color off with --color auto.
COLUMNSWidth in columns that tty output wraps notes and warnings at; default: the terminal's width.
CIAny value turns prompts off, as no terminal does: move apply, rollback and mark-applied then need --yes.
TG_IAM_ASSUME_ROLERead like terragrunt does: when set, the fast path leaves get_aws_account_id to terragrunt render, since terragrunt would assume that role first.
TERRAGRUNT_IAM_ROLEThe older name of TG_IAM_ASSUME_ROLE, read the same way.
PATHWhere terragrunt, terraform and tofu are looked up, in the environment the child process gets.
PATHEXTFile extensions of programs on Windows, for the same lookup.
SSL_CERT_FILEPEM file with more CA certificates for notify's HTTPS requests, such as a proxy's.
GITHUB_REPOSITORYRepository for the github-issues and github-pr-comment notifiers when the config names none.
GITHUB_API_URLGitHub API URL for the GitHub notifiers when the config names none.
GITHUB_EVENT_PATHEvent file that github-pr-comment reads the pull request number from in GitHub Actions.
BITBUCKET_WORKSPACEWorkspace for bitbucket-pr-comment when the config names none.
BITBUCKET_REPO_SLUGRepository for bitbucket-pr-comment when the config names none.
BITBUCKET_PR_IDPull request for bitbucket-pr-comment when the config names none.
GITHUB_TOKENToken for the GitHub notifiers, the default of notify.github_issues.token_env and notify.github_pr_comment.token_env.
SLACK_WEBHOOK_URLWebhook URL for the slack notifier, the default of notify.slack.webhook_env.
BITBUCKET_TOKENToken for bitbucket-pr-comment, the default of notify.bitbucket_pr_comment.token_env.

Child processes ​

A child process, such as terraform, starts with only these variables from tfcensus's environment, plus the ones the command sets for it. A * matches any suffix.

PATH, HOME, USER, LOGNAME, SHELL, TMPDIR, TEMP, TMP, TZ, TERM, LANG, LC_*, XDG_*, HTTP_PROXY, HTTPS_PROXY, NO_PROXY, http_proxy, https_proxy, no_proxy, SSL_CERT_FILE, SSL_CERT_DIR, AWS_*, TF_*, TG_*, TERRAGRUNT_*, TOFU_*, OPENTOFU_*, MISE_*, GIT_*, SSH_AUTH_SOCK, SYSTEMROOT, SystemRoot, COMSPEC, PATHEXT, WINDIR, APPDATA, LOCALAPPDATA, USERPROFILE, PROGRAMDATA, ProgramFiles, ProgramFiles(x86)