Advertisement
kopyl

Untitled

Jun 10th, 2023
1,139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import json
  2.  
  3.  
  4. def handler(event, context):
  5.     import os
  6.     files_and_folders = os.listdir()
  7.     return {
  8.         "headers": {"Content-Type": "application/json"},
  9.         "statusCode": 200,
  10.         "body": json.dumps(
  11.             {
  12.                 "message": "Lambda Container image invoked!",
  13.                 "event": event,
  14.                 "context": context,
  15.                 "files_and_folders": files_and_folders,
  16.             }
  17.         ),
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement