Home > database >  AWS: two instances: On one ec2 instance, curl the webservices running using nginx doocker image on a
AWS: two instances: On one ec2 instance, curl the webservices running using nginx doocker image on a

Time:11-07

As the title discussed, how do I set Netwrok ACL on both ec2 instances to allow curl from one instance to another?

CodePudding user response:

For my case, the user data did not work for some reason when I creating the VM2 which would hosting Nginx servers. I manually installed the Nginx and ran it. For NACL: VM 1: Inbound/Outbound Customs TCP 1024-65535 IP of VM 2 Allow

VM 2 Inbound Custom TCP port of Nignx services IP of VM 1 Allow Outbound Custom TCP 1024-65535 IP of VM 1 Allow

I hope this help.

  • Related