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

Question: Is it not possible to use only tfstate as input? #129

Open
scooter-dangle opened this issue Aug 22, 2024 · 0 comments
Open

Question: Is it not possible to use only tfstate as input? #129

scooter-dangle opened this issue Aug 22, 2024 · 0 comments

Comments

@scooter-dangle
Copy link

Based on the bullets in the README about not needing anything beyond my machine, I was thinking I could run terravision without connecting to any of our AWS resources. I assumed this was achieved by giving it read access to our tfstate file, but my attempts to run it this way result in terraform complaining Unhandled error: <class 'UnboundLocalError'>, cannot access local variable 'r' where it is not associated with a value, <traceback object at 0x…>

The command I'm running is

poetry run terravision draw --source /PATH/TO/TFSTATEFILE

I also tried just pointing it at the terraform directory rather than the state file, which so far resulted in it asking what S3 bucket it should store backend data in.

Am I fundamentally missing how it works?

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