1

Few questions:

  1. Are us-east-1a, us-east-1b, and us-east-1d considered one or three availability zone?

  2. Say I have two instances within us-east-1a, one has a mongodb server, the other has a nodejs app. Do I need to add permissions for port 27017 (mongodb) to the security group for the app server to connect to the mongo server?

  3. Same question as above, but say one server is in us-east-1a and the other is in us-east-1b. Do I need to modify the security group?

  4. Would the VPC or Subnet ID have any effects on communication between instances?

1 Answer 1

4

Are us-east-1a, us-east-1b, and us-east-1d considered one or three availability zone?

Three AZs within one region.

Say I have two instances within us-east-1a, one has a mongodb server, the other has a nodejs app. Do I need to add permissions for port 27017 (mongodb) to the security group for the app server to connect to the mongo server?

Yes. All traffic must be permitted by security group policy.

Same question as above, but say one server is in us-east-1a and the other is in us-east-1b. Do I need to modify the security group?

Security groups are not concerned with availability zones, only IP addresses and/or security group IDs.

Would the VPC or Subnet ID have any effects on communication between instances?

This is a very broad question, and depends greatly on how you have your security groups and network ACLs configured. The easiest way to sort this out is just to mock up your design using an actual VPC and actual instances. It shouldn't cost you more than a dollar or so to do this using micro instances.

4
  • much thanks for clearing it up! is it possible to create a security group that opens all ports to all instances with that security group?
    – YarGnawh
    Aug 6, 2014 at 21:24
  • Yes, certainly.
    – EEAA
    Aug 6, 2014 at 21:25
  • i must be missing something. when creating a security group i select, type: "All TCP", protocol: "TCP", port range: "0 - 65535", but for the source, i choose the "Custom IP", but i can't reference the security group i'm currently creating, cause it doesn't exist yet.
    – YarGnawh
    Aug 6, 2014 at 21:27
  • 1
    Create the group first, so you can get the ID, and then go back and add a rule using that ID.
    – EEAA
    Aug 6, 2014 at 21:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .