[GH-ISSUE #161] Docker image uses older opentofu and generates errors with new modules #93

Closed
opened 2026-05-06 12:37:24 +02:00 by BreizhHardware · 1 comment

Originally created by @djryanj on GitHub (Jan 23, 2026).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/161

The current latest docker image (sha256:65e5fb10e74f1b6209f5a3ebda3c64248286d3e05dac0571a2a9b4b75387635e) uses opentofu (which is mostly fine, but see below for a suggestion) version 1.10.6.

However, modules downloaded require e.g., >=1.11.1. See log:

╷
│ Error: Unsupported OpenTofu Core version
│
│   on /tmp/tmp3slzj00n/modules/rds/modules/db_subnet_group/versions.tf line 2, in terraform:
│    2:   required_version = ">= 1.11.1"
│
│ Module module.rds.module.db_subnet_group (from ./modules/db_subnet_group) does not support OpenTofu
│ version 1.10.6. To proceed, either choose another supported OpenTofu version or update this version
│ constraint. Version constraints are normally set for good reason, so updating the constraint may lead to
│ other errors or unexpected behavior.

This isn't specifically a terravision project problem, because it seems like the latest opentofu package in apk is 1.10.6.

That said, I have 3 suggestions:

  1. Install OpenTofu manually in the container using instructions like https://opentofu.org/docs/intro/install/alpine/#installing-the-apk; e.g., downloading the apk from the latest source to ensure it's the latest.
  2. Have both OpenTofu and Terraform versions of the image. I realize they should be 1:1 compatible, but if you aren't using OpenTofu (or vice versa) then using the other one might cause weird behaviour.
  3. Make sure the image for Terraform also installs things "manually" like with OpenTofu so you have the latest version.

Thanks for the great project, btw!

Originally created by @djryanj on GitHub (Jan 23, 2026). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/161 The current `latest` docker image (sha256:65e5fb10e74f1b6209f5a3ebda3c64248286d3e05dac0571a2a9b4b75387635e) uses opentofu (which is mostly fine, but see below for a suggestion) version `1.10.6`. However, modules downloaded require e.g., `>=1.11.1`. See log: ```bash ╷ │ Error: Unsupported OpenTofu Core version │ │ on /tmp/tmp3slzj00n/modules/rds/modules/db_subnet_group/versions.tf line 2, in terraform: │ 2: required_version = ">= 1.11.1" │ │ Module module.rds.module.db_subnet_group (from ./modules/db_subnet_group) does not support OpenTofu │ version 1.10.6. To proceed, either choose another supported OpenTofu version or update this version │ constraint. Version constraints are normally set for good reason, so updating the constraint may lead to │ other errors or unexpected behavior. ``` This isn't specifically a terravision project problem, because it seems like the latest `opentofu` package in `apk` is `1.10.6`. That said, I have 3 suggestions: 1. Install OpenTofu manually in the container using instructions like https://opentofu.org/docs/intro/install/alpine/#installing-the-apk; e.g., downloading the apk from the latest source to ensure it's the latest. 2. Have both OpenTofu and Terraform versions of the image. I realize they should be 1:1 compatible, but if you aren't using OpenTofu (or vice versa) then using the other one might cause weird behaviour. 3. Make sure the image for Terraform also installs things "manually" like with OpenTofu so you have the latest version. Thanks for the great project, btw!
Author
Owner

@patrickchugh commented on GitHub (Jan 24, 2026):

Thanks for bringing this up. I changed the DockerFile image back to using original Terraform for now. People can always replace it with OpenTofu if they want later.

<!-- gh-comment-id:3794479032 --> @patrickchugh commented on GitHub (Jan 24, 2026): Thanks for bringing this up. I changed the DockerFile image back to using original Terraform for now. People can always replace it with OpenTofu if they want later.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/terravision#93
No description provided.