From 4ee061ca453f6fa0a278d31bb05df1df2c530184 Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Wed, 26 Jun 2024 15:09:24 -0500 Subject: [PATCH 1/2] Clarify use of backend-config file It is not a "full override" as one might expect. It works only within the context of an existing partial configuration. --- .../docs/language/settings/backends/configuration.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/docs/language/settings/backends/configuration.mdx b/website/docs/language/settings/backends/configuration.mdx index 00f08a72465a..7333bf07954a 100644 --- a/website/docs/language/settings/backends/configuration.mdx +++ b/website/docs/language/settings/backends/configuration.mdx @@ -156,6 +156,17 @@ naming pattern. Terraform will not prevent you from using other names but follow this convention will help your editor understand the content and likely provide better editing experience as a result. +- Using a backend configuration file or CLI key-value pairs overrides the contents, +but not the type of `backend`. (e.g. Use a Partial Configuration in the primary config.) + +```hcl +terraform { + backaned { + # values provided by backend-config file + } +} +``` + ### Command-line key/value pairs The same settings can alternatively be specified on the command line as From e0481eaf928e3c3867f474214681a52a67bac168 Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Wed, 26 Jun 2024 15:22:14 -0500 Subject: [PATCH 2/2] Update website/docs/language/settings/backends/configuration.mdx --- website/docs/language/settings/backends/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/language/settings/backends/configuration.mdx b/website/docs/language/settings/backends/configuration.mdx index 7333bf07954a..e976fa6b9253 100644 --- a/website/docs/language/settings/backends/configuration.mdx +++ b/website/docs/language/settings/backends/configuration.mdx @@ -161,7 +161,7 @@ but not the type of `backend`. (e.g. Use a Partial Configuration in the primary ```hcl terraform { - backaned { + backend { # values provided by backend-config file } }