Uninstall the solution - Amazon Virtual Andon

Uninstall the solution

You can uninstall the Amazon Virtual Andon solution using the AWS Management Console or the AWS Command Line Interface (AWS CLI). However, the Amazon Simple Storage Service (Amazon S3) buckets, Amazon Simple Notification Service (Amazon SNS) topics created for Amazon Virtual Andon events, and the issue Amazon DynamoDB table must be manually deleted.

Using the AWS Management Console

  1. Sign in to the AWS CloudFormation console.

  2. On the Stacks page, select the solution stack.

  3. Choose Delete.

Using AWS CLI

Determine whether AWS CLI is available in your environment. For installation instructions, refer to What Is the AWS Command Line Interface in the AWS CLI User Guide. After confirming the AWS CLI is available, run the following command.

$ aws cloudformation delete-stack --stack-name <cloudformation-stack-name>

Deleting the Amazon S3 buckets

The solution is configured to retain the Amazon S3 buckets if you decide to delete the AWS CloudFormation stack to prevent against accidental data loss. After uninstalling the solution, you can manually delete these buckets if you do not need to retain the data. Use the following procedure to delete the Amazon S3 buckets.

  1. Sign in to the Amazon S3 console.

  2. Choose Buckets from the left navigation pane.

  3. Locate the <stack-name> S3 buckets.

  4. Select one of the S3 buckets and choose Delete.

Repeat the steps until you have deleted all the <stack-name> S3 buckets.

To delete the S3 bucket using AWS CLI, run the following command:

$ aws s3 rb s3://<bucket-name> --force

Deleting the Amazon DynamoDB tables

Use the following procedure to delete the Amazon DynamoDB issue table.

  1. Sign in to the Amazon DynamoDB console.

  2. Choose Tables from the left navigation pane.

  3. Select the issue Amazon DynamoDB table and choose Delete table.

Deleting the Amazon SNS topics

Use the following AWS CLI command to delete the Amazon SNS topics.

for arn in `aws resourcegroupstaggingapi get-resources --tag-filters Key=amazon-virtual-andon,Values=amazon-virtual-andon --region YOUR_REGION --query 'ResourceTagMappingList[*].[ResourceARN]' --output text` do aws sns delete-topic --topic-arn $arn --region YOUR_REGION done