-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
feature: Move force_path_style to use_path_style #3473
base: main
Are you sure you want to change the base?
Conversation
a7fbe0c
to
3738276
Compare
As per the documentation linked below the force_path_style option is now deprecated and should be changed to use_path_style. https://developer.hashicorp.com/terraform/language/backend/s3#force_path_style As per the comments in gruntwork-io#3472 I have made this PR to support both options but commented the code and the documentation to indicate that the old option is now deprecated
3738276
to
2d7a8e6
Compare
Hey @lazzurs , Thanks for cutting this PR! We do not want to have Terragrunt require users to use the latest version of OpenTofu/Terraform when they use it. As a consequence, we'll want to support the legacy configuration, in addition to the modern version. One approach we can take to make this an opt-in breaking change is to include it in Strict Mode. Please adjust this PR to support both approaches for the sake of backwards compatibility. Thanks again! |
Thanks for the comment. As the PR is currently structured it would support both the legacy and current configuration without any issues other than if someone decides to use the new option with an older version of Terraform. Happy to support strict mode, that looks good. I will get this done in the next few days. Thanks for the feedback. It's important to ensure the users have the best experience and I appreciate your focus on that. |
Ah, I misread your comment @lazzurs . Thanks for pointing that out. I don't think we need to block this PR on adding strict mode for the legacy feature. We can look to add that in a different PR if you don't want to add that now. What I am seeing is that linting is failing for this PR, however:
Could that be addressed first? |
I will get that addressed shortly. |
Description
As per the documentation linked below the force_path_style option is now deprecated and should be changed to use_path_style.
https://developer.hashicorp.com/terraform/language/backend/s3#force_path_style
It may be better to add both to allow people to migrate from one to the other but given this is only in one place in the docs I expect there isn't a lot of use and highlighting as a breaking change will make future migration easier and stop being using the now deprecated option.
Fixes #3472 .
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Updated force_path_style
Migration Guide
Change
to