We will set up a new VPC in your AWS account. A VPC, or virtual private cloud, allows us to have a private network that is isolated from all the other users of EC2 and the internet that we can launch instances onto.
It provides a secure foundation that we can use to build a secure network for our cluster, as shown in the following command:
$ VPC_ID=$(aws ec2 create-vpc --cidr-block 10.0.0.0/16 --query "Vpc.VpcId" --output text)
The VpcId will be unique to your account, so I am going to set a shell variable that I can use to refer to it whenever we need. You can do the same with the VpcId from your account, or you might prefer to just type it out each time you need it.
The rest of the steps in this chapter follow this ...