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 Antwort
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
EXPERTE
beantwortet vor einem Jahr
profile pictureAWS
EXPERTE
kentrad
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen