CmdID / aws / aws redshift
aws redshift create-cluster-subnet-group
Creates a new Amazon Redshift subnet group. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To create a cluster subnet group
The following create-cluster-subnet-group example creates a new cluster subnet group.
aws redshift create-cluster-subnet-group --cluster-subnet-group-name mysubnetgroup --description "My subnet group" --subnet-ids subnet-763fdd1cIdentify--cluster-subnet-group-nameThe name for the subnet group.--descriptionA description for the subnet group.--subnet-idsAn array of VPC subnet IDs.Its output
{
"ClusterSubnetGroup": {
"Subnets": [
{
"SubnetStatus": "Active",
"SubnetIdentifier": "subnet-763fdd1c",
"SubnetAvailabilityZone": {
"Name": "us-west-2a"
}
} ],
"VpcId": "vpc-7e3fdd14",
"SubnetGroupStatus": "Complete",
"Description": "My subnet group",
"ClusterSubnetGroupName": "mysubnetgroup"
}
}For more information, see Subnets for Redshift resources in the Amazon Redshift Management Guide.
Options
--cluster-subnet-group-nameThe name for the subnet group.--descriptionA description for the subnet group.--subnet-idsAn array of VPC subnet IDs.--tagsA list of tag instances.