get-state
Invicton-Labs/get-state/null
Retrieves the current Terraform state
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
| Name | Type | Description | Default |
|---|---|---|---|
| working_dir | string | The directory of the root Terraform configuration files for the state that you'd | required |
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 (`{moresources — A map of all resources in the state, where keys are fully qualified addresses (`{module_path}.{resoudatas — A map of all data sources in the state, where keys are fully qualified addresses (`{module_path}.{reoutputs — 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.