修改Amazon RDS PostgreSQL数据库版本时拒绝访问

时间:2018-09-02 13:34:19

标签: postgresql amazon-web-services amazon-rds

我正在尝试将RDS PostgreSQL数据库版本从9.4.18(PostgreSQL 9.4.18-R1)升级到9.5.13(PostgreSQL 9.5.13-R1),其中AWS RDS控制台会自动将数据库参数组从默认更改为.postgres9.4改为default.postgres9.5。但是,当我单击“修改数据库实例”按钮时,出现以下错误,查看错误消息,指出修改参数组时访问被拒绝,但是请等待,我没有尝试修改由AWS自动创建的默认参数组。不确定我在这里缺少什么?

User 99999999 is not authorized to modify 
database instance arn:aws:rds:us-east-1:xxxxxxxxxxxx:pg:default.postgres9.5 (Service: AmazonRDS; 
Status Code: 403; Error Code: AccessDenied; 
Request ID: 26f09b9b-b205-42d5-8bf4-56a9560ab223). 
Please check with your administrator.

1 个答案:

答案 0 :(得分:0)

好像我缺少一些权限

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "rds:ModifyDBInstance"
            ],
            "Resource": [
                "arn:aws:rds:*:*:db:*",
                "arn:aws:rds:*:*:pg:default*"
            ]
        }
    ]
}

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "rds:ModifyDBParameterGroup"
            ],
            "Resource": [
                "arn:aws:rds:*:*:pg:default*"
            ]
        }
    ]
}