humanmade / cf-to-tf

CLI tool for generating Terraform configuration and state for existing CloudFormation resources
Other
417 stars 70 forks source link

Parse Error #10

Closed LucasGood closed 5 years ago

LucasGood commented 5 years ago

Running the command against a real-life CloudFormation Template. cf-to-tf --stack - config < /home/Username/bastion.cfn | json2hcl | cf-to-tf clean-hcl | terraform fmt - | tee /home/Username/Bastions.tf.json

and get the error unable to parse JSON: 1:9: illegal char

I shorten the first command to cf-to-tf --stack - config < /home/Username/bastion.cfn

and get the error TypeError: Cannot read property '0' of undefined at getStack.then.result (/usr/local/lib/node_modules/@humanmade/cf-to-tf/index.js:47:54) at <anonymous> at process._tickDomainCallback (internal/process/next_tick.js:229:7)

ntman4real commented 5 years ago

I have the same issue. How did you resolve?

LucasGood commented 5 years ago

Can't reproduce; previous environment is gone. Sorry.