Creating a Redshift provisioned cluster or Amazon Redshift Serverless workgroup in a VPC
The following are the general steps how you can deploy a cluster or workgroup in your virtual private cloud (VPC).
To create a cluster or Serverless workgroup in a VPC
-
Configure a VPC – You can create your Redshift resources either in the default VPC for your account, if your account has one, or in a VPC that you created. For more information, see Use EC2-VPC when you create your cluster. To create a VPC, see Create a VPC in the Amazon VPC User Guide. Make a note of the VPC identifier, subnet, and subnet's Availability Zone. You need this information when you launch your cluster or workgroup.
Note
You must have at least one subnet defined in your VPC, so you can add it to the subnet group in the next step. For more information about adding a subnet to your VPC, see Adding a subnet to your VPC in the Amazon VPC User Guide.
-
Create an Amazon Redshift cluster subnet group to specify which subnet your Amazon Redshift cluster can use in the VPC. For Redshift Serverless, you don't create a subnet group, but rather assign a collection of subnets to your workgroup when you create it. You can perform this in the Serverless dashboard when you create a workgroup.
You can create a subnet group using either the Amazon Redshift console or programmatically. For more information, see Subnets for Redshift resources.
-
Authorize access for inbound connections in a VPC security group that you associate with the cluster or workgroup. You can enable a client outside the VPC (on the public internet) to connect to the cluster. To do this, you associate the cluster with a VPC security group that grants inbound access. For more information, see Configuring security group communication settings for an Amazon Redshift cluster or an Amazon Redshift Serverless workgroup.
-
Follow the steps to create a cluster in the Redshift provisioned console or a workgroup or in the Amazon Redshift Serverless console. In Network and security, specify the Virtual private cloud (VPC), Cluster subnet group, and VPC security group that you set up.
For a walkthrough that shows more detailed steps for creating a provisioned data-warehouse cluster, see Get started with Amazon Redshift provisioned data warehouses in the Amazon Redshift Getting Started Guide. For more information about creating an Amazon Redshift Serverless workgroup, see Get started with Amazon Redshift Serverless data warehouses in the Amazon Redshift Getting Started Guide.
You can follow the Getting Started steps to test the cluster or workgroup by uploading sample data and trying example queries. For more information, see Create a sample Amazon Redshift cluster in the Amazon Redshift Getting Started Guide.