idoavrah / terraform-tui

Terraform textual UI
https://pypi.org/project/tftui/
Apache License 2.0
998 stars 30 forks source link

Terragrunt support #15

Closed Latyn4ik closed 1 year ago

Latyn4ik commented 1 year ago

Are you planning to add Terragrunt support?

idoavrah commented 1 year ago

I'm not a Terragrunt user myself, so I can't say if I'll get to that in the foreseeable future. If we add it to our repertoire later on (at work, that is), I'll definitely consider it.

Sedfik commented 1 year ago

terragrunt is a terraform wrapper which basically just forward commands to terraform. I've tried to replace the terraform command by terragrunt and it works for me ;) The main difference between them is that terragrunt use .hcl files as entry contrary to .tf for terraform

Hope this will help!

ErezWeiss commented 1 year ago

@Latyn4ik

image image

At the moment I change all the terraform commands in the main (3 places) to terragrunt. built with:

  1. edit the version in pyproject.toml
  2. run pip install build
  3. run python -m build
  4. run pip install ./dist/tftui-1.0.0.tar.gz (with your version)

good luck

jonwtech commented 1 year ago

You can also just cd into the .terragrunt-cache/xxx/xxx directory and run tftui from there.

bkrein-vertex commented 1 year ago

Perhaps adding a flag to toggle it to use terragrunt instead of terraform would be an easy permanent fix? tftui -T or something?

jonwtech commented 1 year ago

Submitted a PR for this: https://github.com/idoavrah/terraform-tui/pull/30

idoavrah commented 1 year ago

Released version 0.5 that adds support for terragrunt (simply add/alias the '-e terragrunt' switch).

Thanks @jonwtech :)