mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Add hostname
argument to cloud block
This commit is contained in:
parent
d3e7c5e8a9
commit
5b6eaa4fea
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user