aws-samples/aws2tf

Error: Resource already managed by Terraform exiting

Closed this issue · 6 comments

got this error and i am not even sure on what kind of resource this is

Instance is cloud9 skipping .....
breaking ...
Found Error: │ Error: Resource already managed by Terraform exiting ....

Are you running with -d ? what does your ./aws2tf.sh ....... command look like ?

I'd expect an exit on that error only when using the debug (-d) flag

committed change with extra output when exiting on this condition - will help confirm my theory

this is what i got now

Instance is cloud9 skipping .....
breaking from ec2 ...
Found Error: │ Error: Resource already managed by Terraform
debug flag is on so exiting ....

and yes i do have -d yes enabled

If you remove the -d yes it will continue.

I'll look to ignore that particular error shortly as I guess you are using -c yes as well

committed fix - so it ignores Resource already managed by Terraform - even with -d yes