AWS - VPC- Create a Web Server and an Amazon RDS Database

This helps you install an Apache web server with PHP, and create a MySQL database. The web server runs on an Amazon EC2 instance using Amazon Linux, and the MySQL database is an Amazon RDS MySQL DB instance. Both the Amazon EC2 instance and the Amazon RDS DB instance run in a VPC based in Amazon Virtual Private Cloud service (Amazon VPC)

you must have a VPC with both public and private subnets, and corresponding security groups. If you don't have these, complete the following tasks in Tutorial: Create an Amazon VPC for Use with an Amazon RDS DB Instance:

    Public-facing web application .Web servers in a public subnet and the database servers in a private subnet.

    Public subnet can send outbound traffic directly to the Internet

   

    Private subnet can access the Internet by using a network address translation (NAT) gateway that resides in the public       

    subnet