Open jneves opened 3 years ago
Same problem here, but on update and with the current latest (Zappa 0.57.0) on Lambda Python 3.9 runtime.
up, py3.12 zappa from master
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
I have not seen the problem any more, while a regular user. Is this okay to close, or anyone still blocked?
Originally from: https://github.com/Miserlou/Zappa/issues/1946 by ebridges
When enabling logging using the setting
cloudwatch_log_level
an exception will get thrown if the API Gateway Settings has not configured an ARN with permissions to write to Cloudwatch.Exception encountered (stack trace below):
Expected Behavior
Deploy should be successful
Actual Behavior
This exception is thrown:
Possible Fix
Example of how to set the value using AWS CLI: https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-account.html#examples
Boto method that should be used to do the update to the account: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigateway.html#APIGateway.Client.update_account
Steps to Reproduce
cloudwatch_log_level
tozappa_settings.json
zappa deploy [stage]
Your Environment
0.48.2
3.7
Amazon Linux AMI release 2018.03
pip freeze output
``` argcomplete==1.9.3 boto3==1.9.243 botocore==1.12.243 CacheControl==0.12.5 cachy==0.2.0 certifi==2019.9.11 cfn-flip==1.2.1 chardet==3.0.4 cleo==0.6.8 Click==7.0 defusedxml==0.6.0 Django==2.2.6 django-allauth==0.40.0 django-dotenv==1.4.2 django-sslserver==0.21 django-storages==1.7.2 djangorestframework==3.10.3 docutils==0.15.2 durationpy==0.5 future==0.16.0 gunicorn==19.9.0 hjson==3.0.1 html5lib==1.0.1 idna==2.8 jmespath==0.9.3 jsonschema==3.1.1 kappa==0.6.0 lambda-packages==0.20.0 lockfile==0.12.2 msgpack==0.6.2 oauthlib==3.1.0 pastel==0.1.1 placebo==0.9.0 poetry==0.12.17 psycopg2-binary==2.8.3 pylev==1.3.0 pyrsistent==0.14.11 python-dateutil==2.6.1 python-slugify==1.2.4 python3-openid==3.1.0 pytz==2019.3 PyYAML==5.1.2 requests==2.22.0 requests-oauthlib==1.2.0 s3transfer==0.2.1 shellingham==1.3.1 six==1.12.0 sqlparse==0.3.0 toml==0.10.0 tomlkit==0.5.8 tqdm==4.19.1 troposphere==2.5.2 Unidecode==1.1.1 urllib3==1.25.6 Werkzeug==0.16.0 wsgi-request-logger==0.4.6 zappa==0.48.2 ```Output of `uname -a`
`Linux cc900f5afd54 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`