Skip to content

Commit

Permalink
Merge pull request #30774 from hashicorp/janehojy-patch-1
Browse files Browse the repository at this point in the history
Add `hostname` argument to cloud block
  • Loading branch information
janehojy committed Apr 1, 2022
2 parents 0bd5923 + 4de27fc commit 8d490aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/docs/language/settings/terraform-cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -28,6 +29,8 @@ terraform {
}
```

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.

Refer to [Using Terraform Cloud](/cli/cloud) in the Terraform CLI docs for more information.

0 comments on commit 8d490aa

Please sign in to comment.