Skip to content

Conversation

@DavidS-ovm
Copy link
Contributor

Native terraform apply does not accept -var or -var-file args when applying a preplanned plan to avoid conflicts with the values stored in said plan. As this is the main way we are running it internally, we also make sure not to upset terraform in this case. To do so, this change introduces a applyArgsFromApplyArgs method to strip that stuff out before passing it into RunApply.

Native `terraform apply` does not accept `-var` or `-var-file` args when
applying a preplanned plan to avoid conflicts with the values stored in
said plan. As this is the main way we are running it internally, we also
make sure not to upset terraform in this case. To do so, this change
introduces a `applyArgsFromApplyArgs` method to strip that stuff out
before passing it into `RunApply`.
@DavidS-ovm DavidS-ovm enabled auto-merge November 18, 2024 20:28
@DavidS-ovm DavidS-ovm merged commit 0fdf5fa into main Nov 18, 2024
8 checks passed
@DavidS-ovm DavidS-ovm deleted the unplanned-var-files branch November 18, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants