We want to improve the performance of importing multiple resources.
For the same we tried invoking multiple terraform imports from golang routines. Sometimes it imports only 1 resource and sometimes it doesnt import anything. The probable reason for the same is the race condition for writing the import results to “terraform.tfstate” file.
We want to know if terraform can run multiple terraform imports to different .tfstate files and merge it to single file as final output.