CmdID / aws / aws redshift
aws redshift modify-cluster-subnet-group
Modifies a cluster subnet group to include the specified list of VPC subnets. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To modify the subnets in a cluster subnet group
The following modify-cluster-subnet-group example modifies the list of subnets in a cluster subnet group. By default, the output is in JSON format.
aws redshift modify-cluster-subnet-group --cluster-subnet-group-name mysubnetgroup --subnet-ids subnet-763fdd1 subnet-ac830e9Identify--cluster-subnet-group-nameThe name of the subnet group to be modified.--subnet-idsAn array of VPC subnet IDs.Its output
{
"ClusterSubnetGroup":
{
"Subnets": [
{
"SubnetStatus": "Active",
"SubnetIdentifier": "subnet-763fdd1c",
"SubnetAvailabilityZone":
{ "Name": "us-west-2a" }
},
{
"SubnetStatus": "Active",
"SubnetIdentifier": "subnet-ac830e9",
"SubnetAvailabilityZone":
{ "Name": "us-west-2b" }
} ],
"VpcId": "vpc-7e3fdd14",
"SubnetGroupStatus": "Complete",
"Description": "My subnet group",
"ClusterSubnetGroupName": "mysubnetgroup"
}
}For more information, see Modifying a cluster subnet group in the Amazon Redshift Management Guide.
Options
--cluster-subnet-group-nameThe name of the subnet group to be modified.--descriptionA text description of the subnet group to be modified.--subnet-idsAn array of VPC subnet IDs.