- From the AWS Management Console or from the AWS CLI create a simple Kinesis Stream with the name myKinesisStream. Keep the Number of shards to the default value of 1 and create the steam. Make a note of the stream ARN as that will be required in subsequent steps.
- Next, create a new SNS Topic as we performed in the earlier use case, however this time, in the Create subscription popup dialog, select the Protocol as Email as shown in the image below. This will enable our Lambda function to send out email based alerts whenever it gets an error log from our Kinesis Stream:

With this basic setup completed, move on to configuring our EC2 instance to send logs to this stream.