#opentofu (2024-06)
Discuss OpenTofu-related topics
2024-06-03
![Release notes from opentofu avatar](https://a.slack-edge.com/80588/img/services/rss_72.png)
v1.7.2: Update OpenTofu to version 1.7.2 (#1701) Signed-off-by: Ronny Orot [email protected] (<mailto:[email protected]>)
Signed-off-by: Ronny Orot [email protected]
![Release notes from opentofu avatar](https://a.slack-edge.com/80588/img/services/rss_72.png)
v1.7.2 We’re proud to announce that OpenTofu 1.7.2 is now officially out This is a bugfix release and we encourage all OpenTofu 1.7.1 users to upgrade. What’s New?
Fixed - authorization header is not included for HTTP backends (<a class=”issue-link js-issue-link” data-error-text=”Failed to load title” data-id=”2304243089” data-permission-text=”Title is private” data-url=”https://github.com/opentofu/opentofu/issues/1656” data-hovercard-type=”issue”…
We’re proud to announce that OpenTofu 1.7.2 is now officially out This is a bugfix release and we encourage all OpenTofu 1.7.1 users to upgrade. What’s New?
Fixed - authorization header is not i…
OpenTofu Version OpenTofu v1.7.1 on darwin_arm64 OpenTofu Configuration Files terraform { backend “http” { address = “http://localhost:8000” headers = { “authorization” = “Bearer access-token” “Cac…
![venkata.mutyala avatar](https://avatars.slack-edge.com/2022-01-10/2935964026964_e3525ee61170d7dc3198_72.png)
Awesome…. I was waiting for a couple of patches to drop before i went to 1.7.X and now it’s been a couple.
We’re proud to announce that OpenTofu 1.7.2 is now officially out This is a bugfix release and we encourage all OpenTofu 1.7.1 users to upgrade. What’s New?
Fixed - authorization header is not i…
OpenTofu Version OpenTofu v1.7.1 on darwin_arm64 OpenTofu Configuration Files terraform { backend “http” { address = “http://localhost:8000” headers = { “authorization” = “Bearer access-token” “Cac…
2024-06-12
![Hao Wang avatar](https://secure.gravatar.com/avatar/aa01de6ab42f1576bbb56a203c660939.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0013-72.png)
In addition to supporting `.tf` extension files as we do today, OpenTofu will support `.tofu` extension files. When two files have the same name, one with the `.tf` extension and one with the `.tofu` extension, OpenTofu will load only the `.tofu` file and ignore the `.tf` file. Hence, creating a mechanism that overrides specific files. This way the `.tofu` extension files will be used for OpenTofu specific features and syntax and the `.tf` extension files can be used for Terraform compatible features and syntax. Allowing users and module maintainers to use OpenTofu and Terraform in the same project without conflicts.
![James Humphries avatar](https://secure.gravatar.com/avatar/6cc56534c2fcb4bcc65b304c71961240.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0020-72.png)
For curiosity. How do you feel about this @Hao Wang? Do you think its a good move, bad move?
![Hao Wang avatar](https://secure.gravatar.com/avatar/aa01de6ab42f1576bbb56a203c660939.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0013-72.png)
it is a good move, more flexible, and easy migration
![Hao Wang avatar](https://secure.gravatar.com/avatar/aa01de6ab42f1576bbb56a203c660939.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0013-72.png)
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
oh, this is great!
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
@kevcube @Jeremy G (Cloud Posse) I think this solves our problem. https://github.com/cloudposse/terraform-yaml-stack-config/pull/93
what
Solves a deprecation warning for using role_arn
parameter instead of assume_role
configuration block.
Doesn’t use the complicated negation-of-try-contains ternary logic.. but it seems to work whether the value is present or not, being backwards compatible and not erroring if people don’t have assume_role blocks in their configuration. Please test because you guys are more familiar with the usage of this module than I am.
why
I was receiving this deprecation warning and wanted to silence it.
references
https://developer.hashicorp.com/terraform/language/settings/backends/s3#role_arn-1
![kevcube avatar](https://avatars.slack-edge.com/2022-02-16/3117652675890_e629b00375cf1d67c74d_72.jpg)
@Erik Osterman (Cloud Posse) both tofu and terraform seem to have the same support for this parameter though, the only issue is not supporting them before a certain version AFAIK. I tested my PR in Tofu + Terraform and it works in both if using latest version
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Ok, I believe you, it’s @Jeremy G (Cloud Posse) you need to convince
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
![Jeremy G (Cloud Posse) avatar](https://avatars.slack-edge.com/2020-07-04/1229022582372_22757dbc9ef96d371614_72.jpg)
@kevcube The issue is that Cloud Posse is not supporting the BSL licensed version of Terraform. If modules work with it, fine, but our main concern is maintaining support for Terraform 1.5.7. Anything that breaks Terraform 1.5.7 is not going to be allowed for the foreseeable future.
![kevcube avatar](https://avatars.slack-edge.com/2022-02-16/3117652675890_e629b00375cf1d67c74d_72.jpg)
@Jeremy G (Cloud Posse) I see, but I’d argue that versioned modules allow customers on old versions of terraform to retain compatibility. I always lean to the side of staying modern, but I know business is business. Let me know your thoughts on a module update, possibly with a breaking change to resolve this
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
The problem is we don’t have a good way of supporting major versions in the components monorepo. For our child modules, we handle this nicely and even have LTS branches for each major version. But in the monorepo, it’s not as straight forward.
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
(its’ why we have plans to move components to a new org with a repo per component)
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
![Jeremy G (Cloud Posse) avatar](https://avatars.slack-edge.com/2020-07-04/1229022582372_22757dbc9ef96d371614_72.jpg)
@kevcube Normally I’d agree with you about using versioned modules, but this is not the normal case. This particular module is used by nearly all the Cloud Posse components, and we would have to fork the module in order to provide ongoing updates to people who want to continue to use MPL-licensed Terraform 1.5.7 while at the same time supporting Tofu users. It would be a very large effort, with the only benefit being that a deprecation warning is removed.
That said, we are not indifferent to your concern about wanting things to work without generating warnings, and will come up with a way to provide that. It’s just not as easy as this PR. I’m hopeful we’ll have a solution rolled out in a couple of weeks.
![Hao Wang avatar](https://secure.gravatar.com/avatar/aa01de6ab42f1576bbb56a203c660939.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0013-72.png)
2 cents, tofu’s module source supports variables, if terraform can support this feature, it may work around this case
![Hao Wang avatar](https://secure.gravatar.com/avatar/aa01de6ab42f1576bbb56a203c660939.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0013-72.png)
or atoms
can do something before that
![kevcube avatar](https://avatars.slack-edge.com/2022-02-16/3117652675890_e629b00375cf1d67c74d_72.jpg)
Ok @Jeremy G (Cloud Posse) I hear ya, thanks for the explanation, and admittedly a warning isn’t show-stopping.
2024-06-13
![Hao Wang avatar](https://secure.gravatar.com/avatar/aa01de6ab42f1576bbb56a203c660939.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0013-72.png)
This PR brings more dynamic in module versions https://opentofucommunity.slack.com/archives/C05RKE7PS72/p1718301319063179, and it may fix some --target
2-phase apply issues.
2024-06-14
2024-06-15
2024-06-24
![Release notes from opentofu avatar](https://a.slack-edge.com/80588/img/services/rss_72.png)
v1.8.0-alpha1 Do not use this release for production workloads! It’s time for the first prerelease of the 1.8.0 version! This includes a lot of major and minor new features, as well as a ton of community contributions! The highlights are:
Variables and Locals allowed in module sources and backend configurations (with limitations) (#1718) Added…
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)