Closed roguewindrunner closed 1 week ago
@roguewindrunner
The content of index.mjs
looks like that because under the hood esbuild
is used to minify the code and bundle dependencies. This is expected.
The error you're observing is most likely due to some bug in post confirmation lambda code or wrong configuration of that lambda (permissions?).
It might be worth to inspect that lambda's logs in AWS Console to see what actual error is.
If this doesn't help please share zip with an app that reproduces your problem if possible.
I see. I ended up playing around with the Node runtime version and got it working. Thank you for the guidance and help.
Hey @roguewindrunner, glad to hear you were able to mitigate the issue. Wanted to get some additional information on the issue. Did you observe any error messages in the CloudWatch function logs? New runtime the function was updated to?
Closing the issue due to inactivity. Do reach out if you are still experiencing this issue.
Environment information
Description
I tried following the documentation for creating a user profile record with post-confirmation trigger with some modification to the data to conform to what I need. The sandbox showed no error during deployment, but when after signing up and confirming it showed the following error:
So I checked the lambda function associated with the trigger and found that these were generated inside the index.mjs file:
index.mjs:![image](https://github.com/user-attachments/assets/44a75f19-8ecc-439b-a9d8-c20471195d22)
index.mjs.map:![image](https://github.com/user-attachments/assets/9d79735e-3c57-43e7-a618-6148c895561a)
Those doesn't seem like something that should be inside an .mjs file.
Thank you in advance for the assistance
Misc
Folder Structure