Updating a connector in AWS

Learn how to update a connector through the AWS CLI

Periodically, you may need to update your AWS connector to help maintain functionality, performance, and security.

This article explains how to update a connector through the AWS CLI and redeploy the CloudFormation stack with the latest connector template.


Prerequisites

Item
Description

AWS Stack Name

In AWS CloudFormation, name of a collection of AWS resources managed as a single unit Use the following steps to retrieve the stack name:

  1. Go to the Stacks page.

  2. Under the Stack name column, copy the stack name.

AWS Command Line Interface (AWS CLI)

Open-source tool enabling interaction with AWS services using your command-line shell

AWS Permissions

Permissions enabling the ability to update the stack via AWS CLI


Update a connector

Follow these steps to update a connector:

  1. Copy the following Account level or Organization level AWS update script. Be sure to replace AWS_STACK_NAME with your AWS stack name.

aws cloudformation update-stack --stack-name AWS_STACK_NAME \
    --template-url https://apono-public.s3.amazonaws.com/cloudformation/aws_integration_with_connector_template.yml \
    --parameters ParameterKey=AponoConnectorId,UsePreviousValue=true \
                 ParameterKey=AponoConnectorToken,UsePreviousValue=true \
                 ParameterKey=ExternalID,UsePreviousValue=true \
                 ParameterKey=SubnetIDs,UsePreviousValue=true \
                 ParameterKey=VpcId,UsePreviousValue=true \
    --capabilities CAPABILITY_NAMED_IAM

If you have not defined a default region and default profile, you must specify the region and profile in the script:

--profile AWS_PROFILE --region AWS_SERVER_REGION

Be sure to replace AWS_PROFILE and AWS_SERVER_REGION with your profile and region values.

  1. At your AWS CLI prompt, enter the updated script from the previous step to initiate the update. The AWS CLI will return an object containing the StackId.

  2. In CloudFormation, on the Stack Info tab, confirm that the update has completed:

    1. Go to the Stacks page. A list of the stacks in the account are displayed.

    2. Under the Stack name column, click the stack name.

    3. On the Stack info tab, check the Status.


Troubleshooting

This section details common errors that can occur during the updating process. If an error occurs that is not listed below, please contact your Apono representative.

An error occurred (ValidationError) when calling the UpdateStack operation: Stack [stack name] does not exist.

This occurs when the incorrect stack name has been included in the update script.

Use the following steps to correct this error:

  1. Locate and copy the stack name under the Stack name column of the Stacks page.

  2. Repeat the update process.

Last updated