Skip to content

Instantly share code, notes, and snippets.

@yogeshnile
Created February 27, 2022 16:38
Show Gist options
  • Save yogeshnile/607798eb4e7d61ca34b8c25faf8cb0d3 to your computer and use it in GitHub Desktop.
Save yogeshnile/607798eb4e7d61ca34b8c25faf8cb0d3 to your computer and use it in GitHub Desktop.
import json
import os
def lambda_handler(event, context):
FILE_NAME = '/mnt/lambda/test2.txt'
with open(FILE_NAME, "w") as F:
F.write("Hello from lambda")
os.system("ls -alth /mnt/lambda/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment