![]() ![]() However, for the sake of simplicity, in this tutorial, we’ll just create user with broad admin privileges. IAM offers the ability to create users with fine-grained control over exactly the AWS resources they need. We’re going to create an IAM user capable of interacting with Lambda and related AWS services. Create an IAM UserĪWS’s IAM manages identities in the AWS ecosystem. I won’t go into much detail on this one since this tutorial is pretty detailed. If you’ve already completed the AWS tutorial mentioned in the link above, then you can skip this section. Prep workīefore we get started, we’ll need to get our environment ready for some AWS work. If you’re ready to go step-by-step, then read on. If you just want to cut to the chase, clone this repo and try it out on Lambda. We’re just trying to stretch our knowledge of some new technologies. In all honesty, the amount of work required to create this bot isn’t worth the extremely minimal time you’ll save but, hey, it’s a tutorial. Our Slack bot will enable users to type something like a custom slash command like “/logtime” and then see a clickable button that people can use to log their time. ![]() It’s easy to forget to do this, so we’ll create a Slack bot to help remind us. ![]() The Slack bot will be simple: when users type a command, we’ll post a button for them to press.Īt Mutually Human, like many other consultancies, we track the time spent on projects. We’ll wrap the Sinatra app in some code to make it AWS Lambda-friendly. We’ll write a tiny Sinatra app that performs a basic web request to the Slack API. The goal is to get you familiar running small Ruby projects on Lambda by creating something that’s a little more sophisticated then what you’ll find in the AWS tutorial that’s provided in the AWS announcement (linked above). In this tutorial, we’ll create a basic Slack bot and run it on Lambda. This makes it ideal for microservices or any small apps that don’t warrant using a beefy framework like Rails. Lambda enables developers to generate apps that can be spun up on request and that evaporate once they’re no longer in use. There’s a lot of buzz around serverless architecture. Amazon’s recent announcement about AWS Lambda support for Ruby has a lot Rubyists excited.
0 Comments
Leave a Reply. |