backend-config
Invicton-Labs/backend-config/null
Retrieves the current Terraform init configuration (including backend config and workspace)
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
| Name | Type | Description | Default |
|---|---|---|---|
| working_dir | string | The working directory to use for determining the init configuration. Defaults to | required |
| fetch_remote_state | bool | Whether the current (pre-apply) Terraform state of this configuration should be | false |
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).