From 7f633e47f812efd831a5e173dbd03acf3305cd3e Mon Sep 17 00:00:00 2001 From: Chewbaccalakis Date: Sat, 27 Jun 2026 21:33:53 +0000 Subject: [PATCH] changed to s3 backend --- .infisical.json | 5 +++++ backend.tf | 33 +++++++++++++++------------------ 2 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 .infisical.json diff --git a/.infisical.json b/.infisical.json new file mode 100644 index 0000000..3ef6433 --- /dev/null +++ b/.infisical.json @@ -0,0 +1,5 @@ +{ + "workspaceId": "02ba885c-7f22-4290-9b0e-845f65cf7d7c", + "defaultEnvironment": "prod", + "gitBranchToEnvironmentMapping": null +} \ No newline at end of file diff --git a/backend.tf b/backend.tf index 22bb428..fcaa700 100644 --- a/backend.tf +++ b/backend.tf @@ -1,23 +1,20 @@ terraform { # 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. - backend "local" { - 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 "local" { + # path = "./terraform.tfstate" # } + + 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 + } }