Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Access to CodeCommit Repo from Different Account #19

Open
awsGruher opened this issue Aug 5, 2020 · 1 comment
Open

Need Access to CodeCommit Repo from Different Account #19

awsGruher opened this issue Aug 5, 2020 · 1 comment

Comments

@awsGruher
Copy link

Hi CodeCommit team,

I am trying to use a CodeCommit repo for an Amplify App, which is being spun up in CloudFormation. I am able to attach a Github repo to the app using an access token (can be generated through developer settings in Github) but I would like to use CodeCommit. I would also like to deploy that CloudFormation template in different accounts from where that CodeCommit repo lives. I have tried attaching an IAM role to the Amplify app but got the error "Requested repository not found" after providing the repo's HTTP URL. I don't believe this is currently supported because CloudFormation only checks your account for the repo (repo URL's in CodeCommit do not point to a specific AWS account and are not globally unique).

Arn: none

Thanks,
Ben

@shubhamoscar
Copy link

It looks like you are performing push to an AWS Account, which does not have your required repository. You will be required to create the repository first. https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-repository.html in the other account and then assume a role that allows access to push to that repository in that AWS Account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants