Once we have decided on the compute capacities of the instance, we need to select the network to connect the instance to. Instances are connected to the network by selecting the VPC and an appropriate subnet. We have taken a look at how to create a VPC in Chapter 4, Networking with Virtual Private Cloud. The selection of the VPC and subnet will determine the following:
- The private IP addressing of the instance
- The internet availability and public IP address of the instance
- The availability zone in which the instance will be started
An instance network connection details will be determined upon creation of the instance. A MAC address will be assigned to the primary network interface of the instance and the DHCP service within the VPC subnet will assign an IP address to the instance from its pool of IP addresses.
If we require more control...