Deleting a replication instance
You can delete an Amazon DMS replication instance when you are finished using it. If you have migration tasks that use the replication instance, you must stop and delete the tasks before deleting the replication instance.
If you close your Amazon account, all Amazon DMS resources and configurations associated with your account are deleted after two days. These resources include all replication instances, source and target endpoint configuration, replication tasks, and SSL certificates. If after two days you decide to use Amazon DMS again, you recreate the resources you need.
If your replication instance meets all the criteria for deletion, and it stays in the
DELETING
status for an extended period of time, contact support to troubleshoot the issue.
To delete a replication instance, use the Amazon console.
To delete a replication instance using the Amazon console
-
Sign in to the Amazon Web Services Management Console and open the Amazon DMS console at https://console.amazonaws.cn/dms/v2/
. In the navigation pane, choose Replication instances.
-
Choose the replication instance you want to delete.
Choose Delete.
In the dialog box, choose Delete.
To delete a replication instance, use the Amazon CLI delete-replication-instance
command with the following
parameter:
-
--replication-instance-arn
Example delete
The following Amazon CLI example deletes a replication instance.
aws dms delete-replication-instance \ --replication-instance-arn
arn of my rep instance
To delete a replication instance, use the Amazon DMS API DeleteReplicationInstance
action with the
following parameters:
-
ReplicationInstanceArn =
arn of my rep instance
Example delete
The following code example deletes a replication instance.
https://dms.us-west-2.amazonaws.com/ ?Action=DeleteReplicationInstance &DBInstanceArn=
arn of my rep instance
&SignatureMethod=HmacSHA256 &SignatureVersion=4 &Version=2014-09-01 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Credential=AKIADQKE4SARGYLE/20140425/us-east-1/dms/aws4_request &X-Amz-Date=20140425T192732Z &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date &X-Amz-Signature=1dc9dd716f4855e9bdf188c70f1cf9f6251b070b68b81103b59ec70c3e7854b3