Skip to content

Instantly share code, notes, and snippets.

@gmm77
gmm77 / lambda-curl.py
Created May 23, 2020 04:37 — forked from thiagomgo/lambda-curl.py
A simple lambda function written in python to execute a curl command
def lambda_handler(event, context):
import subprocess
result = subprocess.call("curl -I http://foo.bar", shell=True)
return result