-
Notifications
You must be signed in to change notification settings - Fork 57
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
[Feature request] extra args injection to terraform command #27
Comments
@kertzi Thank you for sharing your use-case! I think it's better to add a new attribute in a migration file rather than tfmigrate's configuration file because a var file is typically related to its workspace. For a workaround, you can pass any CLI flags to the terraform command via environment variables named You can also change environment variables per directory with direnv. For how to integrate them with tfmigrate, see my comment here: #3 (comment) |
Thanks for reply, I will check that! |
I'm going to close this because there has been no activity on this recently. Please feel free to reopen this if you have any questions or suggestions. Thanks! |
Hello,
Your tool looks promising but to make it even more flexible I would like to suggest following new feature:
Is it possible to add configuration which allows flags to be passed to terraform plan/apply command.
Use case:
We use
.tfvars
files which holds values for each environment so whenterraform plan
orterraform apply
is executed it will need -var-file parameter which have environment specific values.
For example final apply command looks like:
Is it possible to add configuration parameter to .tfmigrate.hcl or directly tfmigrate command which enables these
extra parameters injected to terraform plan/apply calls?
Suggestion:
The text was updated successfully, but these errors were encountered: