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
posta un anno fa269 visualizzazioni
1 Risposta
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande