Difference between revisions of "Main.tf"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
== [[Terraform providers]] == | == [[Terraform providers]] == | ||
− | [[provider]] "[[random]]" { | + | [[Terraform: provider|provider]] "[[random]]" { |
} | } | ||
Line 22: | Line 22: | ||
profile = "your_profile_name" | profile = "your_profile_name" | ||
} | } | ||
− | |||
== Related commands == | == Related commands == |
Revision as of 19:28, 22 June 2022
Terraform providers
provider "random" { }
provider "mysql" { endpoint = "my-database.example.com:3306" username = "app-user" password = "app-password" }
provider "aws" { version = "~> 3.38.0" region = "us-west-2" profile = "your_profile_name" }
Related commands
terraform init
,terraform plan
,terraform apply
variables.tf
outputs.tf
.terraform.d/
- Examples: AWS EC2 Terraform example
- Terraform S3 backend
See also
- Terraform examples,
main.tf
, Aws instance example: main.tf,terraform apply
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
terraform apply
[-auto-approve
|-refresh-only, -destroy | --help ]
, Terraform examples,Still creating...
, Terraform apply examples with errors
Advertising: