AWS VPC setup
We start by setting up the required infrastructure in our AWS account.
- To deploy a cloud asset, we need a VirtualPrivateCloud (VPC) where we will deploy it. Use
at least 2 public subnets in 2 availability zones. Each subnet must contain at least 16 IPs:
Figure 1. AWS VPC Setup - Edit your security group created by default with your VPC (or create a new one):
Figure 2. Edit inbound rules - For the selected security group, change the rules for inbound connections from the default
rules to rules that only allow inbound PostgreSQL® communication:
Figure 3. Change rules for inbound connections Note:You can also restrict access to a selected list of IPs. In this example, 0.0.0.0/0 is used, which allows anyone to connect via port 5432.
In the next chapter, we will see how to set up AWS RDS within this VPC we just created.