-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support China regions #10
Comments
It should be caused by boto/botocore#2026. |
How about making the checking of available region as a warning? Currently the CodeBuild is blocked by this to pull source from CodeCommit. Looks like it has a lag(several days) to sync the new services availability to the botocore's static config. Looks like it will always occur when CodeCommit is expanded to new regions. |
Here is workaround: edit the file
<YOUR_CURRENT_PYTHON_DIR>/site-packages/git_remote_codecommit/__init__.py
locate the line:
available_regions = [region for partition in session.get_available_partitions() for region in session.get_available_regions('codecommit', partition)]
(Added in >>>) available_regions.append("cn-north-1")
(Added in >>>) available_regions.append("cn-northwest-1") git clone codecommit::cn-northwest-1://cn-north-1@MyDemoRepo
Cloning into 'MyDemoRepo'...
remote: Counting objects: 20, done.
Unpacking objects: 100% (20/20), done. |
We setup the helper last Friday in |
It had been resolved by latest botocore. |
👍 |
AWS CodeCommit is GA in AWS China now. Pls support china regions(
cn-north-1
andcn-northwest-1
).See below error when pushing code to AWS CodeCommit in
cn-northwest-1
.AWS cli already is latest version,
The text was updated successfully, but these errors were encountered: