In this video, we are going to publish message from the Amazon sans topic and these will be subscribed
from the lambda and we will see lambda execution log from the Amazon Cloud Watch logs.
So let's get started.
For that purpose, please open the A management console and go to the SAS topics and open the outgoing
notification and you can see the publish message button in here.
Click the publish message and give.
The subject is a gold.
And you can give the random message in the body information.
We provide the subject and the body information, and if you scroll down, we can publish a message,
click the publish message, and we have successfully publishing message to Amazon sans topic, which
is the goal notification.
And this will be consumed by the subscriptions subscribers and our subscriber is the ADA, which is
Lambda.
If you go to the ADA Lambda open the goal function and go to monitor and we include voice logs.
We should see the execution invocation.
Yes.
As you can see that we have a one log stream.
And if you open this log stream, you can see the incoming event, JSON from the SNS topic and this
is the details about the topic.
This is a notification message did topic and subject and the message we can see the subject and message
that we send from the SMS topic and this is the execute our lambda function and we basically log the
incoming event JSON and write down the message into our logs.
So as you can see that we have finished our hands on lab, we can extend this lab, for example, we
can insert incoming notification into Dynamo DB table or send it to the case and so on.
We will do implement these kind of hansen-love in the upcoming sections, but now it is enough for now.