Daily Goal – Ch. 8 Application Services; HOL Create A Simple Lambda Function, HOL Create An Event-driven Application
HOL #1 – Create a Simple Lambda Function
HOL #2 – Create an Event-driven, Serverless Application
Event-driven = An event in one resource leads to an event, or action, in another resource
I am going to break this assignment into two sections. First, I will create a Lambda function that will, upon invocation, write a message from SQS to Cloudwatch Logs. Next, I will create a SQS message with a Lambda trigger attached to it. Then, I will send a test message from SQS, invoking the Lamda function to pass that message on to Cloudwatch Logs.
If that part of the application works successfully, I create an SNS topic that will be subscribed to by SQS. The idea here is that when a user submits a new notification/message to that SNS topic, SNS will relay that message to SQS, which will in turn trigger the invocation of the attached Lambda function, which will relay and publish that message to Cloudwatch Logs.