Difference between revisions of "Terraform backends"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
* <code>[[aws s3api create-bucket]]</code> and <code>[[aws s3 mb]]</code>
 
* <code>[[aws s3api create-bucket]]</code> and <code>[[aws s3 mb]]</code>
 
* <code>[[provider.tf]]</code>
 
* <code>[[provider.tf]]</code>
 +
* [[Terraform associate]]: Handle backend authentication methods
  
 
== See also ==
 
== See also ==

Revision as of 12:57, 1 February 2022

https://www.terraform.io/language/settings/backends


S3 Example with DynamoDB

terraform {
  backend "s3" {
    bucket = "your-terraform-states"
    key[1]    = "terraform.tfstate"
    region = "us-west-2"
    dynamodb_table = "your-terraform-states"
    profile = "your-profile"
    workspace_key_prefix = "your-workspace"
  }
}

Related terms

See also

  • https://www.terraform.io/docs/language/settings/backends/s3.html#key
  • Advertising: