Difference between revisions of "Terraform block"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
{{required_version}}
 
{{required_version}}
 +
 +
== Errors ==
 +
* {{duplicate required_providers}}
 +
* <code>[[Error: Duplicate required providers configuration]]</code>
 +
 +
 +
│ Error: Duplicate required providers configuration
 +
 +
│  on terraform.tf line 13, in terraform:
 +
│  13:  required_providers {
 +
 +
│ A module may have only one required providers configuration. The required providers
 +
│ were previously configured at cloudflare.tf:2,3-21.
  
 
== Related ==
 
== Related ==

Revision as of 08:37, 20 February 2024


terraform {
  required_providers {
    aws = "~> 1.2.0"
  }
}


terraform {
 required_version = "~> 1.0.0"
 required_providers {
   aws = {
     source  = "hashicorp/aws"
     version = "~> 3.0"
   }
   random = {
     source  = "hashicorp/random"
     version = "3.1.0"
   }
 }
}

Errors


│ Error: Duplicate required providers configuration │ │ on terraform.tf line 13, in terraform: │ 13: required_providers { │ │ A module may have only one required providers configuration. The required providers │ were previously configured at cloudflare.tf:2,3-21.

Related

See also

Advertising: