S3 backend on nonAWS implementation (OCI) not working in 1.6.3
Terraform - ### Terraform Version ```shell Terraform v1.6.1 on linux_amd64 + provider registry.terraform.io/hashicorp/null v3.2.1 + provider registry.terraform.io/hashicorp/oci v5.9.0 + provider registry.terraform.io/oracle/oci v5.1.0 ``` ### Terraform Configuration Files Config that worked in v1.5.x: ```tf backend "s3" { bucket = "[BUCKET]" key [your value] region = "eu-frankfurt-1" endpoint = "https://YOUR-ID.compat.objectstorage.eu-frankfurt-1.oraclecloud.com" shared_credentials_file = "PATH/TO/FILE" skip_region_validation = true skip_credentials_validation = true skip_metadata_api_check = true force_pa
## The fix
Working S3-backend config for non-AWS (OCI) object storage on Terraform 1.7.4+: use the `endpoints` block and the skip flags, with the default credentials file and no env vars: `backend "s3" { bucket = "..." key [your value] region = "eu-frankfurt-1" endpoints = { s3 = "https://YOUR-NAMESPACE.compat.objectstorage.eu-frankfurt-1.oraclecloud.com" } skip_credentials_validation = true skip_metadata_api_check = true skip_region_validation = true skip_requesting_account_id = true skip_s3_checksum = true use_path_style = true }`
Thread: gh:hashicorp/terraform#34053