aws dms describe-replication-subnet-groups
Returns information about the replication subnet groups. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To display the available subnet groups
The following describe-replication-subnet-groups example lists the available subnet groups.
aws dms describe-replication-subnet-groups --filters "Name=replication-subnet-group-id,Values=my-subnet-group"Identify--filtersFilters applied to replication subnet groups.Its output, shortened
{
"ReplicationSubnetGroups": [
{
"ReplicationSubnetGroupIdentifier": "my-subnet-group",
"ReplicationSubnetGroupDescription": "my subnet group",
"VpcId": "vpc-136a4c6a",
"SubnetGroupStatus": "Complete",
"Subnets": [
{
"SubnetIdentifier": "subnet-da327bf6",
"SubnetAvailabilityZone": {
"Name": "us-west-2a"
},
"SubnetStatus": "Active"
},
{
"SubnetIdentifier": "subnet-bac383e0",
"SubnetAvailabilityZone": {
"Name": "us-west-2c"
},
"SubnetStatus": "Active"
},
{
"SubnetIdentifier": "subnet-d7c825e8",
"SubnetAvailabilityZone": {
"Name": "us-west-2d"
},
"SubnetStatus": "Active"
}
]
… 3 more linesFor more information, see Setting Up a Network for a Replication Instance in the AWS Database Migration Service User Guide.
Options
--filtersFilters applied to replication subnet groups.--markerAn optional pagination token provided by a previous request.--max-recordsThe maximum number of records to include in the response.