Difference between revisions of "Terraform S3 backend"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
} | } | ||
} | } | ||
− | |||
* <code>[[profile]]</code>: https://www.terraform.io/docs/language/settings/backends/s3.html#profile | * <code>[[profile]]</code>: https://www.terraform.io/docs/language/settings/backends/s3.html#profile | ||
Line 23: | Line 22: | ||
use this backend unless the backend configuration changes. | 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 | Error refreshing state: AccessDenied: Access Denied status code: 403, request id: JDK297FD1E5GY3TT, host id: JJJ1ThvIKmNSYOO3h2IZFECn9l8DnsofwXWk4F6a9/nzrqgNNbOzyw9d2PcAXSb4DDYwkr/VNWZ0 | ||
− | |||
== S3 backend errors == | == S3 backend errors == |
Revision as of 14:14, 29 September 2021
Related: Bucket versioning
Example
terraform { backend "s3" { bucket = "your-terraform-states" 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
S3 backend errors
- Error: Backend configuration changed
- Error: Failed to get existing workspaces: S3 bucket does not exist.:
aws s3 mb
Related terms
See also
Advertising: