changed to s3 backend
This commit is contained in:
1 parent
8ad9d026b3
commit
7f633e47f8
2 files changed
+20
-18
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"workspaceId": "02ba885c-7f22-4290-9b0e-845f65cf7d7c",
|
||||||
|
"defaultEnvironment": "prod",
|
||||||
|
"gitBranchToEnvironmentMapping": null
|
||||||
|
}
|
||||||
+15
-18
@@ -1,23 +1,20 @@
|
|||||||
terraform {
|
terraform {
|
||||||
# Local backend: stores state in the parent repo so it stays out of this
|
# Local backend: stores state in the parent repo so it stays out of this
|
||||||
# submodule. Switch to the remote backend below once you have an S3 bucket.
|
# submodule. Switch to the remote backend below once you have an S3 bucket.
|
||||||
backend "local" {
|
# backend "local" {
|
||||||
path = "./terraform.tfstate"
|
# path = "./terraform.tfstate"
|
||||||
}
|
|
||||||
|
|
||||||
# Remote backend (S3 or S3-compatible, e.g. MinIO). Comment out the local
|
|
||||||
# backend above and fill in your values to use this instead.
|
|
||||||
#
|
|
||||||
# backend "s3" {
|
|
||||||
# bucket = "my-tofu-state"
|
|
||||||
# key = "site/terraform.tfstate"
|
|
||||||
# region = "us-east-1"
|
|
||||||
#
|
|
||||||
# # For MinIO or other S3-compatible stores:
|
|
||||||
# # endpoint = "https://minio.example.com"
|
|
||||||
# # force_path_style = true
|
|
||||||
# # skip_credentials_validation = true
|
|
||||||
# # skip_metadata_api_check = true
|
|
||||||
# # skip_region_validation = true
|
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
backend "s3" {
|
||||||
|
bucket = "terraform"
|
||||||
|
key = "infra/terraform.tfstate"
|
||||||
|
region = "garage"
|
||||||
|
|
||||||
|
endpoint = "http://s3.oswaldtheotter.lan:30188"
|
||||||
|
use_path_style = true
|
||||||
|
|
||||||
|
skip_credentials_validation = true
|
||||||
|
skip_metadata_api_check = true
|
||||||
|
skip_region_validation = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user