Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-toms/62bfd3a8c7a34bab4702a24c6297693a to your computer and use it in GitHub Desktop.
Save a-toms/62bfd3a8c7a34bab4702a24c6297693a to your computer and use it in GitHub Desktop.
# Replace this with an environment variable in production. - ## 4.2 Run your serverless function locally
Event = {'body': {'task_id': 1}, 'httpMethod': 'POST'}
Received task_id 1
Completed task_id 1
END RequestId: ac4d9b48-9675-4513-881b-d5a89d801035
REPORT RequestId: ac4d9b48-9675-4513-881b-d5a89d801035 Init Duration: 0.76 ms Duration: 3895.27 ms Billed Duration: 3896 ms Memory Size: 128 MB Max Memory Used: 128 MB
{"status_code": 404, "body": "{\"status\": \"task does not exist\"}"}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment