9951 explained code solutions for 126 technologies


amazon-redshiftHow do I configure Amazon Redshift Gateway?


To configure Amazon Redshift Gateway, you need to complete the following steps:

  1. Create an Amazon Redshift cluster.

    aws redshift create-cluster --cluster-identifier <cluster-name> --node-type <node-type> --master-username <master-username> --master-user-password <master-password> --number-of-nodes <number-of-nodes>
  2. Create an Amazon VPC endpoint for Redshift.

    aws ec2 create-vpc-endpoint --vpc-id <vpc-id> --service-name com.amazonaws.region.redshift --route-table-ids <route-table-id>
  3. Create a security group for the Amazon Redshift cluster.

    aws ec2 create-security-group --group-name <group-name> --description <description> --vpc-id <vpc-id>
  4. Add an inbound rule to the security group for the Amazon Redshift cluster.

    aws ec2 authorize-security-group-ingress --group-id <group-id> --ip-permissions IpProtocol=tcp,FromPort=5439,ToPort=5439,IpRanges='[{CidrIp=<cidr-ip-range>}]'
  5. Create a connection to the Amazon Redshift cluster.

    aws redshift create-cluster-parameter-group --parameter-group-name <parameter-group-name> --parameter-group-family redshift-1.0 --description "Parameter group for Amazon Redshift cluster"
  6. Modify the connection parameters for the Amazon Redshift cluster.

    aws redshift modify-cluster-parameter-group --parameter-group-name <parameter-group-name> --parameters ParameterName=require_ssl,ParameterValue=1
  7. Create an Amazon Redshift gateway.

    aws redshift create-cluster-subnet-group --cluster-subnet-group-name <subnet-group-name> --description <description> --subnet-ids <subnet-id>

Once these steps are completed, you will have successfully configured Amazon Redshift Gateway.

Helpful links

Edit this code on GitHub