Skip to content
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

Add new s3 backend endpoints option #44

Merged
merged 18 commits into from
Feb 1, 2024
Merged

Conversation

lakkeger
Copy link
Contributor

@lakkeger lakkeger commented Jan 30, 2024

Motivation

With v1.6 TF started to introduce a new format for s3 backend's endpoint option to be uniform with the AWS provider.
All previous options had been marked deprecated and who knows which version will remove it completely.
Docs: https://developer.hashicorp.com/terraform/language/settings/backends/s3#overriding-aws-api-endpoints
GH Issue: hashicorp/terraform#30492
As it's a relatively new option we need to introduce backward compatibility for legacy users.

Changes

  • Add endpoints option
  • Provide backward compatibility
  • Add CI runs on different TF versions and OpenTofu

@lakkeger lakkeger self-assigned this Jan 30, 2024
@lakkeger lakkeger marked this pull request as draft January 30, 2024 13:35
@lakkeger lakkeger linked an issue Jan 30, 2024 that may be closed by this pull request
@lakkeger lakkeger marked this pull request as ready for review January 30, 2024 14:56
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see that tflocal is about to migrate to the new way of configuring the endpoints! 🚀
I have a few questions and comments, we should be good to go when they are resolved.

bin/tflocal Outdated Show resolved Hide resolved
bin/tflocal Outdated Show resolved Hide resolved
bin/tflocal Outdated Show resolved Hide resolved
bin/tflocal Outdated Show resolved Hide resolved
bin/tflocal Outdated Show resolved Hide resolved
bin/tflocal Outdated Show resolved Hide resolved
bin/tflocal Outdated Show resolved Hide resolved
@lakkeger lakkeger force-pushed the tf_s3_backend_endpoints branch 3 times, most recently from 0f3dff1 to 7f74180 Compare January 31, 2024 13:34
@lakkeger lakkeger force-pushed the tf_s3_backend_endpoints branch from 7f74180 to 70b72da Compare January 31, 2024 13:44
@lakkeger lakkeger requested a review from alexrashed January 31, 2024 13:49
@lakkeger lakkeger added enhancement New feature or request should-be-fixed labels Jan 31, 2024
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing all the comments! LGTM! 🚀

Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@lakkeger lakkeger merged commit 8ff6d98 into main Feb 1, 2024
3 checks passed
@lakkeger lakkeger deleted the tf_s3_backend_endpoints branch February 1, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request should-be-fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

terraform backend s3 endpoints deprecated for endpoints.xyz
3 participants