From 9f15c7c6af9e4581a8dcf4d43749747fd1f417da Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Fri, 16 Aug 2024 09:25:12 +0200 Subject: [PATCH] upgrade s3 backend configuration, with new aws backend property --- main.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 95f3b00..988a142 100644 --- a/main.tf +++ b/main.tf @@ -9,16 +9,19 @@ terraform { } backend "s3" { - endpoint = "http://s3.localdomain" + endpoints = { + s3 = "http://s3.localdomain" + } key = "postgres.tfstate" bucket = "terraform" region = "FR" skip_credentials_validation = true + skip_requesting_account_id = true skip_region_validation = true skip_metadata_api_check = true - shared_credentials_file = "~/.aws/credentials" + shared_credentials_files = ["~/.aws/credentials"] profile = "minio" - force_path_style = true + use_path_style = true } }