You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Using python-requirements plugin of Serverless Framework.# Unzipping package because 'pythonRequirements.zip' parameter is set true in # Serverless Framework# Probably, unzipping operation effects nothing. # (In case of rest_api decorator, no error raised.) try:
importunzip_requirementsexceptImportError:
passfromjeffy.frameworkimportget_appapp=get_app()
@app.handlers.s3()defhandler(event, context):
print(event['bucket_name'])
print(event['key'])
# Instead of using print method, I tried to use app.logger.info method, but the same error raised. # app.logger.info({'bucket': event['bucket_name']})
S3 handler requires s3:GetObject permission. Maybe, your function does not allow s3:GetObject.
But in that case you should get another error message. We will continue to examine why it is.
And we haven't enough information about the required permissions. So we will fix it soon.
I got an error when trying to use s3 decorator.
My code is below. (This is nearly equal to sample code in
https://github.com/serverless-operations/jeffy)
And error is the below.
Additional information:
In case of executing the code below, no error raised.
The text was updated successfully, but these errors were encountered: