9951 explained code solutions for 126 technologies


amazon-redshiftHow can I set up Amazon Redshift for high availability?


Setting up Amazon Redshift for high availability requires a few steps:

  1. Create a cluster with two nodes in different Availability Zones. This can be done using the following code:
aws redshift create-cluster \
--node-type dc2.large \
--number-of-nodes 2 \
--availability-zone us-east-1a \
--availability-zone us-east-1b
  1. Enable Enhanced VPC Routing. This can be done using the following code:
aws redshift modify-cluster \
--enhanced-vpc-routing \
--cluster-identifier mycluster
  1. Enable Snapshot Copy. This can be done using the following code:
aws redshift enable-snapshot-copy \
--cluster-identifier mycluster \
--destination-region us-east-1
  1. Create a Read Replica. This can be done using the following code:
aws redshift create-cluster-read-replica \
--cluster-identifier mycluster \
--source-cluster-identifier mycluster

These steps will ensure that your Amazon Redshift cluster is highly available.

Helpful links

Edit this code on GitHub