修改 Amazon DocumentDB 集群以使用自定义集群参数组
本节介绍如何使用 Amazon DocumentDB和 AWS 管理控制台 (AWS Command Line Interface) 修改现有 AWS CLI 集群以使用自定义集群参数组。
修改 Amazon DocumentDB 集群以使用新的非默认集群参数组
在开始之前,请确保您已创建 Amazon DocumentDB 集群和集群参数组。有关进一步说明,请参阅创建 Amazon DocumentDB集群和。
创建集群参数组后,通过以下网址打开 Amazon DocumentDB 控制台:https://console.aws.amazon.com/docdb。在导航窗格中,选择 Clusters 以将新参数组添加到集群。
在 Cluster options (集群选项) 下,选择要将集群与之关联的新参数组。
选择 Continue (继续) 以查看修改摘要。
在确认您的更改后,您可以立即应用这些更改,也可以在 Scheduling of modifications (修改计划) 下的下一个维护时段内应用这些更改。
要将新集群参数组添加到集群,请使用带以下参数的 AWS CLI modify-db-cluster
操作。
--db-cluster-identifier — 集群的名称(例如,
sample-cluster
)。--db-cluster-parameter-group-name 您希望将集群与之关联的参数组的名称(例如,—)。
sample-parameter-group
此操作的输出将类似于下文(JSON 格式)。
"AvailabilityZones": [
"us-west-2c",
"us-west-2b",
],
"BackupRetentionPeriod": 1,
"DBClusterParameterGroup": "
sample-parameter-group
","DBSubnetGroup": "default",
...