From the course: Learning Amazon Web Services (AWS) for Developers

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Events and Lambda

Events and Lambda

- [Instructor] So I want to point out a couple of things about setting up these relationships between SQS and SNS topics and Lambdas, and so forth. So when we created our SNS topic, we came to our SQS queue, selected Subscribe to Amazon SNS topic, and created the subscription. We actually could have done that right from the topic itself with "Create subscription" and specify SQS and put in the endpoint. Similarly, when we created the queue in SQS, we created the trigger from our Lambda but we could have done that right from SQS with this tab, Lambda triggers, where we create a new trigger. I'm going to click cancel here 'cause we already have this one, but I want to show you that you can basically create these relationships from either side. Another one that is really powerful, that I've mentioned before, is from DynamoDB. From a DynamoDB table, we can create a trigger to call our Lambda. So I'm going to go to my…

Contents