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

Allow specifying account id in repo url #40

Open
hoegertn opened this issue Jan 27, 2023 · 1 comment
Open

Allow specifying account id in repo url #40

hoegertn opened this issue Jan 27, 2023 · 1 comment

Comments

@hoegertn
Copy link

I would love to be able to specify the AWS account id in the repo URL to prevent fetch/push from repositories that have the same name but are in different accounts.

@robisonsantos
Copy link

You can do it via profiles.

Set different profiles for your different accounts, eg:

[my-account-1]
aws_access_key=AAAAABBBB
aws_secret_access=BBBBBCCCCDDD

[my-account-2]
aws_access_key=EEEEEFFFFF
aws_secret_access=AAAAXXXXXDDDD

Then, you can specify your repo URL as

codecommit::<region>://<profile>@<repository>

Like:

codecommit::us-east-1://my-account-2@my-awesome-repo

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