Difference between revisions of "Main.tf"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
[[Terraform examples]]:
 
[[Terraform examples]]:
 
* [[AWS instance example: main.tf]]
 
* [[AWS instance example: main.tf]]
 
+
* [[Deploy EKS cluster using Terraform]]
  
 
* [[Terraform resources]]
 
* [[Terraform resources]]
Line 11: Line 11:
 
  }
 
  }
  
  provider "mysql" {
+
  provider "aws" {
  endpoint = "my-database.example.com:3306"
+
  profile = "[[default]]"
  username = "app-user"
 
  password = "app-password"
 
 
  }
 
  }
  
Line 22: Line 20:
 
   [[profile]] = "your_profile_name"
 
   [[profile]] = "your_profile_name"
 
  }
 
  }
 +
 +
provider "mysql" {
 +
  endpoint = "my-database.example.com:3306"
 +
  username = "app-user"
 +
  password = "app-password"
 +
}
 +
 +
== Errors ==
 +
[[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]]
  
 
== Related commands ==
 
== Related commands ==
Line 30: Line 37:
 
* Examples: [[AWS EC2 Terraform example]]
 
* Examples: [[AWS EC2 Terraform example]]
 
* [[Terraform S3 backend]]
 
* [[Terraform S3 backend]]
 +
* [[Best practices for using Terraform]]
  
 
== See also ==  
 
== See also ==  

Latest revision as of 21:34, 11 February 2024

Advertising: