Ensure that the Enhanced VPC Routing feature is enabled for your Amazon Redshift data warehouse clusters in order to force the traffic between your clusters and your AWS cloud resources to pass through the Virtual Private Cloud (VPC) and not through the Internet, allowing you to control your network traffic. By using Enhanced VPC Routing, you can use standard VPC network features, such as VPC security groups, Network Access Control Lists (NACLs), VPC endpoints, VPC endpoint policies, Internet gateways, and Domain Name System (DNS) servers. You use these VPC features to tightly manage the flow of data between your Amazon Redshift clusters and other cloud resources.
This rule can help you work with the AWS Well-Architected Framework.
By default, the network traffic between Amazon Redshift and other AWS cloud resources, such as Amazon S3 buckets, is then routed through the public Internet. When the Enhanced VPC Routing feature is enabled for your Redshift clusters, Amazon Redshift routes the network traffic through a VPC instead. Amazon Redshift Enhanced VPC Routing uses an available routing option, prioritizing the most specific route for network traffic. The VPC endpoint is prioritized as the first route priority. If a VPC endpoint is unavailable, Amazon Redshift routes the network traffic through an Internet gateway, a NAT instance, or a NAT gateway. After the feature is enabled, Amazon Redshift forces all COPY and UNLOAD traffic between your clusters and your data repositories through your VPC network. Then, you can use VPC flow logs to monitor the COPY/UNLOAD traffic.
Audit
To determine if Enhanced VPC Routing is enabled for your Amazon Redshift clusters, perform the following operations:
Remediation / Resolution
To enable Enhanced VPC Routing for your existing Amazon Redshift clusters and force cluster traffic through a Virtual Private Cloud (VPC) network, perform the following operations:
Note: Before you enable Enhanced VPC Routing, make sure that your Amazon Redshift cluster meets the following requirements and constraints:- Your Redshift cluster is running within a VPC.
- Domain Name Service (DNS) resolution is enabled for your VPC network.
- DNS hostnames are enabled in your VPC (DNS hostnames are enabled by default).
- If you attach an Amazon S3 VPC endpoint, your Redshift cluster uses the VPC endpoint only for access to Amazon S3 buckets in the same AWS region. To access buckets in another AWS region (i.e. not using the VPC endpoint) or to access other AWS cloud services, make your Redshift cluster publicly accessible or use a Network Address Translation (NAT) gateway.
- Your Virtual Private Cloud (VPC) endpoint policies allow access to any Amazon S3 buckets used with COPY, UNLOAD, or CREATE LIBRARY calls in Amazon Redshift, including access to any manifest files involved.
References
- AWS Documentation
- Amazon Redshift FAQs
- Amazon Redshift clusters
- Managing clusters using the console
- Enhanced VPC routing in Amazon Redshift
- Enabling enhanced VPC routing
- Modify the DNS attributes for your VPC
- Permissions to access other AWS Resources
- Working with VPC endpoints
- NAT gateways
- Enable public subnets to access the internet
- AWS Command Line Interface (CLI) Documentation
- redshift
- describe-clusters
- modify-cluster