How to create a redshift cluster using AWS CLI?

0 votes
Please help me with the command to create a redshift cluster using AWS CLI. Thank you in advance.
Feb 25 in AWS by Chandu
91 views

1 answer to this question.

0 votes

You can create your cluster using AWS CLI by the help of the following command:-

C:\Users\priyj_kumar\Desktop>aws redshift create-cluster --node-type dc2.large --number-of-nodes 1 --master-username adminuser --master-user-password password123 --cluster-identifier mydemocluster

You will get a log stating your cluster creation like this:-

{
   "Cluster": {
      "NodeType": "dc2.large",
      "ClusterVersion": "1.0",
      "PubliclyAccessible": "true",
      "MasterUsername": "adminuser",
      "ClusterParameterGroups": [
         {
            "ParameterApplyStatus": "in-sync",
            "ParameterGroupName": "default.redshift-1.0"
         } ],
      "ClusterSecurityGroups": [
         {
            "Status": "active",
            "ClusterSecurityGroupName": "default"
         } ],
      "AllowVersionUpgrade": true,
      "VpcSecurityGroups": \[],
      "PreferredMaintenanceWindow": "sat:03:30-sat:04:00",
      "AutomatedSnapshotRetentionPeriod": 1,
      "ClusterStatus": "creating",
      "ClusterIdentifier": "mydemocluster",
      "DBName": "dev",
      "NumberOfNodes": 1,
      "PendingModifiedValues": {
         "MasterUserPassword": "\****"
      }
   },
   "ResponseMetadata": {
      "RequestId": "7cf4*******************83f07"
   }
}
answered Feb 25 by Priyaj
• 56,940 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to create a DynamoDB using AWS CLI?

You can create a DynamoDB table using ...READ MORE

answered Feb 22 in AWS by Priyaj
• 56,940 points
78 views
0 votes
1 answer

How to create EMR cluster using AWS CLI?

The command to create EMR cluster using ...READ MORE

answered Feb 27 in AWS by Priyaj
• 56,940 points
145 views
+1 vote
1 answer

How to create a redshift cluster?

You can create a Redshift Cluster using ...READ MORE

answered Feb 25 in AWS by Priyaj
• 56,940 points
56 views
+1 vote
1 answer
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15 in AWS by Priyaj
• 56,940 points
858 views
0 votes
1 answer

How to create a VPC using AWS CLI?

To create an Amazon VPC using AWS ...READ MORE

answered Feb 21 in AWS by Priyaj
• 56,940 points
104 views