backend-config

Invicton-Labs/backend-config/null

Terraform Module HCL NULL

Retrieves the current Terraform init configuration (including backend config and workspace)

Install
module "backend-config" {
source = "Invicton-Labs/backend-config/null"
version = "0.2.1"
}
plain text: /constructs/tfmod-invicton-labs-backend-config-null/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Backend Config Retrieves the current terraform init configuration (including backend config and workspace). What might you use this for? We're not entirely sure. It definitely accesses information that HashiCorp didn't intend for us to have or do anything with, but we've found some use cases: - Use the backend configuration to create a provider that has the same permissions/access as the internal provider Terraform uses for the backend - Using a provider with the backend configuration, combined with data about where the state is stored (e.g. which S3 bucket and object) to load the raw state data for use in the configuration (be warned, this is a MAJOR hack) Current state: - The backend config should work for all backend types and workspace settings - The output_state should work

Inputs (2)
NameTypeDescriptionDefault
working_dirstringThe working directory to use for determining the init configuration. Defaults to required
fetch_remote_stateboolWhether the current (pre-apply) Terraform state of this configuration should be false
Outputs (3)
remote_state — The current (pre-apply) Terraform state of this configuration, as provided by the `terraform_remote_
backend — The backend configuration (`null` if no backend has been configured).
workspace — The currently active workspace (`null` if none configured/selected).
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.1
Cloud NULL
Total downloads1.1M
Inputs2
Outputs3
NamespaceInvicton-Labs
Updated