{"id":4526,"date":"2016-04-08T05:44:56","date_gmt":"2016-04-08T05:44:56","guid":{"rendered":"http:\/\/blog.cloudthat.com\/?p=4526"},"modified":"2024-06-25T11:12:49","modified_gmt":"2024-06-25T11:12:49","slug":"schedule-and-configure-lambda-to-notify-you","status":"publish","type":"blog","link":"https:\/\/www.cloudthat.com\/resources\/blog\/schedule-and-configure-lambda-to-notify-you","title":{"rendered":"Schedule and Configure Lambda to Notify you.."},"content":{"rendered":"<p>In the era of Dev-ops, continuous integration and deployment, \u00a0AWS Lambda provides you with various features, that will help you automate your needs. Lambda \u00a0is a compute service from Amazon Web Services, which performs actions on various available services of AWS, based on the program code that you upload for execution. It can be triggered by events or with a scheduled event provided by CloudWatch.<\/p>\n<p>In this blog, we are going to see step-by-step process of<\/p>\n<ul>\n<li>Creating Lambda Function<\/li>\n<\/ul>\n<ul>\n<li>Integrating Lambda With CloudWatch (Scheduled Event)<\/li>\n<\/ul>\n<ul>\n<li>Creating SNS Topic and Subscriptions<\/li>\n<\/ul>\n<ul>\n<li>Integrating CloudWatch With SNS<b>\u00a0<\/b>for Notification<\/li>\n<\/ul>\n<p><strong>Why use Lambda?<\/strong><\/p>\n<p>Lambda will be an effective solution, when there are events that are need to be performed in a periodic manner. It will also help in infrastructure automation.<\/p>\n<p><strong>Example Use Cases.<\/strong><\/p>\n<ul>\n<li>Taking AMIs or Snapshots in a regular interval of time.<\/li>\n<\/ul>\n<ul>\n<li>Adding 2 servers morning at 8.00am when no of servers running is lesser than 30. etc,.<\/li>\n<\/ul>\n<p><strong>Cost Comparision<\/strong><\/p>\n<p>For a scheduled running of a program that triggers the API&#8217;s, a dedicated Linux Cron machine is commonly used.<\/p>\n<p>Though the program runs few times a day, the instance must be running throughout the year.<\/p>\n<p><b>Cost of a (t1.micro) EC2 machine running for a month = $ 14.64 <\/b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4539\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/m1.png\" alt=\"m1\" width=\"2622\" height=\"1050\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Cost of running the same for a year =$ 14.64 * 12 = $ 175.56 <\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4538\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/AAEAAQAAAAAAAAjEAAAAJDNhNjBjOWUwLTk3YTYtNDEzZS1hODhjLTYwNDE0Yzc0ZWM4Zg.png\" alt=\"g\" width=\"1237\" height=\"691\" \/><\/p>\n<p><b>Points to Ponder<\/b><\/p>\n<ul>\n<li><strong>You are responsible for your Linux Cron instance and must take necessary steps for Scaling, Patching, Administration<\/strong><\/li>\n<\/ul>\n<ul>\n<li><strong>You must also ensure that, another machine is backing up when cron instance goes down.<\/strong><\/li>\n<\/ul>\n<p>Most often, when your Lambda function runs for few minutes, few times a day, it will come under the free tier*.<\/p>\n<p>For Lambda Pricing and free tier information, click the following link.<\/p>\n<p><a href=\"https:\/\/aws.amazon.com\/lambda\/pricing\/\">https:\/\/aws.amazon.com\/lambda\/pricing\/<\/a><\/p>\n<p><b>Creating Lambda Function<\/b>[showhide type=&#8221;qs&#8221; more_text=&#8221;For Steps to Create A Lambda function, Click Here&#8221; less_text=&#8221;Hide Details&#8221; hidden=&#8221;yes&#8221;]<\/p>\n<p><b>Step 1:<\/b> In the AWS Dashboard, Click <b>Lambda<\/b> to get into the Lambda Console. <a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/147.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4497\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/147.png\" alt=\"1\" width=\"2703\" height=\"1563\" \/><\/a><\/p>\n<p><b><\/b> <b>Step 2: <\/b>\u00a0Click the <b>Get Started Now <\/b>button to create a Lambda Function.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/220.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4498\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/220.png\" alt=\"2\" width=\"3374\" height=\"1755\" \/><\/a><\/p>\n<p><b>Step 3: \u00a0<\/b>There are various inbuilt Lambda Functions that can be utilized. Also, specify the type of <b>Language <\/b>you want to choose from. If you want to use your own Lambda Function, click the <b>Skip <\/b>button in the bottom right corner.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/318.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4499\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/318.png\" alt=\"3\" width=\"2851\" height=\"1793\" \/><\/a> <b>Step 4: <\/b>\u00a0Enter the <b>Name <\/b>you want to provide to \u00a0Lambda Function along with <b>Description. <\/b>You will have to choose the method by which you want to use your program code. In our case, we are using the <b>Edit code inline <\/b>option. You will have to use <b>Upload a .Zip<\/b> file or <b>Upload a .Zip from Amazon S3 <\/b>if you have dependencies in your program.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/48.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4500\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/48.png\" alt=\"4\" width=\"2769\" height=\"883\" \/><\/a><\/p>\n<p><b>Step 5: <\/b>You must choose a Lambda Role for authorization, that will \u00a0perform the actions you want via the code you provide. You must provide necessary permissions by creating a new role in IAM, for Lambda to access SNS, CloudWatch and EC2. Choose <b>VPC <\/b>if you require. Click <b>Next <\/b>complete creation of Lambda Function.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/test-prep-e1477043709154.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4501\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/test-prep-e1477043709154.png\" alt=\"5\" width=\"2348\" height=\"1138\" \/><\/a><\/p>\n<p>[\/showhide]<\/p>\n<p><strong>Important Note:<\/strong><\/p>\n<ul>\n<li><strong>Although AWS Lambda can perform actions in various regions, CloudWatch and Lambda are region-specific.<\/strong><\/li>\n<\/ul>\n<ul>\n<li><strong>So make sure that CloudWatch Rule is in the same region, with the created Lambda Function.<\/strong><\/li>\n<\/ul>\n<p><b>Integrating Lambda With CloudWatch<\/b><\/p>\n<p>Although, Lambda is basically Event-driven, Lambada can also be <b>Scheduled<\/b> to take place in a particular time or particular interval of time.<\/p>\n<p><strong><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/67.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4502\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/67.png\" alt=\"6\" width=\"490\" height=\"295\" \/><\/a>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/strong><\/p>\n<p><strong>\u00a0\u00a0<\/strong><\/p>\n<p><span id=\":1ry\" dir=\"ltr\" style=\"color: #222222;\">[showhide type=&#8221;qp&#8221; more_text=&#8221;For Steps to Create a Scheduled Event, Click Here&#8221; less_text=&#8221;Hide Details&#8221; hidden=&#8221;yes&#8221;]<\/span><\/p>\n<p><b>Step 1: <\/b>To Configure, click the <b>CloudWatch<\/b> Service from the AWS dashboard.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/77.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4503\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/77.png\" alt=\"7\" width=\"3825\" height=\"1619\" \/><\/a><\/p>\n<p><b>Step 2: \u00a0<\/b>Click <b>Create Rule <\/b>in the Events Tab to create an event.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/910.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4505\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/910.png\" alt=\"9\" width=\"3815\" height=\"1700\" \/><\/a><\/p>\n<p><b>Step 3: \u00a0<\/b>Click <b>Schedule <\/b>in the <b>Select event source<\/b> tab. The Event Selector is the source for invoking the target.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/106.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4506\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/106.png\" alt=\"10\" width=\"3812\" height=\"1265\" \/><\/a><\/p>\n<p><b>Step 4: \u00a0<\/b>Click in the <b>Fixed Rate of<\/b> tab and also select Interval Period. It may be the frequency in <b>Minutes, Hours or Days. <\/b>You can \u00a0also specify a Simple Cron Expression. Click <b>Add target <\/b>button from the Targets tab.<\/p>\n<p>For more information on how to schedule an event based on specific time, please click the following link<\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/DeveloperGuide\/ScheduledEvents.html\">https:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/DeveloperGuide\/ScheduledEvents.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/1113.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4507\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/1113.png\" alt=\"11\" width=\"3810\" height=\"1701\" \/><\/a><\/p>\n<p><b>Step 5: \u00a0<\/b>From the Targets Section, Click <b>Select target type <\/b>and select <b>Lambda function. <\/b>Click <b>Configure details<\/b> to proceed.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/1210.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4479\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/1210.png\" alt=\"12\" width=\"3821\" height=\"1702\" \/><\/a><\/p>\n<p><b>Step 6: <\/b>Enter the <b>Name and Description<\/b> and check the <b>status <\/b>if it is enabled. Click <b>Create rule <\/b>to complete the rule creation. \u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4483\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/163.png\" alt=\"16\" width=\"3840\" height=\"1710\" \/><\/p>\n<p>[\/showhide]<\/p>\n<p><b>Integrating CloudWatch With SNS<\/b><\/p>\n<p>CloudWatch can trigger SNS, if an event is completed or when there is a change in the state of EC2 or when an action is performed in Auto Scaling Group or even when an API call.<\/p>\n<p><b>For example<\/b>, we are configuring SNS \u00a0to send Email and Email-Json notification when a Lambda function gets executed or when an event is completed successfully.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/222.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4489\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/222.png\" alt=\"22\" width=\"646\" height=\"441\" \/><\/a> <b>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/b><\/p>\n<p><span id=\":1ry\" dir=\"ltr\" style=\"color: #222222;\">[showhide type=&#8221;qq&#8221; more_text=&#8221;For Steps to Create an SNS Topic with Subscriptions, Click Here&#8221; less_text=&#8221;Hide Details&#8221; hidden=&#8221;yes&#8221;]<\/span><\/p>\n<p><b>Step 1: \u00a0<\/b>Select <b>SNS<\/b> from the AWS services dashboard for creation of \u00a0SNS Topic. <a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4491\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture7.png\" alt=\"Capture\" width=\"2884\" height=\"1572\" \/><\/a> <b>Step 2: \u00a0<\/b>Select <b>Create Topic <\/b>from SNS Home tab<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/173.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4484\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/173.png\" alt=\"17\" width=\"3809\" height=\"1704\" \/><\/a><\/p>\n<p><b>Step 3: \u00a0<\/b>Enter the <b>Topic name <\/b>and <b>Display name <\/b>and click<b> Create Topic <\/b>button.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/182.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4485\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/182.png\" alt=\"18\" width=\"3797\" height=\"1695\" \/><\/a><\/p>\n<p><b>Step 4: \u00a0<\/b>Click <b>Create Subscription <\/b>in the Subscriptions tab<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/192.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4486\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/192.png\" alt=\"19\" width=\"3835\" height=\"1702\" \/><\/a><\/p>\n<p><b>Step 5: \u00a0<\/b>Select the type of Protocol by which you want to notify. The protocols are<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><b>Email &#8211;<\/b> Normal Mail format<\/li>\n<li><b>Email-JSON &#8211;<\/b> You will get the data in Key-Value pairs<\/li>\n<li><b>Amazon SQS &#8211; <\/b>\u00a0You can forward the output to Amazon Queue for further operations<\/li>\n<li><b>HTTP, HTTPS &#8211; <span style=\"font-weight: 400;\">You can use these protocols for web page operations such as POST etc.<\/span><\/b><\/li>\n<li><strong>Application<\/strong> &#8211; You can forward the data to an application.<\/li>\n<li><strong>AWS Lambda<\/strong> &#8211; You can also invoke Lambda Function.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/232.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4490\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/232.png\" alt=\"23\" width=\"3810\" height=\"1710\" \/><\/a><\/p>\n<p><strong>Step 6:<\/strong> Create the Subscription under a specific Topic or manually enter <b>Topic ARN<\/b>. Select <b>Email <\/b>from the Protocol drop-down menu.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/203.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4487\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/203.png\" alt=\"20\" width=\"3718\" height=\"1733\" \/><\/a><\/p>\n<p><b>Step 7: <\/b>You will receive a <b>PendingConfirmation<\/b> message. You can confirm either by activating subscription by clicking the link received via e-mail or manually clicking <b>Confirm Subscription <\/b>or providing <b>Subscription confirmation URL. <\/b>Click <b>Confirm Subscription.<\/b><\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/219.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4488\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/219.png\" alt=\"21\" width=\"3767\" height=\"1727\" \/><\/a><\/p>\n<p>[\/showhide]<\/p>\n<p><b>Important Note:<\/b><\/p>\n<ul>\n<li><b>CloudWatch is region-specific. So make sure that CloudWatch Rule is in the same region, with the created SNS Topics.<\/b><\/li>\n<\/ul>\n<ul>\n<li><b>If Lambda performs events in various regions, CloudWatch and SNS have to be created for every region to get all notifications<\/b><\/li>\n<\/ul>\n<p><strong>Configuring CloudWatch to Trigger SNS<\/strong><\/p>\n<p><span style=\"color: #222222;\">[showhide type=&#8221;qr&#8221; more_text=&#8221;For Steps to Configure CloudWatch with SNS, Click Here&#8221; less_text=&#8221;Hide Details&#8221; hidden=&#8221;yes&#8221;]<\/span><\/p>\n<p><strong>Step 1<\/strong>: Click <b>Create Rule <\/b>in the Events Tab to create an event.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4505\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/910.png\" alt=\"9\" width=\"3815\" height=\"1700\" \/><\/p>\n<p><b>Step 2: \u00a0\u00a0<\/b>Select \u00a0the <b>Service name <\/b>from the various available services.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4492\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture12.png\" alt=\"Capture1\" width=\"3821\" height=\"1708\" \/><\/a><\/p>\n<p><b>Step 3: \u00a0<\/b>Click <b>Any Operation <\/b>if you want to get notifications for all operations. <b>\u00a0<\/b>Click <b>Specific operation(s)<\/b> option, if you want to notify for a specific action. <b>For example,\u00a0<\/b><b>consider a scenario where when you create an AMI for an EC2 instance, and you want to get notified.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4493\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture23.png\" alt=\"Capture2\" width=\"3840\" height=\"1700\" \/> \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4494\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture31.png\" alt=\"Capture3\" width=\"3825\" height=\"1687\" \/><\/p>\n<p><b>Step 4: <\/b>From the various events, select <b>CreateImage <\/b>event and also select <b>SNS Topic<\/b> in the <b>Targets<\/b> section. From the drop-down menu, select the SNS topic you have created. Click <b>Configure details <\/b>to create the rule<b>.<\/b> \u00a0 <b> \u00a0<\/b><\/p>\n<p>You can <b>Configure input <\/b>of the Targets for <b>SNS Topic<\/b>, to get<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>The <b>Matched event<\/b> from the Event Selector.<\/li>\n<li><b>Part of the matched event <span style=\"font-weight: 400;\">that you can specify.<\/span><\/b><\/li>\n<li>Constant (JSON text) , wherein which we will always get the text we have provided.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4495\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture41.png\" alt=\"Capture4\" width=\"3822\" height=\"1698\" \/><\/p>\n<p><b>S<\/b><b>tep 5: <\/b>After configuring, we can notice all the rules we have configured. In this case, rules have been created for <b>Creation and De-register of AMI (Image) and Deletion of a snapshot.<\/b><\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture61.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4496\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/Capture61.png\" alt=\"Capture6\" width=\"3838\" height=\"1706\" \/><\/a><\/p>\n<p>[\/showhide]<\/p>\n<p>You will receive mail with many parameters, that will help you identify how the lambda function got invoked and other key attributes, to the configured mail account. It will help you to analyze your logs and keep track of events.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4540\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/m.png\" alt=\"m\" width=\"2579\" height=\"1022\" \/>Thus, whenever Lambda gets triggered in a scheduled manner through CloudWatch, we will receive notification.<\/p>\n<p><b>Please comment and share if you like the article. Feel free to ask your questions and provide your valuable suggestions below.<\/b> <b>\u00a0<\/b><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":219,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"open","template":"","blog_category":[3804,3623,3606,3607,3820],"user_email":"prarthitm@cloudthat.com","published_by":"324","primary-authors":"","secondary-authors":"","acf":[],"_links":{"self":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog\/4526"}],"collection":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/users\/219"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/comments?post=4526"}],"version-history":[{"count":2,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog\/4526\/revisions"}],"predecessor-version":[{"id":46180,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog\/4526\/revisions\/46180"}],"wp:attachment":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/media?parent=4526"}],"wp:term":[{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog_category?post=4526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}