> For the complete documentation index, see [llms.txt](https://docs.authgear.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.authgear.com/deployment/architecture-guides/aws-reference-architecture.md).

# AWS Reference Architecture

<figure><img src="https://2638622528-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAjXpMovvVxeIY33s_K%2Fuploads%2Fgit-blob-65d1f9798fdc4bae06ade4aedfc9d15541a8ecbf%2Fauthgear-infra-aws.png?alt=media" alt=""><figcaption></figcaption></figure>

([Link](https://oursky.notion.site/Authgear-Reference-Architecture-Public-Page-099f15d621784f9299c86a6dcf55bade) to download original FigJam file)

### Cloud Resources Requirements

<table data-full-width="false"><thead><tr><th width="188">Products</th><th width="309">Purposes</th><th>Suggested Specification</th></tr></thead><tbody><tr><td>Amazon Elastic Kubernetes Services</td><td>Pods to run the applications, cache for user sessions</td><td>m5.large (2 vCPUs, 8GiB RAM)<br>x 3 minimum for k8s</td></tr><tr><td>Amazon RDS for PostgreSQL</td><td>Store system settings, user profiles, audit logs</td><td>db.m5.large (2 vCPUs, 8GiB RAM)<br>x 2 for high availability</td></tr><tr><td>Amazon ElastiCache for Redis</td><td>Store user sessions and usage analytics</td><td>Require approximately 30kB per user. Please refer to <a data-mention href="/deployment/helm.md">Deploy with Helm chart</a></td></tr><tr><td>(Optional Components)</td><td><p>Amazon S3:</p><ul><li>Storage of the user profile images</li></ul><p>Managed Elasticsearch:</p><ul><li>To support search in Authgear admin portal</li></ul><p>Networking:</p><ul><li>Amazon Web Application Firewall</li><li>Amazon Application / Elastic Load Balancer</li><li>Amazon Cloudfront (CDN)</li></ul><p>CI/CD</p><ul><li>Container registry</li><li>Secret management</li></ul><p>Logging Monitoring tools</p></td><td>N/A</td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.authgear.com/deployment/architecture-guides/aws-reference-architecture.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
