

# AWS Amplify (Amplify Gen 3) and Amplify Hosting compared

This page compares the new AWS Amplify (Amplify Gen 3) with Amplify Hosting. It shows what Amplify adds, what works differently, and how concepts differ. To move an existing app, see [Migrate from Amplify Hosting](migrate-from-amplify-hosting.md).

Git deploys from GitHub and GitLab, deploys without Git, instant rollback, skew protection, pull request previews, custom domains on Amazon Route 53 or another DNS provider, managed certificates, incremental static regeneration (ISR), image optimization, and Amazon CloudWatch metrics and logs work in both products.

## What Amplify adds
<a name="amplify-gen3-vs-amplify-hosting-adds"></a>


| Capability | Amplify Hosting |  AWS Amplify | 
| --- | --- | --- | 
| Managed Postgres database, sign-in, and Data API | No | Add a backend to your app. Each environment keeps its data in its own backend branches. For more information, see [Backends](deploy-backend.md). | 
| Gradual rollouts | No | Set a rollout strategy on the `production` environment or a custom environment with `env edit --rollout`. The `preview` environment allows only `instant`. | 
| Access control with sign-in | No | Restrict an environment with IAM Identity Center or your own OpenID Connect (OIDC) provider. For more information, see [Access control](access-control.md). | 
| Private VPC resources | No | Connect your app to resources in your VPC. For more information, see [Connect your app to private resources](customize-your-app-vpc.md). | 
| Managed firewall | AWS WAF integration that you set up | A managed firewall protects your app by default. You can attach your own AWS WAF web ACL. | 
| On-demand revalidation | No | Available. | 
| Response streaming | No | Available. | 
| Nameserver delegation | No | Delegate nameservers to Amplify with `domain add --dns-type ns-delegation`. | 
| Fork pull request previews | Limited | A maintainer approves each commit with `deployment authorize`. | 
| Import variables from a `.env` file | No | Upload a `.env` file with the `var` commands. | 
| Astro and SvelteKit | Community adapter | Amplify adapter. | 

## What works differently
<a name="amplify-gen3-vs-amplify-hosting-different"></a>


| Task | Amplify Hosting |  AWS Amplify | 
| --- | --- | --- | 
| Define your build |  `amplify.yml`  |  `amplify.jsonc` holds the install, build, and output settings. Build caching is on by default. | 
| Build a monorepo app |  `appRoot` or `AMPLIFY_MONOREPO_APP_ROOT`  | Set the root directory with `create --filter` or `app edit --root-dir`. | 
| Deploy a branch | One deployment target for each branch | An environment tracks branch patterns, which you set with `env edit --git-branch`. | 
| Set redirects, rewrites, and a single-page app fallback | Console rule editor | Add `routes` and `spa_fallback` to `amplify.jsonc`. A rewrite target is a path in your app. A redirect target can be a path or a URL. For more information, see [Redirects and rewrites](redirects.md). | 
| Redirect a hostname | Redirect rule | Use `domain add --redirect-to`. | 
| Map domains | One root domain plus subdomains | One domain for each hostname. Add each hostname, such as `example.com` and `www.example.com`, as its own domain and connect it to an environment. | 
| Set response headers | Console or `customHttp.yml`  | Set headers in your framework’s configuration or middleware. Support differs by framework. For more information, see [Redirects, rewrites, and headers](ssr-supported-features.md#ssr-supported-features-routing). | 
| Match a country | Rule condition | Check the country in your framework’s middleware. For SvelteKit, use the `handle` hook. | 
| Run middleware before the cache | No | Next.js middleware always runs before the cache. Astro middleware runs before the cache when `middlewareMode` is `edge`. Nuxt middleware runs inside your app’s server. For more information, see [Middleware](ssr-supported-features.md#ssr-supported-features-middleware). | 
| Restrict access | A shared branch password | Use access control with sign-in. | 
| Scope variables | App-wide, with branch overrides | Per environment. | 
| Store secrets | An external store, such as AWS Systems Manager Parameter Store |  `var set --secret`. | 
| Framework versions | Next.js 12 to 15 | Next.js 15.5.15 and later (16.2 and later is recommended), Nuxt 3 and 4, Astro 5 and later, and SvelteKit 2 and 3. | 
| Amplify Gen 2 backend | Amplify deploys it | Amplify hosts your app but doesn’t deploy the backend. Deploy the backend from your CI pipeline with `ampx pipeline-deploy`. For more information, see [Deploy with an Amplify Gen 2 backend](build-with-amplifygen3-amplify-gen2-backend.md). | 

## What isn’t available
<a name="amplify-gen3-vs-amplify-hosting-unavailable"></a>


| Capability | What to do instead | 
| --- | --- | 
| Bitbucket and AWS CodeCommit repositories | Deploy from your CI system. | 
| Custom build image and live package updates | Amplify builds on Node.js 24. | 
| Bring your own certificate | With Amplify, you get a certificate that AWS Certificate Manager issues and renews automatically. If you need to use a certificate from another provider, keep the app on Amplify Hosting. | 
| Wildcard subdomains and automatic branch subdomains on a custom domain | An app that serves `*.example.com` can’t move as is. If you know each subdomain ahead of time, add each one with `domain add`. If your app creates subdomains on demand, keep it on Amplify Hosting. Add a hostname for each environment yourself with `domain add`. | 
| Rewrites to an external host | Redirect to the URL, or handle the request in your framework. | 
| Amplify Hosting build variables, such as `AWS_APP_ID` and `AWS_BRANCH`  | An app with a backend gets `AMPLIFY_BACKEND_URL`, `AMPLIFY_BACKEND_PUBLISHABLE_KEY`, and `AMPLIFY_APP_URL`. For other values, set your own variables with `var set`. | 
| No-downtime domain transfer | Expect a short outage during the transfer. For the steps, see [Migrate from Amplify Hosting](migrate-from-amplify-hosting.md). | 
| Amplify Gen 1 backend | Keep an app with a Gen 1 backend on Amplify Hosting. For more information, see the [Amplify Hosting User Guide](https://docs.aws.amazon.com/amplify/hosting/userguide/welcome.html). | 
| Move a Gen 1 or Gen 2 backend to an Amplify backend | Start a new Amplify backend with your tables as SQL migrations. Users can’t be imported with their passwords, so they set new ones through password reset. For more information, see [Backends](deploy-backend.md). | 