From 5b6eaa4feaaaf15f5ab5832ce5babb79dc822460 Mon Sep 17 00:00:00 2001 From: Jane Date: Thu, 31 Mar 2022 09:50:37 +0800 Subject: [PATCH 1/2] Add `hostname` argument to cloud block --- website/docs/language/settings/terraform-cloud.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/docs/language/settings/terraform-cloud.mdx b/website/docs/language/settings/terraform-cloud.mdx index e764547725..0f96e5a946 100644 --- a/website/docs/language/settings/terraform-cloud.mdx +++ b/website/docs/language/settings/terraform-cloud.mdx @@ -20,6 +20,7 @@ You can configure the Terraform Cloud CLI integration by adding a nested `cloud` terraform { cloud { organization = "example_corp" + hostname = "app.terraform.io" # Optional; defaults to app.terraform.io workspaces { tags = ["app"] @@ -28,6 +29,8 @@ terraform { } ``` +Without specifying the `hostname`, it defaults to app.terraform.io for Terraform Cloud. For Terraform Enterprise installations, include the `hostname` configuration argument. + You cannot use the CLI integration and a [state backend](/language/settings/backends) in the same configuration; they are mutually exclusive. A configuration can only provide one `cloud` block and the `cloud` block cannot refer to named values like input variables, locals, or data source attributes. Refer to [Using Terraform Cloud](/cli/cloud) in the Terraform CLI docs for more information. From 4de27fc52be7f9885dc931eb44d783a9a00def80 Mon Sep 17 00:00:00 2001 From: Jane Date: Fri, 1 Apr 2022 14:22:14 +0800 Subject: [PATCH 2/2] Update website/docs/language/settings/terraform-cloud.mdx Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com> --- website/docs/language/settings/terraform-cloud.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/language/settings/terraform-cloud.mdx b/website/docs/language/settings/terraform-cloud.mdx index 0f96e5a946..49a35fda2e 100644 --- a/website/docs/language/settings/terraform-cloud.mdx +++ b/website/docs/language/settings/terraform-cloud.mdx @@ -29,7 +29,7 @@ terraform { } ``` -Without specifying the `hostname`, it defaults to app.terraform.io for Terraform Cloud. For Terraform Enterprise installations, include the `hostname` configuration argument. +If you do not specify the `hostname`, it defaults to `app.terraform.io` for Terraform Cloud. For Terraform Enterprise installations, include the `hostname` configuration argument. You cannot use the CLI integration and a [state backend](/language/settings/backends) in the same configuration; they are mutually exclusive. A configuration can only provide one `cloud` block and the `cloud` block cannot refer to named values like input variables, locals, or data source attributes.