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 個月前檢視次數 252 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南