Is it possible to use one CodeCommit Repository from Two different AWS Accounts ?

0

I have an instance in Account A and would like to use a repository from Account B, we're using Terraform and have a cloud-init.yaml file that contains all the packages we need to install on initialisation. One of the commands is git clone a repository. By default I'm getting an error that the repository is not found, therefore its not using the Account B.

질문됨 일 년 전631회 조회
1개 답변
1

Hi,

Yes, you can access to CodeCommit repositories for IAM users and groups in another AWS account, but first you need to configure the cross-account access on both accounts, as well as the AWS CLI and Git clients. The following AWS documentation page explains how to do it step by step.

I hope this helps you.

profile picture
전문가
답변함 일 년 전
profile pictureAWS
전문가
kentrad
검토됨 일 년 전

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

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

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

관련 콘텐츠