Introduction
Terraform Enterprise v202507-1 upgrades the AWS SDK for Go from v1 to v2. With this upgrade, there is a change to the S3 object storage endpoint setting (TFE_OBJECT_STORAGE_S3_ENDPOINT
) in TFE.
Problem
The archivist component of Terraform Enterprise will fail with logs such as:
S3: GetObject, resolve auth scheme: resolve endpoint: endpoint rule error, Custom endpoint `s3.example.com` was not a valid URI
Solution
Previously, the TFE_OBJECT_STORAGE_S3_ENDPOINT
could be a bare endpoint with no protocol, i.e. s3.example.com
. With v2 of AWS SDK for Go, this endpoint is required to have a protocol. Ensure a protocol is added to the S3 endpoint.
Failing
TFE_OBJECT_STORAGE_S3_ENDPOINT: s3.example.com
Compliant
TFE_OBJECT_STORAGE_S3_ENDPOINT:
https://s3.example.com
Additional Information
This failure only occurs in Terraform Enterprise releases on and after v202507-1.