CmdID / aws / aws elasticache
aws elasticache start-migration
Starts the migration of data. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To start a migration
The following start-migration example migrates your data from self-hosted Redis on Amazon EC2 to Amazon ElastiCache, using the Redis engine.
aws elasticache start-migration --replication-group-id test --customer-node-endpoint-list "Address='test.g2xbih.ng.0001.usw2.cache.amazonaws.com',Port=6379"Identify--replication-group-idThe ID of the replication group to which data should be migrated.--customer-node-endpoint-listThe list of endpoints from which to migrate data.Its output, shortened
{
"ReplicationGroup": {
"ReplicationGroupId": "test",
"Description": "test",
"GlobalReplicationGroupInfo": {},
"Status": "modifying",
"PendingModifiedValues": {},
"MemberClusters": [
"test-001",
"test-002",
"test-003"
],
"NodeGroups": [
{
"NodeGroupId": "0001",
"Status": "available",
"PrimaryEndpoint": {
"Address": "test.g2xbih.ng.0001.usw2.cache.amazonaws.com",
"Port": 6379
},
"ReaderEndpoint": {
"Address": "test-ro.g2xbih.ng.0001.usw2.cache.amazonaws.com",
"Port": 6379
},
"NodeGroupMembers": [
{
"CacheClusterId": "test-001",
"CacheNodeId": "0001",
"ReadEndpoint": {
"Address": "test-001.g2xbih.0001.usw2.cache.amazonaws.com",
… 39 more linesFor more information, see Online Migration to ElastiCache in the Elasticache User Guide.
Options
--auto-cutoverSpecifies whether ElastiCache automatically attempts to complete the migration after data sync is established.--clear-target-cache-dataSpecifies whether ElastiCache deletes existing data in the serverless cache before migration begins.--customer-node-endpoint-listThe list of endpoints from which to migrate data.--replication-group-idThe ID of the replication group to which data should be migrated.--serverless-cache-nameThe name of the serverless cache to which data is being migrated.