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 年前檢視次數 269 次
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 年前

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

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

回答問題指南