Difference between revisions of "Provider.tf"

From wikieduonline
Jump to navigation Jump to search
Line 32: Line 32:
 
* <code>[[providers.tf]]</code>
 
* <code>[[providers.tf]]</code>
 
* [[Terraform S3 backend]]
 
* [[Terraform S3 backend]]
 +
* <code>[[terraform init]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 22:28, 21 October 2021

Examples

AWS example:

provider "aws" {
  region = "us-west-2"
  profile = "your-profile-name"
}

Google Cloud example:

provider "google" {
 region  = "us-central1"
 project = "your-project-name"
}


Backend

https://www.terraform.io/docs/language/settings/backends/s3.html#example-configuration
terraform {
  backend "s3" {
    bucket = "mybucket"
    key    = "path/to/my/key"
    region = "us-east-1"
  }
}

Related terms

See also

Advertising: