-
Notifications
You must be signed in to change notification settings - Fork 701
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
China region not added? #192
Comments
Hi, have you tried running the command |
I tried using update_regions command inside pacu framework (I don't think that command works on CLI?), however China region just doesn't show up. |
To confirm the credentials you are using have access to those regions? For those regions, you need an account specifically registered in/by China. Accounts registers outside won't have access to those endpoints. |
Yes, the account is hosted on cn-north-1 and cn-northwest-1 (confirmed via AWS console). It's just that update_regions doesn't add those 2 regions. |
Thanks for the additional information. Taking a look at the update_regions() function here and I see it is pulling the regions from the file ./botocore/data/endpoints.json and writing them to the file modules/service_regions.json. While I am not sure why your botocore file does not include these regions I found a reference to the format here . It might be possible to add they regions manually but, I don't have an account with access to those regions to verify. |
I modified pacu.py update_regions() function manually and added 'aws-cn': Line 694: if partition['partition'] == 'aws' or partition['partition'] == 'aws-cn': This actually breaks things like the list command: Pacu (xxx:No Keys Set) > list [2020-07-27 11:35:58] Pacu encountered an error while running the previous command. Check sessions/xxx/error_log.txt for technical details. [LOG LEVEL: MINIMAL]
Traceback (most recent call last): It would be good to try and fix this code so the china region can be successfully added to a session. Thanks! |
any update for this issue? |
Created a PR for this issue: |
Tried to update the regions through the latest version of botocore, but cn-north-1 and cn-northwest-1 are not there.
Is there a way to manually add the region to the session? Some modules fail because there is no --region attribute on them.
Thanks!
The text was updated successfully, but these errors were encountered: