

# Determine which deployment is serving traffic

Each environment has a stable environment URL that always points to the currently active deployment. This URL doesn’t change when you create new deployments, it follows whichever deployment is promoted (either automatically or manually).
+ Production: `https://<app-name>.amplify.app` 
+ Other environments: a URL on `amplify.app` that has a label that Amplify assigns, such as `https://preview-ab12--<app-name>.amplify.app` 

If another app already has your app’s name, Amplify adds a random suffix to the production URL. To find the URL of an environment, read it from the output of `aws amplifygen3 deploy` or `aws amplifygen3 env get`.

When auto-promotion is enabled, the environment URL automatically points to the latest successful deployment. When you disable auto-promotion, you control which deployment serves traffic by promoting it manually.

When the deployment that serves the environment URL changes, the change takes about 5 to 10 seconds to reach all viewers. This applies after a new deployment, a promotion, a rollback, and a stopped rollout. Until then, some requests get the new deployment and others get the earlier one.

## Determine which deployment is serving traffic in the console
<a name="_determine_which_deployment_is_serving_traffic_in_the_console"></a>

1. Sign into the Amplify console at https://us-east-2.console.aws.amazon.com/amplifygen3/home.

1. Choose an app.

1. In the left navigation pane, choose **Deployments**.

1. At the top of the console, you’ll see the latest production deployment.

1. In **All deployments**, you can see your deployments.

## View the active deployment using the CLI
<a name="_view_the_active_deployment_using_the_cli"></a>

The following CLI command shows the deployment that the environment URL currently routes to. Without `--id`, `deployment get` shows the environment’s active deployment, which is the one that receives the most traffic. If no deployment is routed yet, for example before the first deployment succeeds, the command shows the newest deployment and says so.

```bash
aws amplifygen3 deployment get --app my-app --env production
```

The output looks like the following example. `CreatedAt` is in your local time, and `Commit` shows the full commit ID. The `Deployment id` line shows the active deployment:

```text
Deployment
  Deployment id:   k3x9w2q7mz
  Status:          SUCCEEDED
  CreatedAt:       2026-11-16 11:42
  Commit:          <commit-id>
  Deployment URL:  https://k3x9w2q7mz--my-app.amplify.app
```

## Change which deployment serves traffic
<a name="_change_which_deployment_serves_traffic"></a>

To change which deployment serves traffic, see [Promote a deployment](deploy-your-app-promote.md).