How can we create a module which can launch more than one resource. Like VM, VPC, firewall for a particular zone ?
Have you tried to do this and failed? It’s fairly straightforward to include many resources (and data sources) in a module, in fact I suspect the vast majority of modules that people create contain more than one resource.
The requirement is, I want to create a bunch a of resources in One Region and similar no of resources in other. I am defining module block in main.tf for both the regions. Then defining modules separately in other file. On executing its throwing error like “This is not expected in in module block”. Can you tell me what i am doing wrong ?
That is not possible without seeing the actual error message, and preferably the code you’ve supplied to Terraform.