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

Multiple mirrors with AWS CodeCommit same repo names in different AWS Accounts #79

Open
newbeeeeeee opened this issue Feb 27, 2020 · 6 comments

Comments

@newbeeeeeee
Copy link

newbeeeeeee commented Feb 27, 2020

We are currently facing an issue with mirror hook. We use CodeCommit repos with same name in multiple AWS accounts, CodeCommit provides same URL to access to repo, just different IAM users. When we add multiple mirror hooks using same URL, replication breaks. This not related to authentication because mirror works when we add the repos the first time and then it stops working. If CodeCommit repo names are different, it provides with a different URL and then we can add multiple repos and mirror hooks works fine.

Has anyone seen this issue? Is this supported?

@mmacduff
Copy link

mmacduff commented Mar 5, 2020

I have the same issue

@kavita-alexa
Copy link

Also seeing this issue. Has anyone successfully used a workaround for this?

@ajith-reddy-dev
Copy link

ajith-reddy-dev commented May 17, 2021

+1. When it triggers the hook, only one repo is getting updated. Remaining is not triggred

@joe-keane
Copy link

Same here. The only workaround for me was to get a new code commit name in each account, not ideal but allowed me to workaround it.

@aviralvishnoi
Copy link

Are there any plans for resolution of this issue from the team maintaing this repository?

@tmccombs
Copy link

As a workaround, for the atlassian user, you can add something like this to ~/.ssh/config:

Host codecommit-account1
Hostname git-codecommit.us-east-1.amazonaws.com
IdentityFile account1-ssh-key-file
User account1-key-id

then use ssh://codecommit-account1/v1/repos/repo-name as the url in for the mirror (and similarly for additional accounts)

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

7 participants