Difference between revisions of "Terraform cloud block"
Jump to navigation
Jump to search
↑ https://www.hashicorp.com/blog/terraform-1-1-improves-refactoring-and-the-cloud-cli-experience
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Terraform cloud block]]: <code>cloud</code> (Dec 2021) [[Terraform 1.1]] <ref>https://www.hashicorp.com/blog/terraform-1-1-improves-refactoring-and-the-cloud-cli-experience</ref> | [[Terraform cloud block]]: <code>cloud</code> (Dec 2021) [[Terraform 1.1]] <ref>https://www.hashicorp.com/blog/terraform-1-1-improves-refactoring-and-the-cloud-cli-experience</ref> | ||
+ | * https://www.terraform.io/cli/cloud/settings | ||
terraform { | terraform { | ||
cloud { | cloud { | ||
− | organization = "my-org" | + | [[Terraform organization|organization]] = "my-org" |
− | workspaces { | + | [[Terraform workspace|workspaces]] { |
name = "my-workspace" | name = "my-workspace" | ||
} | } | ||
} | } | ||
} | } | ||
+ | |||
+ | https://developer.hashicorp.com/terraform/cli/cloud/settings | ||
+ | terraform { | ||
+ | cloud { | ||
+ | organization = "my-org" | ||
+ | hostname = "app.terraform.io" # Optional; defaults to app.terraform.io | ||
+ | |||
+ | workspaces { | ||
+ | project = "networking-development" | ||
+ | tags = ["networking", "source:cli"] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
== Related == | == Related == | ||
Line 15: | Line 30: | ||
== See also == | == See also == | ||
+ | * {{Terraform blocks}} | ||
* {{Terraform Cloud}} | * {{Terraform Cloud}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 09:47, 12 February 2024
Terraform cloud block: cloud
(Dec 2021) Terraform 1.1 [1]
terraform { cloud { organization = "my-org" workspaces { name = "my-workspace" } } }
https://developer.hashicorp.com/terraform/cli/cloud/settings
terraform { cloud { organization = "my-org" hostname = "app.terraform.io" # Optional; defaults to app.terraform.io workspaces { project = "networking-development" tags = ["networking", "source:cli"] } } }
Related[edit]
See also[edit]
- Terraform blocks:
terraform, cloud, moved, dynamic
, Terraform import block,required_providers
- Terraform Cloud (TFC), Terraform Cloud Agents (Business version),
terraform login
,execution modes
,terraform_remote_state
, Terraform cloud block, Terraform Cloud Workflows, Terraform organization,TF_CLOUD_ORGANIZATION
, Dynamic Provider Credentials, Bootstrapping trust between a TFC workspace and AWS
Advertising: