# Deploy NextJS App to AWS with OpenNext

## Overview

Most teams start by deploying their Next.js apps to **platforms like Vercel or Amplify** because it’s fast but that simplicity comes with limits. When you need deeper control over caching, scaling, or compliance, those platforms quickly become bottlenecks.\
\
The **OpenNext + AWS + IaC** offers the same developer experience, but with full control of infrastructure, cost, and performance.\
\
Using Stakpak’s **Next.js AWS Deployment Rule Book**, you can deploy production ready Next.js workloads on AWS

## Problem

### Business Impact

*

## How Stakpak Helps?

## Step-by-Step Guide

### Prerequisites

1. [installing-stakpak](https://stakpak.gitbook.io/docs/get-started/installing-stakpak "mention")
2. Cloud provider credentials configured

Now we can start

1. Open your terminal.
2. Open Stakpak by typing `stakpak`
3. Then just ask it to "Deploy this next js app using open next in aws"

<figure><img src="https://2684022488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFDKnFMEMmJjoclGx9Hr%2Fuploads%2F6Z2Sjs2L7DpNmVklD5Sh%2Fimage.png?alt=media&#x26;token=bddc954a-5791-4cc9-9a21-1732e3c90f5c" alt=""><figcaption></figcaption></figure>

Here, stakpak made a to do list for what it's going to work on&#x20;

<figure><img src="https://2684022488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFDKnFMEMmJjoclGx9Hr%2Fuploads%2FPpqkaXBjTzTqoVPbDZR2%2Fimage.png?alt=media&#x26;token=af22e28a-b7f3-49d1-951f-141f1b6489c7" alt=""><figcaption></figcaption></figure>

## Extra Resources:

### References

* [installing-stakpak](https://stakpak.gitbook.io/docs/get-started/installing-stakpak "mention")
* [next.js-aws-deployment-options-comparison](https://stakpak.gitbook.io/docs/how-it-works/rule-books/next.js-aws-deployment-options-comparison "mention")
* [Next Js Documentation](https://nextjs.org/docs)
* [Open Next Documentation](https://opennext.js.org/)
* [AWS Pricing Documentation](https://aws.amazon.com/pricing/)
* [AWS Amplify Documentation](https://docs.aws.amazon.com/amplify/)
* [AWS Lambda Documentation](https://docs.aws.amazon.com/lambda/)
