CmdID / aws / aws redshift
aws redshift create-cluster-security-group
Creates a new Amazon Redshift security group. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To create a cluster security group
The following create-cluster-security-group example creates a new cluster security group. By default, the output is in JSON format.
aws redshift create-cluster-security-group --cluster-security-group-name mysecuritygroup --description "This is my cluster security group"Identify--cluster-security-group-nameThe name for the security group.--descriptionA description for the security group.Its output
{
"ClusterSecurityGroup": {
"ClusterSecurityGroupName": "mysecuritygroup",
"Description": "This is my cluster security group",
"EC2SecurityGroups": [],
"IPRanges": [],
"Tags": []
}
}You can also obtain the same information in text format using the --output text option.
aws redshift create-cluster-security-group --cluster-security-group-name mysecuritygroup --description "This is my cluster security group" --output textIdentify--cluster-security-group-nameThe name for the security group.--descriptionA description for the security group.--outputThe formatting style for command output.Its output
This is my cluster security group 123456789012 mysecuritygroupFor more information, see Infrastructure security in Amazon Redshift in the Amazon Redshift Management Guide.
Options
--cluster-security-group-nameThe name for the security group.--descriptionA description for the security group.--tagsA list of tag instances.