Terraform for delegated admin IAM Access Analyzer

0

Hi, Do we have terraform code/support for delegating admin for IAM Access Analyzer. I can see terraform resource blocks for delegated admins of securityhub or guard duty but not for IAM Access Analayzer. If it is not available can anyone suggest me any other ways to achieve using terraform.

nishan
已提问 1 年前271 查看次数
1 回答
0

You can add a delegated admin for IAM Access Analyzer using the following code:

resource "aws_organizations_delegated_administrator" "iam_access_analyzer" {
  account_id        = "1234567890" # DELEGATED ADMIN ACCOUNT ID
  service_principal = "access-analyzer.amazonaws.com"
}

Terraform resource documentation: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_delegated_administrator

profile pictureAWS
已回答 1 年前

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

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

回答问题的准则