Difference between revisions of "Terraform block"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to Terraform blocks)
Tag: New redirect
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
#redirect [[Terraform blocks]]
+
 
 +
 
 +
{{tf block simple}}
 +
 
 +
{{required_version}}
 +
 
 +
== Errors ==
 +
* {{duplicate required_providers}}
 +
 
 +
== Related ==
 +
* <code>[[required_providers]]</code>
 +
* [[Terraform provider versioning]]
 +
 
 +
== See also ==
 +
* {{tf blocks}}
 +
* {{Terraform blocks}}
 +
 
 +
[[Category:Terraform]]

Latest revision as of 08:38, 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[edit]

Related[edit]

See also[edit]

Advertising: