建立自訂端點 - Amazon Aurora

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

建立自訂端點

使用 AWS Management Console、 AWS CLI或 Amazon 建立自訂端點RDSAPI。

若要使用建立自訂端點 AWS Management Console,請移至叢集詳細資料頁面,然後在「端點」區段中選擇Create custom endpoint動作。選擇自訂端點的名稱,該名稱是您的使用者 ID 和區域的唯一。若要選取即使在叢集展開時仍保持相同的資料庫執行個體清單,請將核取方塊 Attach future instances added to this cluster (連線新增至此叢集的未來執行個體) 保持未選取。選擇該核取方塊時,自訂端點會在您將它們新增至叢集時動態新增任何新的執行個體。

建立自訂端點頁面。

您無法在 AWS Management Console中選取自訂端點類型。您透過建立的所有自訂端點都 AWS Management Console 有一種類型ANY

若要使用建立自訂端點 AWS CLI,請執行create-db-cluster-endpoint命令。

下列命令會建立連線到特定叢集的自訂端點。一開始,端點會與叢集中的所有 Aurora 複本相關聯。後續命令會將它與叢集中特定的資料庫執行個體集相關聯。

對於LinuxmacOS、或Unix:

aws rds create-db-cluster-endpoint --db-cluster-endpoint-identifier custom-endpoint-doc-sample \ --endpoint-type reader \ --db-cluster-identifier cluster_id aws rds modify-db-cluster-endpoint --db-cluster-endpoint-identifier custom-endpoint-doc-sample \ --static-members instance_name_1 instance_name_2

在 Windows 中:

aws rds create-db-cluster-endpoint --db-cluster-endpoint-identifier custom-endpoint-doc-sample ^ --endpoint-type reader ^ --db-cluster-identifier cluster_id aws rds modify-db-cluster-endpoint --db-cluster-endpoint-identifier custom-endpoint-doc-sample ^ --static-members instance_name_1 instance_name_2

若要使用建立自訂端點 RDSAPI,請執行 C reateDBCluster 端點作業。