Difference between revisions of "Terraform block"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
{{tf block simple}}
 
{{tf block simple}}
  
 +
{{required_version}}
  
 
+
== Related ==
 
 
 
* <code>[[required_providers]]</code>
 
* <code>[[required_providers]]</code>
 
* [[Terraform provider versioning]]
 
* [[Terraform provider versioning]]

Revision as of 08:35, 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"
   }
 }
}

Related

See also

Advertising: