-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change in 1.6.0: s3 backend config rejects hostname for endpoint parameter #33981
Comments
using digitalocean it gets worse. once you add https to the endpoint you are greeted with
|
Same error here i tried it with |
You're referring to |
@
But the problem is with the endpoint parameter itself is deprecated. Like ur Warning message shows, and that u need to use the new way with endpoints.s3, like i tried because i got the same behavior like u. So why i need to open a new issue if i have the same configs, with the same errors like u? |
@jhoelzel how were you able to get pass this issue? |
I have downgraded terraform and am checking out opentofu |
I haven't passed it. i just reverted to Version 1.5.7. |
Hi, I seem to be facing this issue while also using terraform { Is this a known issue also? |
By saying |
Thanks for reporting this, @mogul. According to the AWS documentation, the parameters should be full URLs, including the protocol. However, bare hostnames have worked in the past. Due to internal implementation of the Go The IMDS endpoint will still require a full URL and the S3, IAM, DynamoDB, and STS endpoints will allow a bare hostname with a warning. |
@jhoelzel it looks like your error is when accessing the STS endpoint. Could you please open a new issue and include the configuration that you're using and the debug log for the configuration. The debug log configuration is described at https://developer.hashicorp.com/terraform/internals/debugging |
I'm with a similar issue. I'm using DigitalOcean Spaces to store Terraform state, and the backend only works if I set the endpoint parameter (which is deprecated according to the documentation). The backend is ignoring the new way of endpoints.s3 inside the provider? Could be? |
@davidmir did you figure out the DO situation?! |
The same situation happened fro Scaleway provider |
I got it working replacing
by
then terraform init -reconfigure I'm using scaleway s3 backend |
If you also want to write to the s3 bucket (digitalocean), not just read from it, you also have to add
Works as of tf version 1.6.3. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
Debug Output
N/A
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform init
Additional Context
Previously the
endpoint
variable in the S3 backend config accepted just a hostname. As of the 1.6.0 release, Terraform requires that value to be a URL. This is how we fixed it in our codebase. It seems like a small thing, but this is a breaking change! You should release a 1.6.x point release that relaxes the value constraint forendpoint
to what it was before.References
No response
The text was updated successfully, but these errors were encountered: