Running and testing AWS Lambda container images locally

If you are packaging a Lambda as a Docker container image, to run locally start with: docker run -p 9000:8080 your-image-name And then to test you can post requests to the running container with curl: curl -XPOST “http://localhost:9000/2015-03-31/functions/function/invocations” -d ‘{ “example”: “value” }’

Restructuring / refactoring my Mastodon ZorkBot

Now my ZorkBot is working over at @zorkbot@botsin.space I’ve restructured the 3 Lambdas so it’s easier to follow what calls what. In it’s current/initial working state, I built it with 3 AWS Lambdas: mastodon-zorkbot This Lambda runs every 5 minutes, checking for players messaging the bot The Lambda is deployed as: mastodonbot-zorkbot-dev-mastodon-reply mastodonbot-aws-sdk2 This Lambda …