get-state

Invicton-Labs/get-state/null

Terraform Module HCL NULL

Retrieves the current Terraform state

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

Terraform Get State Retrieves the current Terraform state (as it is during the plan step). The output format is intended to match the terraform.tfstate file as closely as possible, with the exception that it uses maps (with keys being fully qualified addresses) instead of lists of resources/datas. You can also set the working_dir input parameter to the root directory of a different Terraform configuration. As long as proper credentials are set for that configuration without needing command-line arguments, it will be able to load the state file for that configuration. This module is known to work with s3 and local backends (for a local backend on Windows, you have to use the -lock=false flag for terraform plan and terraform apply). It should work with all other backends, but it has not been

Inputs (1)
NameTypeDescriptionDefault
working_dirstringThe directory of the root Terraform configuration files for the state that you'd required
Outputs (6)
format_version — The version of the state file format.
resources_and_datas — A map of all resources and data sources in the state, where keys are fully qualified addresses (`{mo
resources — A map of all resources in the state, where keys are fully qualified addresses (`{module_path}.{resou
datas — A map of all data sources in the state, where keys are fully qualified addresses (`{module_path}.{re
outputs — A map of root module outputs, where keys are the output names and values are the output values.
terraform_version — The version of Terraform that was used to create the state file.
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.3
Cloud NULL
Total downloads266.5k
Inputs1
Outputs6
NamespaceInvicton-Labs
Updated