I want to setup two EC2 instances.
One instance will be a gateway server and the other will be a database server.
The gateway server will communicate with:
1. App running on android or ios via https.
2. Web browsers via https.
3. Remote computer via SSH (maintenance)
4. Database server via VPC.
The database server will communicate with:
1. Remote computer via SSH (maintenance)
2. Gateway server via VPC.
The gateway will run linux ubuntu with apache web server and php. The database server will run mysql. The goal would be to setup an ami for each EC2 instance so they could be launched as needed.