【问题标题】:Custom IAM policy for RDS security group not workingRDS 安全组的自定义 IAM 策略不起作用
【发布时间】:2017-12-21 11:02:06
【问题描述】:

我们的项目目前托管在 AWS 上。我们将 RDS 服务用于数据层。我需要授权我的一位 IAM 用户处理与我的 RDS 实例关联的安全组的 IP 地址添加/删除请求。尝试为此案例制定自定义策略。以下是我的 JSON 政策 -

{
"Version": "2012-10-17",
"Statement": [
    {
        "Sid": "VisualEditor0",
        "Effect": "Allow",
        "Action": [
            "rds:AuthorizeDBSecurityGroupIngress",
            "rds:ListTagsForResource",
            "rds:DownloadDBLogFilePortion",
            "rds:RevokeDBSecurityGroupIngress"
        ],
        "Resource": [
            "arn:aws:rds:ap-south-1:608862704225:secgrp:<security-group name>",
            "arn:aws:rds:ap-south-1:608862704225:db:<db name>"
        ]
    },
    {
        "Sid": "VisualEditor1",
        "Effect": "Allow",
        "Action": [
            "rds:DescribeDBClusterSnapshots",
            "rds:DownloadCompleteDBLogFile"
        ],
        "Resource": "*"
    }
]

尽管进行了各种更改,但仍无法正常工作。有人可以建议我哪里出错了吗?任何解决方案也将受到欢迎。

【问题讨论】:

    标签: amazon-rds amazon-iam


    【解决方案1】:

    我自己得到了答案,实际上是试图直接通过 RDS 实例中的权限来实现。相反,需要在 ec2 策略中处理安全组权限。

    【讨论】:

      猜你喜欢
      • 2021-09-03
      • 1970-01-01
      • 2020-11-25
      • 1970-01-01
      • 2017-06-02
      • 2014-07-05
      • 1970-01-01
      • 2020-12-16
      • 2020-09-01
      相关资源
      最近更新 更多