Uninstall the solution - Quota Monitor for AWS

Uninstall the solution

You can uninstall the Quota Monitor for AWS solution from the AWS Management Console or by using the AWS Command Line Interface (AWS CLI).

Note

You must manually delete the following:

  • Delete the DynamoDB summary table from the hub account. The solution doesn’t automatically delete the table, allowing you to maintain historical analysis of the quota usage and alert notifications if desired.

  • Delete the customer managed key for the hub stack.

  • Delete one customer managed key per account, per AWS Region, for the spoke stack.

  • If you deployed the solution with Organizations, delete the StackSet instances from the StackSets before you delete the hub stacks.

Using the AWS Management Console

  1. Sign in to the AWS CloudFormation console.

  2. On the Stacks page, select this solution’s installation stack.

  3. Choose Delete.

Using AWS Command Line Interface

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

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

Deleting StackSet instances

You can delete the StackSet instances from the AWS Management Console or by using the AWS CLI.

Using the AWS Management Console

  1. Sign in to the AWS CloudFormation console.

  2. On the StackSets page, select this solution’s installation StackSet.

  3. Choose Actions, then choose Delete stacks from StackSet.

Using AWS Command Line Interface

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

$ aws cloudformation delete-stack-instances –stack-set-name <installation-stackset-name> --regions <value>

Deleting the DynamoDB table

This solution is configured to retain the solution-created DynamoDB table. Follow these steps to delete the DynamoDB table.

  1. Sign in to the DynamoDB console.

  2. Choose Tables from the left navigation pane.

  3. Locate the <stack-name> prefixed table and choose Delete.

To delete the DynamoDB table using AWS CLI, run the following command:

$ aws dynamodb delete-table <table-name>

Deleting the customer managed keys (scheduling deletion)

This solution is configured to retain the solution-created customer managed keys along with the DynamoDB table. Follow these steps to delete the customer managed keys.

  1. Sign in to the AWS KMS console.

  2. Choose Customer managed keys from the left navigation pane.

  3. Locate the <CMK-stack-name> prefixed table and choose Key Actions and schedule key deletion.

To delete the customer managed keys using AWS CLI, run the following command:

$ aws kms schedule-key-deletion --key-id <key-id>