opentofu/internal/backend
Rémi Lapeyre af571b2642
Improve environment variable support for the pg backend (#33045)
* Improve environment variable support for the pg backend

This patch does two things:
  - it adds environment variable support to the parameters that did
    not have it (and uses `PG_CONN_STR` instead of `PGDATABASE` which is
    actually more appropriate to match the behavior of other PostgreSQL
    utilities)
  - better documents how to give the connection parameters as environment
    variables for the ones that were already supported based on the
	recommendation of @bsouth00

I will prepare a backport of the documentation part of this once it is
merged.

Closes https://github.com/hashicorp/terraform/issues/33024

* Remove global variable in test of the PG backend
2023-04-21 08:39:19 +02:00
..
init remove deprecated backends (#31711) 2022-08-31 10:17:07 +01:00
local checks: hide check diagnostics during plans that will not wait for approval (#32938) 2023-04-11 10:54:30 +02:00
remote Emit warnings for certain run events in cloud backend (#33020) 2023-04-17 08:53:47 -07:00
remote-state Improve environment variable support for the pg backend (#33045) 2023-04-21 08:39:19 +02:00
backend_test.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
backend.go return early from opPlan when the plan is nil 2023-03-10 09:34:47 -05:00
cli.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
operation_type.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
operationtype_string.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
testing.go Use safe or force workspace delete for cloud backend 2022-11-21 14:35:33 -05:00
unparsed_value_test.go core and backend: remove redundant handling of default variable values 2022-01-10 12:26:54 -08:00
unparsed_value.go core and backend: remove redundant handling of default variable values 2022-01-10 12:26:54 -08:00