Uninstall the solution
You can uninstall the Cloud Migration Factory on AWS solution from the AWS Management Console or by using the AWS Command Line Interface. You must manually empty all the Amazon Simple Storage Service (Amazon S3) buckets created by this solution. AWS Solutions Implementations do not automatically delete S3 buckets in case you have stored data to retain.
Empty the Amazon S3 buckets
If you decide to delete the AWS CloudFormation stack, this solution is configured to retain the created Amazon S3 bucket (for deploying in an opt-in Region) to prevent accidental data loss. You must manually empty all the S3 buckets before deleting the stack completely. Follow these steps to empty the Amazon S3 bucket.
-
Sign in to the Amazon S3 console
. -
Choose Buckets from the left navigation pane.
-
Locate the
[.replaceable]
<application name>`-<environment name>
-<AWS account ID>
\*` S3 buckets. -
Select each S3 bucket and choose Empty.
To delete the S3 bucket using AWS CLI, run the following command:
aws s3 rm s3://<bucket-name> --recursive
(Migration Tracker only) Delete Amazon Athena workgroup
If you deployed the solution with the Migration Tracker, you must delete the Amazon Athena workgroup.
-
Sign in to the Amazon Athena console
. -
Select Administration from the left navigation pane, then select Workgroups.
-
Locate the
<application name>
-<environment name>
-workgroup` from the workgroups. -
From Actions, choose Delete.
-
Confirm that you want to delete the workgroup.
-
Choose Delete.
Using the AWS Management Console to delete the stack
-
Sign in to the AWS CloudFormation console
. -
On the Stacks page, select this solution’s installation stack.
-
Choose Delete.
Using AWS Command Line Interface to delete the stack
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>