Scalr incident

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

Resolved on May 5, 2025.

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.

Started
May 05, 2025, 03:30 PM UTC
Resolved
May 05, 2025, 03:30 PM UTC
Duration
–
Detected by Pingoru
May 05, 2025, 03:30 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.

Your product runs on more than Scalr

Add the vendors you depend on and get one message when any of them reports trouble. Free for 3 vendors, no card.

Add your stack →