Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass ephemeral variables to terraform apply #35903

Merged
merged 14 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions internal/command/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,15 @@ Options:
-state-out=path Path to write state to that is different than
"-state". This can be used to preserve the old
state.

-var 'foo=bar' Set a value for one of the input variables in the root
module of the configuration. Use this option more than
once to set more than one variable.

-var-file=filename Load variable values from the given file, in addition
to the default files terraform.tfvars and *.auto.tfvars.
Use this option more than once to include more than one
variables file.
DanielMSchmidt marked this conversation as resolved.
Show resolved Hide resolved

If you don't provide a saved plan file then this command will also accept
all of the plan-customization options accepted by the terraform plan command.
Expand Down
Loading