I'm working on drawing an architecture diagram for a full-stack app on AWS. I'm using a three-tier architecture:
- the first tier will contain my frontend app on an EC2 instance,
- the second tier will host the backend on another EC2 instance,
- the last tier will contain my database.
However, since I'm not a developer and I'm a beginner with AWS, I'm confused about whether I need an API Gateway. The app prototype I want to use is a full-stack app that works fine locally. Will it be possible to work with this architecture without an API Gateway?
Below is a list of services I'll be using: Tier 1 will have an Application Load Balancer directing traffic to the EC2 instance containing the frontend. The frontend will be connected to another load balancer that sends traffic to the backend instances, and the backend will connect to DocumentDB.
Other services I hope to add include Route 53, CloudFront (CDN), and WAF