Model/applications/sharepoint_renamer/local_handler/invoke_local_lambda.py
2026-06-15 15:03:07 +00:00

15 lines
319 B
Python

#!/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)