Testing Our Serverless Slack Dicebot with Docker Locally

Testing Our Serverless Slack Dicebot with Docker Locally#

As we did in the Test hello_world step above, let's test our new events!

Remember to execute this command from the dicebot directory, and not the first_function or events directory!

Great, so the output shows a statusCode of 200 was returned when valid input was given, and statusCode of 400 when invalid input was given. If the function was to fail for a reason besides invalid input or output, we would expect to see a status code of 500 returned. If that happens, it means we messed up somewhere in our function code and need to check the log output!

Deploy dicebot to AWS#

No discussions yet