Difference between revisions of "Provider.tf"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
 
  }
 
  }
  
 +
 +
[[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 ==
 
== Related terms ==

Revision as of 22:27, 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: