Root module

Now, in the root module (the one located in your workind directory), file will look up the modules and the output variablef from the modules like this:

File in the root module:

# Module for network; This module will create all the neccessary resources for the entire project,
#such as vpc, subnets, gateways and all neccssary things to enable proper connectivity

module "network" {
  source                         = "./modules/network"
  region            ...
Learn More