

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 VPC 中建立 Redshift 佈建叢集或 Amazon Redshift Serverless 工作群組
<a name="getting-started-cluster-in-vpc"></a>

以下是在虛擬私有雲端 (VPC) 中部署叢集或工作群組的一般步驟。

**在 VPC 中建立叢集或 Serverless 工作群組**

1. 設定 VPC - 您可以在帳戶的預設 VPC 中 (如果帳戶有預設 VPC)，或是在您建立的 VPC 中建立 Redshift 資源。如需詳細資訊，請參閱[使用 EC2 建立叢集](working-with-clusters.md#cluster-platforms)。若要建立 VPC，請參閱《Amazon VPC 使用者指南》**中的 [VPC 的子網路](https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html)。請記下 VPC 識別碼、子網路和子網路的可用區域。當您啟動叢集或工作群組時，會需要此資訊。
**注意**  
您至少必須在 VPC 中定義一個子網路，才能在下一個步驟將其新增至子網路群組。如需在您的 VPC 中新增子網路的相關資訊，請參閱《Amazon VPC 使用者指南》**中的[在您的 VPC 中新增子網路](https://docs.aws.amazon.com/vpc/latest/userguide/working-with-subnets.html)。

1. 建立 Amazon Redshift 叢集子網路群組，以指定您的 Amazon Redshift 叢集可用於 VPC 的子網路。對於 Redshift Serverless，您不會建立子網路群組，而是在建立工作群組時將子網路集合指派至該工作群組。您可以在建立工作群組時，於 **Serverless 儀表板**中執行此操作。

   您可以使用 Amazon Redshift 主控台或以程式設計的方式建立子網路群組。如需詳細資訊，請參閱[Redshift 資源的子網路](working-with-cluster-subnet-groups.md)。

1. 在您要與叢集或工作群組建立關聯的 VPC 安全群組中，授權傳入連線的存取權。您可以允許 VPC 外部的用戶端 (在公有網際網路上) 連線至叢集。若要執行此操作，請將叢集與授予傳入存取權的 VPC 安全群組建立關聯。如需詳細資訊，請參閱[設 Amazon Redshift 叢集或 Amazon Redshift Serverless 工作群組的安全群組通訊設定](rs-security-group-public-private.md)。

1. 依照下列步驟在 Redshift 佈建主控台或工作群組中，或在 Amazon Redshift Serverless 主控台中建立叢集。在**網路與安全**中，指定您設定的**虛擬私有雲端 (VPC)**、**叢集子網路群組**和 **VPC 安全群組**。

   

   如需顯示建立佈建資料倉儲叢集之更詳細步驟的逐步解說，請參閱《Amazon Redshift 入門指南》**中的[開始使用 Amazon Redshift 佈建資料倉儲](https://docs.aws.amazon.com/redshift/latest/gsg/new-user.html)。如需建立 Amazon Redshift Serverless 的詳細資訊，請參閱《Amazon Redshift 入門指南》**中的[開始使用 Amazon Redshift 資料倉儲](https://docs.aws.amazon.com/redshift/latest/gsg/new-user-serverless.html)。

您可以依照《入門》中的步驟上傳範例資料並執行範例查詢，藉此測試叢集或工作群組。如需詳細資訊，請參閱《Amazon Redshift 入門指南》**中的[開始使用 Amazon Redshift Serverless 資料倉儲](https://docs.aws.amazon.com/redshift/latest/gsg/rs-gsg-launch-sample-cluster.html)。