Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant