Amazon web services – Terraform: How to pass multiple values as output and map to another module's variables
I'm setting up terraform modules to create my AWS resources, i need to create muliple resouces from same module templates. Created 2 sg with for_each in main.tf, and need to pass them to another module to create 2 ec2 instances…