1 00:00:00,000 --> 00:00:01,920 ‫So, here is a very quick lecture 2 00:00:01,920 --> 00:00:04,590 ‫on CloudFormation Stack Notifications. 3 00:00:04,590 --> 00:00:07,260 ‫So, you can set up a way for you to have all 4 00:00:07,260 --> 00:00:10,890 ‫the Stack events being sent to an SNS Topic, 5 00:00:10,890 --> 00:00:13,470 ‫from which you can hook it up to your email 6 00:00:13,470 --> 00:00:15,150 ‫or Lambda and so on. 7 00:00:15,150 --> 00:00:16,860 ‫So, what you're to do is that whenever you 8 00:00:16,860 --> 00:00:18,630 ‫create a CloudFormation Stack, 9 00:00:18,630 --> 00:00:22,680 ‫you go in the Stack Options and you enable SNS Integration. 10 00:00:22,680 --> 00:00:26,460 ‫And from that point forward, any event happening 11 00:00:26,460 --> 00:00:29,670 ‫to your CloudFormation Stack, such as what is being created, 12 00:00:29,670 --> 00:00:32,940 ‫updated, deleted, or anything happening to it 13 00:00:32,940 --> 00:00:35,760 ‫will be sent as a notification into the designated 14 00:00:35,760 --> 00:00:39,990 ‫SNS Topic and if you wanted to filter the events, 15 00:00:39,990 --> 00:00:42,300 ‫the way you could do it or one way you could do it 16 00:00:42,300 --> 00:00:45,030 ‫is that because CloudFormation Stack sends all the events 17 00:00:45,030 --> 00:00:46,980 ‫to your SNS Topic no matter what, 18 00:00:46,980 --> 00:00:49,140 ‫you could, for example, have a Lambda function 19 00:00:49,140 --> 00:00:50,880 ‫that reads from your SNS Topic 20 00:00:50,880 --> 00:00:53,310 ‫and then is going to filter only for specific 21 00:00:53,310 --> 00:00:54,330 ‫kind of events. 22 00:00:54,330 --> 00:00:56,417 ‫For example, ROLLBACK_IN_PROGRESS and then send 23 00:00:56,417 --> 00:00:59,850 ‫these events into another SNS topic 24 00:00:59,850 --> 00:01:01,787 ‫from which you can, for example, send an email notification 25 00:01:01,787 --> 00:01:05,490 ‫to users saying that hey, there's a rollback happening 26 00:01:05,490 --> 00:01:07,440 ‫for your CloudFormation Stack. 27 00:01:07,440 --> 00:01:08,940 ‫Okay, so that's it for this lecture. 28 00:01:08,940 --> 00:01:11,973 ‫I hope you liked it and I will see you in the next lecture.