> ## 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.

# Update the connector stack

> Reconnect the Deployz connector with new values, or update it to a newer template, without creating a second stack.

The Deployz connector stack is the CloudFormation stack you created during the install. Its name starts with `deployz-bootstrap-`. Each deployment has one connector stack, so you always update the existing stack. Don't create a second one: a new stack with the same name fails to create, and a second connector stack for the same deployment isn't supported.

You update the stack for one of two reasons:

| Why | How you find out | What changes |
| - | - | - |
| [Reconnect the connector](#reconnect-the-connector) | The install page shows **Reconnect the existing connector**. | The connection values: `EnrollmentCode`, and usually `RelayCredential`. |
| [Update to a newer connector](#update-to-a-newer-connector) | Your deployment page shows **Update available** or **Update required**, or your software provider asks you to update. | Only the template. Every parameter keeps its existing value. |

## Reconnect the connector

**Who:** you, on the install page and then in your AWS console.

The install page shows **Reconnect the existing connector** when a connector stack from an earlier attempt is still in your account and the deployment needs a new connection. This happens after you select **Retry connection**, or after your software provider sends you a new install link. The page shows **Update the connector stack. Do not create a new one.**, the stack name, and the values to enter.

> [!WARNING]
>
> Use the values on the page you have open now. If your software provider sends another new install link, the values change, and an update with the old values doesn't connect.

**1. Sign in to the right AWS account**

In the same browser, sign in to the AWS account that holds the connector stack, with an identity that can update CloudFormation stacks and IAM roles.

**2. Open the connector stack**

Select **Open connector stack in AWS**. The CloudFormation console opens in a new tab, in the deployment's Region, with the stack list filtered to the connector stack. Select the stack named on the install page, then select **Update**.

**3. Replace the template**

Select **Replace existing template**. If the install page shows a **Template URL**, choose the Amazon S3 URL option and enter it. Otherwise, keep the current template.

**4. Enter the new values**

Enter the **EnrollmentCode** from the install page. If the page shows a **RelayCredential**, enter it too. Keep every other parameter as it is, including `ControlPlaneUrl`, which the page shows as unchanged.

**5. Submit the update**

Acknowledge that AWS CloudFormation might create IAM resources, then submit the update.

**6. Return to the install page**

Go back to the install page tab. When the connector reconnects, the progress continues there.

## Update to a newer connector

**Who:** you, on your deployment page and in your AWS console.

Deployz occasionally publishes a newer connector. Updating is your decision, because the connector runs in your account. A newer connector can add actions that your software provider needs, and gives the connector the current permissions. See [Security and AWS access](https://deployz.dev/docs/customers/security.md).

This update keeps the connector's existing credential, so you don't need new values. Your application keeps running. The connector can be offline for a few minutes during the update.

### Check the connector status

Open your install link and sign in with the emailed code. The **Deployz connector** card shows the connector's **Version** and its **Updates** status:

| Updates status | What it means | What to do |
| - | - | - |
| **Up to date** | The connector is the current version. | Nothing. |
| **Update available** | A newer connector exists. | Update when it suits you. |
| **Update required** | Your software provider can't verify releases until you update. | Update the connector. |
| **Updating** | AWS is updating the connector stack. | Wait. The page shows the result. |
| **Update rolled back** | AWS restored the previous connector version. The application keeps running. | Try the update again. If it rolls back again, check the stack's **Events** tab for the reason. |
| **Update failed** | The connector stack is in a failed state in AWS. | Open the stack in AWS and check its **Events** tab. Contact your software provider if you can't resolve it. |

A connector stack created from an older template can't report its stack status to Deployz. Until you update it, the page can't show **Updating**, **Update rolled back**, or **Update failed**. It shows **Update available** or **Update required** instead.

### Update the stack

Select **Update connector** on the card. The **Update the Deployz connector** dialog shows the same steps and the template URL.

**1. Open the connector stack**

Select **Open the stack in AWS**. Sign in to the AWS account that holds the connector stack. In the CloudFormation console, in the application's Region, select the connector stack, then select **Update**.

**2. Replace the template**

Select **Replace existing template**. Choose the Amazon S3 URL option and enter the **Template URL** from the dialog.

**3. Keep every parameter value**

For each parameter, keep the existing value (**Use existing value**). Don't change `RelayCredential` or `EnrollmentCode`: a changed credential disconnects the connector.

**4. Review the changes**

Before you submit, review the change set. If a resource shows **Replacement: True**, or a secret is replaced, stop and contact your software provider.

**5. Submit the update**

Acknowledge that AWS CloudFormation might create IAM resources, then submit the update.

To update from a terminal instead, select **Use the AWS CLI instead** in the dialog. It shows an `aws cloudformation update-stack` command with your Region, stack name, and template URL filled in, and every parameter set to its previous value.

Deployz marks the update done only when the connector reports the new version and the stack is stable. The page then shows **Up to date**, and **Connector update verified** appears under **Activity**. While the stack is updating, the connector starts no new operations. It continues afterward.

After the update, an application that's already installed keeps the roles it was created with and keeps working.

## If the update doesn't work

* **The stack isn't in the list.** Check that you're in the right AWS account and Region. If the connector stack was deleted, contact your software provider.
* **The update fails in CloudFormation.** Check the stack's **Events** tab for the reason, for example a policy in your organization that denies an IAM action. Fix the cause, then update again.
* **The install page still shows Still connecting after a reconnect.** Check that you entered the values from the page you have open now. If your software provider sent a newer link, open it and update the stack again with its values.
* **You created a second connector stack by mistake.** Delete the extra stack in CloudFormation, then update the original one as described above.

If none of these help, contact your software provider and quote the **Reference** from **Technical details** on the install page.


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