> For the complete documentation index, see [llms.txt](https://ph.benjtupas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ph.benjtupas.com/code/aws.md).

# AWS

## Why AWS?

* 32% market share since 2006
* Facebook, Netflix, Airbnb, LinkedIn, Twitch, BBC, Samsung, MI

## Important Products

* RDS - supports relational databases such as PostgreSQL, MYSQL, Oracle, etc.
* Elastic Beanstalk\
  \- similar to AppEngine of Google Cloud\
  \- takes care of the backend infrastructure
* EC2 (Elastic Compute Cloud)\
  \- Pros: Flexible instances \
  \- Cons: You handle security, load balancing, etc.
* Amplify
  * Pros
    * Firebase competitor.
    * Get started quickly for fast prototyping by shielding the complexities of AWS services
  * Cons
    * Not learning much about AWS
    * Features are restricted
* ECS (Elastic Containers Service)\
  \- For Dockers
* S3 - storage service
* ElasticSearch - text-based search queries
* Lambda - serverless applications
* Aurora
  * RDS plus replicas
  * Cheaper and faster
  * Architecture held by AWS
* Route 53 (Domain Mapping)
* Cloudfront (Cache the files)
* Lightsail (WordPress)

## Tutorials

📽️ Picking the Right Hosting Options: [youtube.com/watch?v=8eGRJCYSUsU](https://www.youtube.com/watch?v=8eGRJCYSUsU)

📽️ EC2 vs ECS vs Lambda: [youtube.com/watch?v=-L6g9J9\_zB8](https://www.youtube.com/watch?v=-L6g9J9_zB8)

📽️ Deploy on EC2: [youtube.com/watch?v=Islmm-LMu38](https://www.youtube.com/watch?v=Islmm-LMu38)

📽️ Deploy a Node Express API to EC2 with IP Access Set-up: [youtube.com/watch?v=T-Pum2TraX4](https://www.youtube.com/watch?v=T-Pum2TraX4)

📽️ Host Your Website AWS EC2: [youtube.com/watch?v=IJiadKeipco](https://www.youtube.com/watch?v=IJiadKeipco)

📽️ Amplify\
&#x20;   \- Deploy NextJS: [youtube.com/watch?v=0B-hMvMggm8](https://www.youtube.com/watch?v=0B-hMvMggm8)\
&#x20;   \- Caching Problem: [youtube.com/watch?v=BjjnDu0KRfE](https://www.youtube.com/watch?v=BjjnDu0KRfE)

📽️ Create a PostgreSQL database on RDS and Connect with PGAdmin:\
&#x20;    \- <https://www.youtube.com/watch?v=Vi44UHVYWEg> \
&#x20;    \- <https://www.youtube.com/watch?v=I\\_fTQTsz2nQ>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ph.benjtupas.com/code/aws.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
