Support for AWS China region
Opened this issue · 1 comments
linjungz commented
Context
Zappa currently doesn't support AWS China region. We would like to use it for AWS China region, especially for Ningxia Region. You could kindly refer to this issue: #1564
Expected Behavior
Support for AWS China region.
Actual Behavior
Currently it doesn't support China region as arn format is different in AWS China region.
Possible Fix
- Service availablity: Route53/ACM/Lambda EnvironmentVariablesFeature/Cloudfront are all available now in China region
- As suggested in issue #1977 , need to fix core.py as partition in arn is "arn-cn" in China region.
Steps to Reproduce
Deploy zappa for China region
Your Environment
- Zappa version used: 0.51.0
- Operating System and Python version: MacOS, Python 3.8.5
- The output of
pip freeze
:
acme==1.7.0
appdirs==1.4.4
argcomplete==1.12.0
boto3==1.14.38
botocore==1.17.38
certbot==1.7.0
certbot-s3front==0.4.2
certifi==2020.6.20
cffi==1.14.1
cfn-flip==1.2.3
chardet==3.0.4
click==7.1.2
ConfigArgParse==1.2.3
configobj==5.0.6
cryptography==3.0
distlib==0.3.1
distro==1.5.0
docutils==0.15.2
durationpy==0.5
filelock==3.0.12
future==0.18.2
hjson==3.0.1
idna==2.10
Jinja2==2.11.2
jmespath==0.10.0
joblib==0.16.0
josepy==1.3.0
kappa==0.6.0
livereload==2.6.2
lunr==0.5.8
Markdown==3.2.2
MarkupSafe==1.1.1
mkdocs==1.1.2
mkdocs-material==5.5.3
mkdocs-material-extensions==1.0
mock==4.0.2
nltk==3.5
parsedatetime==2.6
pip-tools==5.3.1
placebo==0.9.0
pycparser==2.20
Pygments==2.6.1
pymdown-extensions==7.1
pyOpenSSL==19.1.0
pyRFC3339==1.1
python-dateutil==2.6.1
python-slugify==4.0.1
pytz==2020.1
PyYAML==5.3.1
regex==2020.7.14
requests==2.24.0
requests-toolbelt==0.9.1
s3transfer==0.3.3
six==1.15.0
text-unidecode==1.3
toml==0.10.1
tornado==6.0.4
tqdm==4.48.2
troposphere==2.6.2
urllib3==1.25.10
virtualenv==20.0.30
Werkzeug==0.16.1
wsgi-request-logger==0.4.6
zappa==0.51.0
zope.component==4.6.2
zope.deferredimport==4.3.1
zope.deprecation==4.4.0
zope.event==4.4
zope.hookable==5.0.1
zope.interface==5.1.0
zope.proxy==4.3.5 - Your
zappa_settings.json
:
{
"dev": {
"app_function": ".",
"aws_region": "cn-north-1",
"profile_name": "cnlab",
"project_name": "zappa",
"runtime": "python3.8",
"s3_bucket": "zappa-a9i8ftiq0"
}
}
linjungz commented
Hi, could someone take a look at this issue? Thanks