Unable to enable Delegated Admin for Inspector2

0

We tried to enable Delegated Admin for Inspector and got permissions error. We have tried with 2 accounts (limited account and with admin permissions). Limited account has required permissions: AmazonInspector2FullAccess

Should I add additional permissions on target account side?

Terraform:

resource "aws_inspector2_delegated_admin_account" "delegated_admin_account_for_inspector" {
  account_id = var.delegated_admin_acc_id
}

Error message:

Error: creating Amazon Inspector Delegated Admin Account (######): operation error Inspector2: EnableDelegatedAdminAccount, https response error StatusCode: 403, RequestID: #####,  AccessDeniedException: Invoking account does not have access to enable delegated administrator account
Rustam
已提问 5 个月前257 查看次数
1 回答
0

It is important to note that only the management or master account of your Organisation has the privilege to designate a delegated administrator for Amazon Inspector. 

Ensure that the IAM entity performing the steps has the following permissions:

{
    "Sid": "PermissionsForInspectorAdmin",
    "Effect": "Allow",
    "Action": [
        "inspector2:EnableDelegatedAdminAccount",
        "organizations:EnableAWSServiceAccess",
        "organizations:RegisterDelegatedAdministrator",
        "organizations:ListDelegatedAdministrators",
        "organizations:ListAWSServiceAccessForOrganization",
        "organizations:DescribeOrganizationalUnit",
        "organizations:DescribeAccount",
        "organizations:DescribeOrganization"
    ],
    "Resource": "*"
}

[+] Permissions required to designate a delegated administrator - https://docs.aws.amazon.com/inspector/latest/user/designating-admin.html#delegated-admin-permissions

profile picture
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则