terraform-aws-base-networking icon indicating copy to clipboard operation
terraform-aws-base-networking copied to clipboard

Example adding instances from EC2?

Open vsoch opened this issue 2 years ago • 0 comments

Hi! :wave: I'm new to terraform, and I'm looking to create a set of EC2 instances that can see one another. I've done this on Google Cloud, and for that strategy I use a common module to setup networking, and then I have some logic in the startup script to use the Google metadata API to get the ips for other instances. I'm looking for a similar setup for AWS. To be specific, my questions are:

  • Is there an example using this module alongside creating instances that can easily see one another?
  • What are best practices to share ip addresses between the instances?

Thanks for your help!

vsoch avatar May 11 '23 19:05 vsoch