forked from aws/aws-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.10.14: Bumping version to 1.10.14 Update CHANGELOG.rst Fix spelling error in the add model command docs Add option to force an attempt at downloading glacier objects Database Migration Service examples Add api_versions support
- Loading branch information
Showing
19 changed files
with
352 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
The following command creates a source endpoint for a MySQL RDS DB instance named ``mydb.cx1llnox7iyx.uswest-2.rds.amazonaws.com``:: | ||
|
||
aws dms create-endpoint --endpoint-identifier test-endpoint-1 --endpoint-type source --engine-name mysql --username username --password password --server-name mydb.cx1llnox7iyx.uswest-2.rds.amazonaws.com --port 3306 | ||
|
||
Output:: | ||
|
||
{ | ||
"Endpoint": { | ||
"Username": "username", | ||
"Status": "active", | ||
"EndpointArn": "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM", | ||
"ServerName": "mydb.cx1llnox7iyx.us-west-2.rds.amazonaws.com", | ||
"EndpointType": "SOURCE", | ||
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd", | ||
"EngineName": "mysql", | ||
"EndpointIdentifier": "test-endpoint-1", | ||
"Port": 3306 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
The following command creates a replication instance named ``my-replication-db`` with 5GB of storage:: | ||
|
||
aws dms create-replication-instance --replication-instance-identifier my-replication-db --replication-instance-class dms.t2.micro --allocated-storage 5 | ||
|
||
Output:: | ||
|
||
{ | ||
"ReplicationInstance": { | ||
"PubliclyAccessible": true, | ||
"ReplicationInstanceArn": "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ ", | ||
"ReplicationInstanceClass": "dms.t2.micro", | ||
"ReplicationSubnetGroup": { | ||
"ReplicationSubnetGroupDescription": "default", | ||
"Subnets": [{ | ||
"SubnetStatus": "Active", | ||
"SubnetIdentifier": "subnet-f6dd91af", | ||
"SubnetAvailabilityZone": { | ||
"Name": "us-east-1d" | ||
} | ||
}, { | ||
"SubnetStatus": "Active", | ||
"SubnetIdentifier": "subnet-3605751d", | ||
"SubnetAvailabilityZone": { | ||
"Name": "us-east-1b" | ||
} | ||
}, { | ||
"SubnetStatus": "Active", | ||
"SubnetIdentifier": "subnet-c2daefb5", | ||
"SubnetAvailabilityZone": { | ||
"Name": "us-east-1c" | ||
} | ||
}, { | ||
"SubnetStatus": "Active", | ||
"SubnetIdentifier": "subnet-85e90cb8", | ||
"SubnetAvailabilityZone": { | ||
"Name": "us-east-1e" | ||
} | ||
}], | ||
"VpcId": "vpc-6741a603", | ||
"SubnetGroupStatus": "Complete", | ||
"ReplicationSubnetGroupIdentifier": "default" | ||
}, | ||
"AutoMinorVersionUpgrade": true, | ||
"ReplicationInstanceStatus": "creating", | ||
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd", | ||
"AllocatedStorage": 5, | ||
"EngineVersion": "1.5.0", | ||
"ReplicationInstanceIdentifier": "test-rep-1", | ||
"PreferredMaintenanceWindow": "sun:06:00-sun:14:00", | ||
"PendingModifiedValues": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
The following command creates a replication task to copy data from one DB instance behind a DMS endpoint to another using a replication instance:: | ||
|
||
aws dms create-replication-task --replicationtask-identifier my-replication-task --target-endpoint-arn arn:aws:dms:us-east-1:123456789012:endpoint:HTWNT57CLN2WGVBUJQXJZASXWE --source-endpoint-arn arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE --replication-instance-arn arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ --migration-type full-load --table-mappings 'file://table-mappings.json' | ||
|
||
The file ``table-mappings.json`` is a JSON document in the current folder that specifies table mappings:: | ||
|
||
{ | ||
"TableMappings": [ | ||
{ | ||
"Type": "Include", | ||
"SourceSchema": "company", | ||
"SourceTable": “emp%" | ||
}, | ||
{ | ||
"Type": "Include", | ||
"SourceSchema": “employees", | ||
"SourceTable": “%" | ||
}, | ||
{ | ||
"Type": "Exclude", | ||
"SourceSchema": “source101", | ||
"SourceTable": “dep%" | ||
}, | ||
{ | ||
"Type": "Exclude", | ||
"SourceSchema": “source102", | ||
"SourceTable": “%" | ||
}, | ||
{ | ||
"Type": "Explicit", | ||
"SourceSchema": "company", | ||
"SourceTable": "managers" | ||
}, | ||
{ | ||
"Type": "Explicit", | ||
"SourceSchema": "company", | ||
"SourceTable": "locations" | ||
} | ||
] | ||
} | ||
|
||
|
||
Output:: | ||
|
||
{ | ||
"ReplicationTask": { | ||
"SourceEndpointArn": "arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE", | ||
"ReplicationTaskIdentifier": "task1", | ||
"ReplicationInstanceArn": "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ", | ||
"TableMappings": "{\n \"TableMappings\": [\n {\n \"Type\":\"Include\",\n \"SourceSchema\": \"/\",\n \"SourceTable\": \"/\"\n}\n ]\n}\n\n", | ||
"Status": "creating", | ||
"ReplicationTaskArn": "arn:aws:dms:us-east-1:123456789012:task:OEAMB3NXSTZ6LFYZFEPPBBXPYM", | ||
"ReplicationTaskCreationDate": 1457658407.492, | ||
"MigrationType": "full-load", | ||
"TargetEndpointArn": "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E", | ||
"ReplicationTaskSettings": "{\"TargetMetadata\":{\"TargetSchema\":\"\",\"SupportLobs\":true,\"FullLobMode\":true,\"LobChunkSize\":64,\"LimitedSizeLobMode\":false,\"LobMaxSize\":0},\"FullLoadSettings\":{\"FullLoadEnabled\":true,\"ApplyChangesEnabled\":false,\"TargetTablePrepMode\":\"DROP_AND_CREATE\",\"CreatePkAfterFullLoad\":false,\"StopTaskCachedChangesApplied\":false,\"StopTaskCachedChangesNotApplied\":false,\"ResumeEnabled\":false,\"ResumeMinTableSize\":100000,\"ResumeOnlyClusteredPKTables\":true,\"MaxFullLoadSubTasks\":8,\"TransactionConsistencyTimeout\":600,\"CommitRate\":10000},\"Logging\":{\"EnableLogging\":false}}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
The following command describes connections for an endpoint specified by ARN:: | ||
|
||
aws dms describe-connections --filters Name="endpoint-arn",Values="arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE" | ||
|
||
Output:: | ||
|
||
{ | ||
"Connections": [ | ||
{ | ||
"Status": "successful", | ||
"ReplicationInstanceIdentifier": "test", | ||
"EndpointArn": "arn:aws:dms:us-east-arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE", | ||
"EndpointIdentifier": "testsrc1", | ||
"ReplicationInstanceArn": "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
The following command describes source endpoints in your account:: | ||
|
||
aws dms describe-endpoints --filters Name="endpoint-type",Values="source" | ||
|
||
Output:: | ||
|
||
{ | ||
"Endpoints": [{ | ||
"Username": "dms", | ||
"Status": "active", | ||
"EndpointArn": "arn:aws:dms:us-east-1:123456789012:endpoint:SF2WOFLWYWKVEOHID2EKLP3SJI", | ||
"ServerName": "ec2-52-32-48-61.us-west-2.compute.amazonaws.com", | ||
"EndpointType": "SOURCE", | ||
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/94d5c4e7-4e4c-44be-b58a-c8da7adf57cd", | ||
"DatabaseName": "test", | ||
"EngineName": "mysql", | ||
"EndpointIdentifier": "pri100", | ||
"Port": 8193 | ||
}, { | ||
"Username": "admin", | ||
"Status": "active", | ||
"EndpointArn": "arn:aws:dms:us-east-1:123456789012:endpoint:TJJZCIH3CJ24TJRU4VC32WEWFR", | ||
"ServerName": "test.example.com", | ||
"EndpointType": "SOURCE", | ||
"KmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/2431021b-1cf2-a2d4-77b2-59a9e4bce323", | ||
"DatabaseName": "EMPL", | ||
"EngineName": "oracle", | ||
"EndpointIdentifier": "test", | ||
"Port": 1521 | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.