#!/usr/bin/env python3 import requests HOST = "localhost" PORT = "9003" LAMBDA_URL = f"http://{HOST}:{PORT}/2015-03-31/functions/function/invocations" payload = {"dry_run": True} response = requests.post(LAMBDA_URL, json=payload) print("Status code:", response.status_code) print("Response:") print(response.text)