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 réponse
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
EXPERT
répondu il y a un an
profile pictureAWS
EXPERT
kentrad
vérifié 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