3

我正在尝试配置 Aurora PostgreSQL 2.3 集群(与 PostgreSQL 10.7 兼容),但不知道 rds.ClusterParameterGroup.family 应该设置什么,或者这在这里是否重要。

我发现的示例使用了“aurora5.6”,如下所示,但我不知道它与 PostgreSQL 版本的对应关系如何。

    const dbparams = new rds.ClusterParameterGroup(this, 'DbClusterParams', {
      family: 'aurora5.6',
      description: 'my parameter group',
      parameters: {
        character_set_database: 'utf8mb4'
      }
    });

    // create Aurora cluster
    const dbcluster = new rds.DatabaseCluster(this, 'DbCluster', {
      defaultDatabaseName: 'MySampleDb',
      engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
      masterUser: {
        username: 'myadmin',
      },
      instanceProps: {
        instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.SMALL),
        vpc
      },
      parameterGroup: dbparams,
      kmsKey,
    });

API 文档未提供任何详细信息。https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-rds.ClusterParameterGroup.html

4

1 回答 1

1

查看 CloudFormation 文档时,您可以了解有关 ClusterParameterGroup 系列的更多信息:https ://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html

那里描述的方法:

aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"

返回可能值的完整列表(有重复项):

...
...
    "aurora-mysql5.7",
    "aurora-mysql5.7",
    "aurora-mysql5.7",
    "aurora-mysql5.7",
    "docdb3.6",
    "neptune1",
    "neptune1",
    "neptune1",
    "aurora-postgresql9.6",
    "aurora-postgresql9.6",
    "aurora-postgresql9.6",
    "aurora-postgresql9.6",
...
...
于 2020-01-03T13:41:21.733 回答