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