Difference between revisions of "Main.tf"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
[[Terraform examples]]:
 
[[Terraform examples]]:
* [[Aws instance example: main.tf]]
+
* [[AWS instance example: main.tf]]
 
+
* [[Deploy EKS cluster using Terraform]]
  
 
* [[Terraform resources]]
 
* [[Terraform resources]]
  
 
== [[Terraform providers]] ==
 
== [[Terraform providers]] ==
  [[provider]] "[[random]]" {
+
  [[Terraform: provider|provider]] "[[random]]" {
 +
}
 +
 
 +
provider "aws" {
 +
  profile = "[[default]]"
 +
}
 +
 
 +
[[provider "aws"]] {
 +
  version = "~> 3.38.0"
 +
  region = "us-west-2"
 +
  [[profile]] = "your_profile_name"
 
  }
 
  }
  
Line 17: Line 27:
 
  }
 
  }
  
  provider "aws" {
+
== Errors ==
  version = "~> 3.38.0"
+
  [[error: error validating]] "[[main.tf]]": error validating data: invalid object to validate; if you choose to ignore these errors, turn validation off with [[--validate=false]]
  region = "us-west-2"
 
  profile = "your_profile_name"
 
}
 
 
 
  
 
== Related commands ==
 
== Related commands ==
Line 30: Line 36:
 
* <code>[[.terraform.d/]]</code>
 
* <code>[[.terraform.d/]]</code>
 
* Examples: [[AWS EC2 Terraform example]]
 
* Examples: [[AWS EC2 Terraform example]]
 +
* [[Terraform S3 backend]]
 +
* [[Best practices for using Terraform]]
  
 
== See also ==  
 
== See also ==  
* {{tf files}}
 
 
* {{main.tf}}
 
* {{main.tf}}
 
* {{tf files}}
 
* {{tf files}}
* {{terraform}}
+
* {{terraform apply}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 21:34, 11 February 2024

Advertising: