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)
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)