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.

已提问 1 年前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
专家
已回答 1 年前
profile pictureAWS
专家
kentrad
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则