Module 5 - Lambda Function Permissions #145
Replies: 5 comments 38 replies
-
Bumping this! I'd appreciate any help you can provide. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay @cjbrew. @SissiFeng can you help with this? |
Beta Was this translation helpful? Give feedback.
-
I am sorry for the problem you are experiencing. Let me explain the current situation and solution in detail:
We've recently made an important update to our job architecture: instead of using AWS API Gateway + Lambda, we've switched to using PyMongo to connect directly to MongoDB. this change has the following benefits:
2.1. Connection string fetching
These variables need to be set in:
Connect to MongoDBclient = MongoClient(MONGODB_URI) Verify connectiontry. Other code...If you are still experiencing problems:
Please be sure to complete the suggestions I've given above and perform a full debug. If you still encounter problems, please describe in detail the chokepoints you encountered (preferably with screenshots), so that I can debugging for you. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @cjbrew, I've been following this thread. @SissiFeng thanks for giving it a go - I'll handle it from here. @cjbrew I'll try to get back to you by tomorrow. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I've been working on the Data Logging module for a while now, and I've realized that while my code is successfully sending data to the API gateway, the lambda function cannot recognize pymongo. I've been working to solve this issue using Copilot, and it looks like the issue may be that the function does not have the correct permissions to access MongoDB. The instructions say we need to do this, but do not provide any details as to what permissions are necessary. Can you please clarify?
Thanks,
Conor
Beta Was this translation helpful? Give feedback.
All reactions