fix: use legacy S3 backend syntax for Terraform compatibility

Replace 'endpoints' block with 'endpoint' string and remove
unsupported arguments for older Terraform versions.
This commit is contained in:
2025-12-07 13:33:55 +00:00
parent 086bc029c0
commit f4d55cc062

View File

@@ -18,20 +18,15 @@ terraform {
# - AWS_SECRET_ACCESS_KEY : Clé secrète Scaleway
# ---------------------------------------------------------------------------
backend "s3" {
bucket = "netlab-terraform-backend"
key = "prod/terraform.tfstate"
region = "fr-par"
endpoints = {
s3 = "https://s3.fr-par.scw.cloud"
}
bucket = "netlab-terraform-backend"
key = "prod/terraform.tfstate"
region = "fr-par"
endpoint = "https://s3.fr-par.scw.cloud"
# Paramètres requis pour Scaleway (non-AWS S3)
skip_credentials_validation = true
skip_region_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
skip_s3_checksum = true
}
required_providers {