""" A quick example of lambda working a function in python """ from etl.read_stuff_from_s3_example import print_hello_from_etl_module def handler(event, context): print("Outside try statment") print_hello_from_etl_module() try: print("show me something.. anything...") s3_uri = event.get("file_location") if not s3_uri: print("failed to get s3_uri") return { "statusCode": 400, "body": "Missing 'file_location' in event" } print(f"s3 uri is {s3_uri}") return { "statusCode": 200, "body": f"s3 uri {s3_uri}" } except Exception as e: print(f"❌ Error: {e}") return { "statusCode": 500, "body": str(e) }