Skip to content

(tofu/terraform) init missing -var-file #1154

@jpluijmers

Description

@jpluijmers

Describe the Bug

Any variables needed during terraform/tofu init are prompted at runtime even if they are specified and provided in the variables file by atmos.

Expected Behavior

I expect the vars file generated by atmos to be provided to the init command by the -var-file parameter which does run manually without issue.

Steps to Reproduce

  1. Create some component that uses for example variable interpolation in the module.source (https://opentofu.org/docs/language/modules/sources/#support-for-variable-and-local-evaluation)
  2. try terraform plan

Screenshots

No response

Environment

Atmos 1.165.3 on linux/amd64

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions