Difference between revisions of "Terraform backends"

From wikieduonline
Jump to navigation Jump to search
 
(68 intermediate revisions by 6 users not shown)
Line 1: Line 1:
* [[S3]] https://www.terraform.io/docs/language/settings/backends/s3.html
+
https://www.terraform.io/language/settings/backends
Related: [[Bucket versioning]]
+
* <code>[[backend.tf]]</code>
 +
 
 +
== Backends ==
 +
https://www.terraform.io/language/settings/backends/configuration#available-backends
 +
* [[Terraform S3 backend]] <ref>https://www.terraform.io/language/settings/backends/s3
 +
</ref>: <code>[[bucket]]</code>
 +
* [[Terraform S3 backend: dynamodb_table]]: <code>[[key]]</code>
 +
* <code>[[gcs]]</code>
 +
* [[Terraform local backend|local]]
 +
* <code>[[Terraform backend: remote|remote]]</code>
 +
* [[consul]]
 +
* [[COS]]: [[Tencent Cloud Object Storage (COS)]]
 +
* [[Kubernetes]]
 +
* [[pg]] ([[PostgreSQL]])
 +
* [[azurerm]]
  
 
* [[Remote state backends to manage Terraform state]]
 
* [[Remote state backends to manage Terraform state]]
  
 
+
=== Deprecated ===  
 
+
* [[artifactory]]  
terraform {
+
* [[etcd]]  
  backend "s3" {
+
* [[Manta]]
    [[bucket]] = "your-terraform-states"
+
* [[swift]]
    key    = "terraform.tfstate"
 
    region = "[[us-west-2]]"
 
    [[dynamodb]]_table = "your-terraform-states"
 
    [[profile]] = "your-profile"
 
    [[workspace_key_prefix]] = "your-workspace"
 
  }
 
}
 
 
 
Successfully configured the backend "s3"! Terraform will automatically
 
use this backend unless the backend configuration changes.
 
Error refreshing state: AccessDenied: Access Denied status code: 403, request id: JDK297FD1E5GY3TT, host id: JJJ1ThvIKmNSYOO3h2IZFECn9l8DnsofwXWk4F6a9/nzrqgNNbOzyw9d2PcAXSb4DDYwkr/VNWZ0
 
 
 
 
 
== Errors ==
 
* [[Error: Backend configuration changed]]
 
* [[Error: Failed to get existing workspaces: S3 bucket does not exist.]]
 
 
 
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[terraform workspace]]</code>
 
* <code>[[terraform workspace]]</code>
 +
* [[Terraform providers]]: <code>[[provider.tf]]</code>
 +
* <code>[[terraform state]] [pull | push]</code>
 
* <code>[[AWS_PROFILE]]</code>
 
* <code>[[AWS_PROFILE]]</code>
 +
* [[Terraform S3 backend]]: <code>[[profile]]</code> https://www.terraform.io/docs/language/settings/backends/s3.html#profile
 +
* [[Terraform Associate]]: Handle backend [[authentication methods]]
 +
* <code>[[local]]</code> backend
 +
* [[Workspaces]] and [[locking]]
 +
* <code>[[Terraform has been successfully initialized!]]</code>
 +
* <code>[[terraform init -backend-config]]</code>
 +
* <code>[[.terraform]]</code>
 +
 +
== Errors ==
 +
* <code>[[Error: Backend configuration changed]]</code>
  
 
== See also ==
 
== See also ==
 
* {{Terraform backends}}
 
* {{Terraform backends}}
* {{Terraform}}
+
* {{HCP}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 15:52, 10 July 2024

Advertising: