In this video we are going to publish message to topic on Amazon.
Since using the PlayStation console in order to receive a message published to the topic, we have to
subscribe an end point to the topic.
So when we subscribe an endpoint to the topic, the endpoint begins to receive message publish to the
associated topic.
So in the last video, if you remember that we have created a subscription to our topic, which is the
email, and we expect that if we send a message to our topic, this will be consumed from our email
provider.
So let's publish a message to the topic using the main console.
Please open the management console.
Go to the topic that we have created and after open the topic page, you can see in here there is a
publish message button.
But before that I would like to show you one important thing.
If you scroll down after the open the topic and come to subscription page, you can see the list of
the subscriptions as you remember that in the last video we have added and this topic with our email
address.
But this status is pending confirmation.
So that means we have to confirm this subscription to the topic and after that we can receive the message
from the publishers due to this topic.
So for that purpose, open the our type mail and open the mail that you can see a notification from
the subscription confirmation and open this mail.
And after that, click the confirm subscription button.
So after confirming the subscription, you can see the message in here.
Subscription is confirmed.
And if you come back to our topic and refresh our page, you can see that our subscription is ready
to get received message.
So now we can publish message to this topic that received from the our email address.
If you come to the topic and click the publish message, you can see the configurations of the published
message to this topic.
So we basically give the subject as a hello and if you scroll down we can see the message button.
You can give the raw message body in here.
If you click this custom payload, you can see the example payload to the different services that consume
from this topic.
But since we are basic email subscriber, we can give the email.
Subscriber message.
Two topic.
I have provided a random string message to our email address.
If you scroll down, I'm not going to give any of it, but you can set some of the type of the attributes
one publishing message.
So if you click the publish message, you can see that the message published to our topic, which is
the my topic successfully, you can see the message ID and the request ID.
So now we are going to wait for the receiving this message from our subscribers, which is our end point
of the email address.
After I have tried a several time and send and publish message to our topic, I have successfully managed
to get email from the alias.
As you can set, the subject is hello test and if you open this message, the message, the mail comes
from the Amazon and you can see the details about our topic and so on.
So as you can see that we have successfully subscribed and publish message to our topic in the next
video, we are going to delete our subscriptions and delete our topic from the.