How to import resources in bulk


I am trying to import my existing EC2 instances using terraform import. i am able to import single instance at a time with terraform import [options] ADDRESS ID . how can i import all the instances in one call ?

You can’t. You need to run the terraform import command for each EC2 instance that you want to import (with the correct resource reference each time)

If you are AzureRM provider users, you can check out GitHub - Azure/aztfy: A tool to bring existing Azure resources under Terraform's management.