Open richard-jfc opened 1 year ago
I can reproduce this on 1.7.10
with terraform import shell_script.my_resource '{"some":"data"}'
.
Moreover, I cannot find any documentation on terraform import
for the shell provider, is it maybe not implemented yet?
Confirm this issue on 1.7.1
and 1.7.10
I'm attempting to
terraform import
a pre-existing resource with this provider, however it throws an exception:It seems that read is called without any lifecycle_commands when run via
terraform import
.Maybe the solution would be to accept a script path in the
terraform import
command, something like this:I'm currently experimenting with the workaround of not running
terraform import
but instead having the create script check if the resources already exist.