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
질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠