dtan4 / terraforming

Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
http://terraforming.dtan4.net/
MIT License
4.3k stars 658 forks source link

TFState broken #340

Closed igmar closed 7 years ago

igmar commented 7 years ago

$ terraforming vpc

$ terraforming --tfstate vpc Could not find command "__tfstate". Installation is done using gem install terraforming This is a recent OSX machine.
mhristof commented 7 years ago

try terraforming vpc --tfstate

igmar commented 7 years ago

Hmm.. That indeed works. Why haven't I thought of that. It's however a bug if you ask me : The order shouldn't matter, and it's not clearly stated that this is a requirement.

It might just qualify as improvement, since it's not really a bug.

mhristof commented 7 years ago

i think this has to do with the way that the cmd line args are generated. So --tfstate is an argument to vpc instead of terraforming

dtan4 commented 7 years ago

The behavior is by design of Thor CLI library (see Global flags? · Issue #219 · erikhuda/thor). I'm sorry but I have no way to handle this anymore...