#!/bin/bash

set -e

DATA=$(cat $1)

curl --request POST \
    -s \
    --url http://localhost:9000/2015-03-31/functions/function/invocations \
    --header "Content-Type: application/json" \
    --data "$DATA" | jq
