- Le plus récent
- Le plus de votes
- La plupart des commentaires
The lambda_handler is missing.
def lambda_handler(event, context):
get_secret()
What is printed?
Is your function attached to a VPC? If so, do you have a NAT Gateway or a VPC Endpoint for Secrets Manager?
No, the function is not connected to any VPC. The Key Values are stored in the secrets manager contains parameters for creating a URL request.
Hi everyone, We are trying to access REST end point and execute a GET request to receive JSON files from it. we are using AWS secrets to store the parameter of the request. We have two questions:
a) We are successful to get the result in Function Logs but unable to import the requests module. errorMessage": "name 'requests' is not defined". We even tried to use Pip install in console as from boot import is no more allowed. Is their any workaround.
b) Now if we fire this Getrequest end point from AWS, it will return JSON files, how to handle and store that inside AWS.
Regards
Arun
You will need to use Lambda Layers with the packages you need and use that layer as part of your build process
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a un mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 mois
The Lambda handler was already present in the Code in the Last line. Due to copy paste it may not be viewed properly. Even though Lambda handler was present , I am unable to retrieve the keys.
def lambda_handler(event, context): ms=get_secret(); print(ms)