代码之家  ›  专栏  ›  技术社区  ›  user6826691

针对多个AWS帐户的Datadog AWS集成

  •  2
  • user6826691  · 技术社区  · 8 年前

    我创建了一个具有在线政策的角色,我们没有设立交叉账户。

    ! Datadog is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::xxxxxxxxxx:role/DatadogAWSIntegrationRole. See http://docs.datadoghq.com/integrations/aws/
    

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Principal": {
            "AWS": "arn:aws:iam::xxxxxxxxxxxx:root"
          },
          "Action": "sts:AssumeRole",
          "Condition": {
            "StringEquals": {
              "sts:ExternalId": "xxxxxxxxxxxxxxxxxxxxxxxxxx"
            }
          }
        }
      ]
    }
    

    谁能指导我如何解决这个错误?

    1 回复  |  直到 6 年前
        1
  •  5
  •   mhumesf    8 年前

    角色arn:aws:iam::xxxxxxxxx:role/DatadogAWSIntegrationRole还必须具有在其他帐户上担任角色的权限。

    您必须更新主帐户上的DatadogAWSIntegrationRole,以包括:

    {
    "Version": "2012-10-17",
    "Statement": [
                    ...
                    {
                        "Effect": "Allow",
                        "Action": "sts:AssumeRole",
                        "Resource": "arn:aws:iam::xxxxxxxxxxxx:role/AssumedRoleForDataDogInOtherAccount"
                    }
                ]
    }