Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Apr 28, 2024
1 parent b95ed03 commit aea5689
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions packages/@aws-cdk/aws-redshift-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,23 @@ const cluster = new Cluster(this, 'Redshift', {
cluster.addIamRole(role);
```

## [Multi-AZ](https://docs.aws.amazon.com/redshift/latest/mgmt/managing-cluster-multi-az.html)

Amazon Redshift supports multiple Availability Zones (Multi-AZ) deployments for provisioned RA3 clusters. By using Multi-AZ deployments, your Amazon Redshift data warehouse can continue operating in failure scenarios when an unexpected event happens in an Availability Zone.

```ts
new redshift.Cluster(stack, 'Cluster', {
masterUser: {
masterUsername: 'admin',
},
vpc, // 3 AZs are required for Multi-AZ
nodeType: redshift.NodeType.RA3_XLPLUS, // must be RA3 node type
clusterType: redshift.ClusterType.MULTI_NODE, // must be MULTI_NODE
numberOfNodes: 2, // must be 2 or more
multiAz: true,
});
```

## Resizing

As your data warehousing needs change, it's possible to resize your Redshift cluster. If the cluster was deployed via CDK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ const vpc = new ec2.Vpc(stack, 'Vpc', {
});

new redshift.Cluster(stack, 'Cluster', {
vpc: vpc,
vpc,
masterUser: {
masterUsername: 'admin',
},
nodeType: redshift.NodeType.RA3_XLPLUS,
clusterType: redshift.ClusterType.MULTI_NODE,
numberOfNodes: 2,
multiAz: true,
});

Expand Down

0 comments on commit aea5689

Please sign in to comment.