Uninstall the solution - Migration Assistant for Amazon OpenSearch Service

Uninstall the solution

You can uninstall the Migration Assistant for Amazon OpenSearch Service solution from the AWS Management Console or by using the AWS Command Line Interface. Manually remove the contents of the bucket that matches cdk- <unique id> -assets- <account id> - <region> created by this solution. Migration Assistant for Amazon OpenSearch Service does not automatically delete S3 buckets in case you have stored data to retain.

Important

After your migration is complete, remove all solution resources.

Using the AWS Management Console

  1. Sign in to the CloudFormation console.

  2. On the Stacks page, select this solution’s installation stack. Depending on what options you enabled for the deployment, the solution creates different AWS CloudFormation stacks. The stacks must be deleted in the following order:

    1. MigrationConsole

    2. TrafficReplayer

    3. CaptureProxy

    4. CaptureProxyES (only available for demo install)

    5. ReindexFromSnapshot

    6. MigrationInfra

    7. NetworkInfra

  3. On the Stacks page, delete the bootstrap stack.

  4. Choose Delete for each of the previous.

Using AWS Command Line Interface

To remove all the CDK stacks, which the solution creates during a deployment, you can run a command similar to the following within the CDK directory.

Log in to the bootstrap container, as performed in Set up the Bootstrap Instance, and run the following commands:

cd deployment/cdk/opensearch-service-migration $ cdk destroy "*" --c contextId=default

After the Migration Assistant for Amazon OpenSearch Service solution stacks (see step 2. in the Using the AWS Management Console section) have been removed, remove the bootstrap CloudFormation template.

Determine whether the AWS Command Line Interface (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, set the default Region to the Region that was used for deployment. Then perform the AWS CLI command to delete the given AWS CloudFormation bootstrap stack name:

export AWS_DEFAULT_REGION=<aws_region> $ aws cloudformation delete-stack --stack-name <bootstrap_stack_name>