December 2019
Intermediate to advanced
382 pages
9h 43m
English
To write and deploy our Slackbot, we are going to use Serverless Framework. This is quite suitable because, as you saw in the architecture diagram, we're essentially only building an API that has a different use case. We'll also need to create some integration points for our chatbot service that will be triggered and respond to Slack, so let's do that first.
When asked, our bot's brain is going to respond with a list of ingress ports that are open on a given EC2 instance. For this to work, the brain needs to check the security groups connected to the instance, assemble a list of open ingress ports, and respond appropriately.