This is based on the aws documentation on Runtime Interface Emultor (RIE)
To build the image run
docker compose up
After container has built successfully open a separate terminal window and curl
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"name":<yourName>}'
Substitute <yourName>
with your name ๐
NB: Postman can also be used