如何使用Cloudformation在AWS Aurora中指定Postgres?

时间:2017-11-22 12:23:08

标签: amazon-web-services amazon-cloudformation amazon-rds-aurora

我尝试使用Cloudformation启动Postgres风格的Aurora群集,但我无法找到如何指定" postgres"在模板中。有谁知道怎么做,或者Postgres是否支持?

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html

1 个答案:

答案 0 :(得分:7)

<强>极光-A的PostgreSQL

目前唯一支持的引擎版本是9.6.3

更新 - 目前支持的极光版本现在包括9.6.6,9.6.8和9.6.9 https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-engine-versions.html

更新2 - 对于版本10,当前支持的极光版本包括postgres:10.4,10.5,10.6 https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html

aws rds describe-db-engine-versions --engine aurora-postgresql
--region us-east-1 {
    "DBEngineVersions": [
        {
            "Engine": "aurora-postgresql",
            "DBParameterGroupFamily": "aurora-postgresql9.6",
            "DBEngineDescription": "Aurora (PostgreSQL)",
            "EngineVersion": "9.6.3",
            "DBEngineVersionDescription": "Aurora PostgreSQL (compatible with PostgreSQL 9.6.3)",
            "ValidUpgradeTarget": []
        }
    ] }

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html

引擎

The name of the database engine to be used for this instance.

Not every database engine is available for every AWS Region.

Valid Values:

    aurora

    aurora-postgresql

    mariadb

    mysql

    oracle-ee

    oracle-se2

    oracle-se1

    oracle-se

    postgres

    sqlserver-ee

    sqlserver-se

    sqlserver-ex

    sqlserver-web