Difference between revisions of "Terraform.tf"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
* [[Error: Failed to read organization]] | * [[Error: Failed to read organization]] | ||
− | │ Error: Invalid or missing required argument | + | │ [[Error: Invalid or missing required argument]] |
│ | │ | ||
│ on terraform.tf line 6, in terraform: | │ on terraform.tf line 6, in terraform: | ||
Line 12: | Line 12: | ||
│ [[TF_CLOUD_ORGANIZATION]]. | │ [[TF_CLOUD_ORGANIZATION]]. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | # Copyright (c) HashiCorp, Inc. | ||
+ | # SPDX-License-Identifier: MPL-2.0 | ||
+ | |||
+ | terraform { | ||
+ | |||
cloud { | cloud { | ||
workspaces { | workspaces { | ||
Line 23: | Line 23: | ||
} | } | ||
} | } | ||
− | + | ||
required_providers { | required_providers { | ||
aws = { | aws = { | ||
Line 29: | Line 29: | ||
version = "~> 4.47.0" | version = "~> 4.47.0" | ||
} | } | ||
− | + | ||
random = { | random = { | ||
− | source = "hashicorp/random" | + | source = "[[hashicorp/random]]" |
version = "~> 3.4.3" | version = "~> 3.4.3" | ||
} | } | ||
− | + | ||
tls = { | tls = { | ||
− | source = "hashicorp/tls" | + | source = "[[hashicorp/tls]]" |
version = "~> 4.0.4" | version = "~> 4.0.4" | ||
} | } | ||
− | + | ||
− | cloudinit = { | + | [[cloudinit]] = { |
− | source = "hashicorp/cloudinit" | + | source = "[[hashicorp/cloudinit]]" |
version = "~> 2.2.0" | version = "~> 2.2.0" | ||
} | } | ||
Line 47: | Line 47: | ||
required_version = "~> 1.3" | required_version = "~> 1.3" | ||
− | } | + | } |
− | |||
+ | == Errors == | ||
+ | * <code>[[Error: Duplicate required providers configuration]]</code> | ||
− | + | == Related == | |
+ | * [[Terraform block]] | ||
+ | * [[providers.tf]] | ||
+ | == See also == | ||
+ | * {{terraform.tf}} | ||
+ | * {{Terraform providers}} | ||
− | + | [[Category:Terraform]] |
Latest revision as of 08:46, 20 February 2024
│ Error: Invalid or missing required argument │ │ on terraform.tf line 6, in terraform: │ 6: cloud { │ │ "organization" must be set in the cloud configuration or as an environment variable: │ TF_CLOUD_ORGANIZATION.
# Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: MPL-2.0 terraform { cloud { workspaces { name = "learn-terraform-eks" } } required_providers { aws = { source = "hashicorp/aws" version = "~> 4.47.0" } random = { source = "hashicorp/random" version = "~> 3.4.3" } tls = { source = "hashicorp/tls" version = "~> 4.0.4" } cloudinit = { source = "hashicorp/cloudinit" version = "~> 2.2.0" } }
required_version = "~> 1.3" }
Errors[edit]
Related[edit]
See also[edit]
Advertising: