Uninstall the solution - Application Monitoring with Amazon CloudWatch

Uninstall the solution

To uninstall the CloudWatch Monitoring on AWS solution, delete the AWS CloudFormation stack. This will delete all the resources created by the template except for the CloudWatch Log groups. You must manually delete CloudWatch Log groups.

Use the following procedure to uninstall the solution.

Using the AWS Management Console

  1. Sign in to the AWS CloudFormation console.

  2. Select this solution’s installation stack.

  3. Choose Delete.

Delete CloudWatch Log groups

CloudWatch Log groups are retained since they may contain data. To delete these log groups, use the steps below:

  1. Sign in to the AWS CloudWatch Logs console.

  2. Identify the log groups that are no longer needed. You may find similar log groups in your console.

    /aws/lambda/XXDashboardHandlerXX /aws/lambda/XXhelperProviderframeworkXX /aws/lambda/XXTagHandlerXX /aws/lambda/XXApach-HelperXX /cw-monitoring-framework/apache/* /cw-monitoring-framework/nginx/* /cw-monitoring-framework/puma/* linux/var/log/boot linux/var/log/cron linux/var/log/messages linux/var/log/secure
  1. Select the log groups.

  2. Choose Actions and choose delete log group(s).

Using AWS Command Line Interface

Determine whether the AWS Command Line Interface (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 that the AWS CLI is available, run the following command.

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