From 5dd9b6b01c3a53501e64b38674041b782a0683d0 Mon Sep 17 00:00:00 2001 From: Matthew Baggett <matthew@baggett.me> Date: Thu, 16 Jan 2025 09:45:44 +0100 Subject: [PATCH] Re-enable bucket --- terraform.tf | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/terraform.tf b/terraform.tf index 7a5888f..371732e 100644 --- a/terraform.tf +++ b/terraform.tf @@ -28,19 +28,16 @@ terraform { } } - # backend "s3" { - # bucket = "terraform" - # key = "ti-iac.tfstate" - # profile = "techinc-tf" - # shared_credentials_files = ["~/.aws/credentials"] - # endpoints = { - # s3 = "http://california.ti:9000" - # } - # region = "main" # Region validation will be skipped - # skip_credentials_validation = true # Skip AWS related checks and validations - # skip_requesting_account_id = true - # skip_metadata_api_check = true - # skip_region_validation = true - # use_path_style = true # Enable path-style S3 URLs (https://<HOST>/<BUCKET> https://developer.hashicorp.com/terraform/language/settings/backends/s3#use_path_style - # } + backend "s3" { + bucket = "techinc-iac" + key = "terraform.tfstate" + profile = "techinc-iac" + shared_credentials_files = ["~/.aws/credentials"] + region = "" # Region validation will be skipped + skip_credentials_validation = true # Skip AWS related checks and validations + skip_requesting_account_id = true + skip_metadata_api_check = true + skip_region_validation = true + use_path_style = false + } }