mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
The s3 endpoint in China is under a different DNS TLD: amazonaws.com.cn.
This commit is contained in:
parent
6168717ba9
commit
047920b120
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ class UploadImage(Task):
|
|||
manifest_file = os.path.join(info.bundle_path, info.ami_name + '.manifest.xml')
|
||||
if info.host['region'] == 'us-east-1':
|
||||
s3_url = 'https://s3.amazonaws.com/'
|
||||
elif info.host['region'] == 'cn-north-1':
|
||||
s3_url = 'https://s3.cn-north-1.amazonaws.com.cn'
|
||||
else:
|
||||
s3_url = 'https://s3-{region}.amazonaws.com/'.format(region=info.host['region'])
|
||||
log_check_call(['/usr/bin/euca-upload-bundle',
|
||||
|
|
Loading…
Add table
Reference in a new issue