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

Fails if only tofu is installed #57

Open
brizzbuzz opened this issue Jun 20, 2024 · 1 comment
Open

Fails if only tofu is installed #57

brizzbuzz opened this issue Jun 20, 2024 · 1 comment

Comments

@brizzbuzz
Copy link

Hey, looks like a super neat tool. Hoping this will be an easy fix, but it looks like if a user is using OpenTofu instead of terraform, and doesn't have terraform installed at all, then the diagram fails to render

Diagram renderer running on localhost:3000
Error while running 'terraform show -json':
Error: Command failed: terraform show -json "/path/to/my/plan/plan.out"
/bin/sh: terraform: command not found
@brizzbuzz
Copy link
Author

tried two things additionally that didn't really work

Tried to alias terraform to tofu, failed for an unclear reason (maybe due to spawning a shell that ignores aliases?)

tried to install terraform, fails b/c tofu and terraform have diverged version wise

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

No branches or pull requests

1 participant