> ## Documentation Index
> Fetch the complete documentation index at: https://deployz.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reconnect or update the Deployz connector

> Restore or update the connection between Deployz and a customer's AWS account.

The Deployz connector runs in your customer's AWS account. It reports the application's health to Deployz and carries out the actions you start, such as updates, restarts, and removal. Your customer creates its stack during the install. For how the connector works, see [The Deployz connector](https://deployz.dev/docs/how-it-works.md#the-deployz-connector).

Each deployment has one connector stack. Reconnecting or updating it always changes that existing stack. Your customer should never create a second one.

## Connector status

The **Deployz connector** row in the deployment's **Infrastructure** section shows its status and when it last checked in.

| Status | What it means | What to do |
| - | - | - |
| **Online** | The connector is checking in. | Nothing. |
| **Not connected yet** | No connector has connected to this deployment. | Wait for your customer to finish the install. If it's stuck, see [Before the connector connects](#before-the-connector-connects). |
| **Offline** | The connector hasn't checked in for 15 minutes or more. | See [When a connector goes offline](#when-a-connector-goes-offline). |

While the connector is offline, the **Deployments** list shows **Needs attention · Lost contact**, and the detail page shows **Lost contact with this deployment**. The application may still be running. Deployz shows the last confirmed state, but it can't check health or run actions. **Deploy update**, **Rollback**, **Restart**, and configuration changes are unavailable until the connector is back.

## Before the connector connects

If your customer started the install but the connector hasn't connected after 15 minutes, the **Deployments** list shows **Setting up · Slow to connect**. The setup in your customer's AWS account may still be running, or it may have failed before the connector started. The **Install link** card on the detail page shows the **Expected stack name**, so your customer can find the stack in their AWS console.

The **Install link** card appears only while the deployment shows **Waiting for customer** or **Setting up** before the connector has connected. After the install, the dashboard has no **Install link** card.

There are two ways to start a new connection attempt.

### Your customer selects Retry connection

**Who:** your customer, on the install page.

After 15 minutes, the install page shows **Still connecting** and a **Retry connection** button. When your customer selects it, Deployz starts a fresh attempt. The install page then shows either a new link to create the connector, or the steps to update the connector stack that's already in their account. See [Install the application](https://deployz.dev/docs/customers/install.md).

### You issue a new install link

**Who:** you (an owner or admin), in the Deployz dashboard. Members can't issue a new install link.

> [!WARNING]
>
> A new install link keeps the same address, but Deployz replaces the connection code (`EnrollmentCode`) and the connector credential (`RelayCredential`) behind it. A connector stack or Quick Create link that your customer started with the old values stops working. Ask your customer to reopen the link and use the new values.

1. In **Deployments**, open the customer's deployment.
2. In the **Install link** card, select **Issue new install link**.
3. In **Issue a new install link?**, select **Issue new install link** to confirm. The current link stops working, and a setup in progress with the old link fails.
4. Select **Copy install link**, and send the link to your customer.

A deployment's install link is valid for 7 days after the deployment is created. Issuing a new install link makes it valid for 7 more days from that time. The **Install link** card shows the date, for example **This link expires on `<date>`**. After that date, the link can't start an install, and the card says the link expired. Issue a new install link to make it work again. Once the connector has connected, the link keeps working so your customer can follow the install progress.

Deployz also offers **Issue new install link** in the **Retry install** dialog when a failed first install can't be retried because the connector is offline.

Issuing a new link gives the connector a new credential. What your customer does next depends on whether the connector stack already exists in their account:

* **No connector stack yet.** The link page shows the normal install steps.
* **The connector stack exists.** The link page shows **Reconnect the existing connector** and the new values. Your customer updates the existing stack, as described in the next section.

## Your customer reconnects the existing connector

**Who:** your customer, in their AWS console.

The install page shows **Update the connector stack. Do not create a new one.** A second stack with the same name fails to create. Your customer updates the existing stack with the new `EnrollmentCode` and `RelayCredential` from the install page, and keeps every other value as it is. Send them [Update the connector stack](https://deployz.dev/docs/customers/update-connector.md#reconnect-the-connector) for the steps.

When the connector reconnects, its status returns to **Online**, and progress continues on the install page and in your dashboard.

## When a connector goes offline

A connector that was online can go offline because:

* The connector stack was deleted or changed in your customer's AWS account.
* The connector lost its credential.
* Your customer's AWS account can no longer reach Deployz, for example because of a network change.

**Who:** your customer checks their AWS account; you follow up in the Deployz dashboard.

1. Ask your customer to check that the connector stack still exists in their AWS account, and that the account can still reach Deployz over HTTPS.
2. Wait for the connector to check in. When it does, Deployz marks it **Online** without any action from you.

If the connector stays offline, the dashboard can't issue new connector values for an installed deployment, because the **Install link** card isn't available after the install. Updating the connector stack, as described in [Update the connector](#update-the-connector), installs a newer connector template with the existing credential. It doesn't replace a lost credential, and it can't restore a deleted stack. For a removed deployment, **Reconnect AWS** issues a link that creates only the connector stack, so Deployz can delete the retained data. See [If the connector is gone](https://deployz.dev/docs/operate/remove.md#if-the-connector-is-gone).

[Contact Deployz support](https://share.hsforms.com/1dOsn_DJtRhq47DXIaRjeLw5auur) when:

* The connector stack was deleted.
* The connector stays offline after your customer confirms that the stack exists and the account can reach Deployz.

For more checks, see [Fix connector problems](https://deployz.dev/docs/troubleshooting/connector.md).

> [!NOTE]
>
> If a removal is waiting on an offline connector, see [Remove a deployment](https://deployz.dev/docs/operate/remove.md).

## Update the connector

Deployz occasionally publishes a newer connector. Updating it is your customer's decision, because the connector runs in their account.

When an update exists, the deployment detail page shows **Connector update available**. If the deployment needs the update before you can deploy the next update, it shows **Connector update required before the next update** instead. If an action you need isn't supported, the detail page says **This action is not supported by the currently installed Deployz connector.**, and updating the connector adds it.

**Who:** you send the instructions; your customer updates the stack in their AWS console.

1. Copy the template URL from the alert on the detail page, if it shows one.
2. Send your customer the template URL and a link to [Update the connector stack](https://deployz.dev/docs/customers/update-connector.md#update-to-a-newer-connector). Your customer also sees an **Update connector** button with the same steps on their install page, after they sign in with an emailed code.
3. Your customer replaces the stack's template, keeps all existing parameter values (**Use existing value**), especially `RelayCredential`, and submits the update.

The alert's **Open connector stack in AWS** button opens the AWS CloudFormation console in the deployment's Region, so it works only for someone signed in to your customer's AWS account. Send your customer the steps rather than selecting it yourself.

A connector update keeps the existing credential. It isn't a reconnect, so your customer doesn't need new values.

### Follow the update

Deployz reads the connector stack's status from the connector's check-ins. While your customer updates the stack, the detail page shows:

| Alert | What it means | What to do |
| - | - | - |
| **Connector update in progress** | The stack is updating. New operations start after the update completes. The application keeps running. | Wait. |
| **Connector update rolled back** | AWS restored the previous connector version. The application keeps running. | Your customer can try the update again. |
| **Connector update failed** | AWS couldn't update or restore the stack. | Your customer must open the connector stack in AWS and look at its events. See [Fix connector problems](https://deployz.dev/docs/troubleshooting/connector.md#the-connector-needs-an-update). |

While the stack updates, the connector starts no new operations, so a deploy or restart you request waits until the update ends.

Deployz marks the update done only when the connector reports the new version on a stable stack. The deployment's activity then shows **Connector updated**. A rolled-back or failed update shows **Connector update rolled back** or **Connector update failed** instead. A connector stack created from an older template can't report its stack status. Until it's updated, these alerts don't appear for it, and Deployz recognizes the update when the connector reports its new version.

A current connector also requires a permissions boundary on every IAM role in the application stack, and limits its permissions to this deployment's resources. A connector stack created earlier keeps its earlier, wider permissions until your customer updates it. See [Security and AWS access](https://deployz.dev/docs/customers/security.md). After your customer updates, existing deployments keep their roles and keep working. A deployment that was prepared before the boundary but not yet installed can't install with the updated connector. Create a new deployment for that customer instead. See [Fix install failures](https://deployz.dev/docs/troubleshooting/install.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.