Scalr incident

Runs failing with "flag provided but not defined: -var-file"

Minor Resolved View vendor source →

Scalr experienced a minor incident on May 7, 2025, lasting —. The incident has been resolved; the full update timeline is below.

Started
May 07, 2025, 01:21 PM UTC
Resolved
May 05, 2025, 03:30 PM UTC
Duration
Detected by Pingoru
May 07, 2025, 01:21 PM UTC

Update timeline

  1. resolved May 07, 2025, 01:21 PM UTC

    We're currently working on a fix for runs that are failing with: │ Error: Failed to parse command-line flags │ │ flag provided but not defined: -var-file

  2. postmortem May 07, 2025, 01:22 PM UTC

    **RCA** A fix was released to ensure `.tfvars` files are properly loaded during the `init` phase with `for-each` feature, that was introduced in the OpenTofu [1.9.0](https://opentofu.org/blog/opentofu-1-9-0/) version. Technical details: * To fix the issue we added processing of the `.tfvars` on `init`, `validate, `and `fmt` phases for runs with the flag `-var-file.` * But consuming the `.tfvars` file using the `-var` and `-var-file` options was introduced in OpenTofu [1.8.0](https://opentofu.org/docs/v1.8/intro/whats-new/), and exception handling was missed for any versions less than 1.8.0. * Because of this, all runs with `.tfvars` files in the VCS-driven workspaces with OpenTofu < 1.8.0 and all Terraform versions supported by Scalr were affected.