Closed zxkane closed 3 years ago
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 cn-north-1
and it worked out of the box, so it should work as well flawlessly for cn-northwest-1
.
It had been resolved by latest botocore.
:+1:
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,