How can I add IDC user as an approver in approval rule template in Code Commit

0

I know we can add IAM user as an approver but how can we add it for IDC (SSO) user.

1 réponse
2
Réponse acceptée

Hello.

This can be set by using "Fully qualified ARN".
https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-pull-request-approval-rule.html

Sign in to the AWS account where CodeCommit is located using the SSO user.
Then open CloudShell and run the following command to check the "Fully qualified ARN".

aws sts get-caller-identity

When you run the command, you will receive a response like the one below, so by setting "Arn" to "Fully qualified ARN", you can use it as an approver for approval rules.

{
    "UserId": "AROYYYYYYYYYYYYYY:riku_kobayashi",
    "Account": "111111111111",
    "Arn": "arn:aws:sts::111111111111:assumed-role/AWSReservedSSO_AdministratorAccess_yyyyyyyyyyyyy/riku_kobayashi"
}

a

profile picture
EXPERT
répondu il y a 5 mois
profile picture
EXPERT
vérifié il y a 3 jours
  • Thanks, I followed above steps and was able to approve but still getting "1 Rule not satisfied". I think its not taking my approval

  • Actually it is working now. I think it was not working for the requests which were raised before I did this change in template. Thank you for the help

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