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
demandé il y a un an269 vues
1 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions