How to create CodeCommit Repo for each user in an IdentityPool?

0

Hello,

We want to let students create their own personal (private) CodeCommit Repos based on IdentityPool, we find it possible to create CodeCommit repos programmatically (https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codecommit/).

So, we ask how to create a CodeCommit repo for each student and be accessible only by the student who created it, like the GitHub website.

Thanks

1개 답변
1

You can try these steps as basic overview:

  1. Create an Amazon Cognito Identity Pool and configure it to allow authenticated identities.

❓ This will allow you to obtain temporary AWS credentials for authenticated users (students in this case).


  1. Create an IAM role with the necessary permissions to create and manage CodeCommit repositories.

❓ This role will be assumed by the temporary credentials obtained from the Cognito Identity Pool.


  1. In the Cognito Identity Pool configuration, associate the IAM role created in the previous step with the authenticated identities.

  1. In your application code, use the AWS SDK to create a CodeCommit repository for each student.

Additional Steps for Step 4:

profile picture
전문가
답변함 2달 전

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

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

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

관련 콘텐츠