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 Answer
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
answered a year ago
profile pictureAWS
EXPERT
kentrad
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions