Skip to content
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

Uncaught Exception Cannot find module aws-sdk #229

Open
uyuyangezgin opened this issue Feb 28, 2024 · 0 comments
Open

Uncaught Exception Cannot find module aws-sdk #229

uyuyangezgin opened this issue Feb 28, 2024 · 0 comments

Comments

@uyuyangezgin
Copy link

Hi All,

I try to create AWS ses-bounce-complaint-reports via CloudFormation. It gets some errors related to nodejs (nodejs16.x,nodejs18.x, and nodejs20.x) and python runtime (python3.9).

https://github.com/awslabs/aws-support-tools/blob/master/SES/SESReports/ses-reports.yaml

{ "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module 'aws-sdk'\nRequire stack:\n- /var/task/index.js\n- /var/runtime/index.mjs", "stack": [ "Runtime.ImportModuleError: Error: Cannot find module 'aws-sdk'", "Require stack:", "- /var/task/index.js", "- /var/runtime/index.mjs", " at _loadUserApp (file:///var/runtime/index.mjs:1087:17)", " at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)", " at async start (file:///var/runtime/index.mjs:1282:23)", " at async file:///var/runtime/index.mjs:1288:1" ] }

[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'index': invalid syntax (index.py, line 22) Traceback (most recent call last): File "/var/task/index.py" Line 22 print 'Exception occured :' + str(e)

Could you help me with this case?
Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant