<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Custom Messages on {O}</title>
    <link>https://omarmakled.com/tags/custom-messages/</link>
    <description>Recent content in Custom Messages on {O}</description>
    <generator>Hugo -- 0.151.1</generator>
    <language>en-us</language>
    <atom:link href="https://omarmakled.com/tags/custom-messages/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Customizing Cognito Emails with AWS SAM and Lambda</title>
      <link>https://omarmakled.com/posts/sam-cognito-custom-message/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://omarmakled.com/posts/sam-cognito-custom-message/</guid>
      <description>&lt;p&gt;This example shows how to use &lt;strong&gt;AWS SAM&lt;/strong&gt; to create a user sign-up system (&lt;strong&gt;Cognito&lt;/strong&gt;) and change the automatic emails it sends, like account verification or password reset emails. This is a great method if you want your application&amp;rsquo;s messages to match your brand&amp;rsquo;s style.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;project-components&#34;&gt;Project Components&lt;/h3&gt;
&lt;p&gt;The project has two main files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;cognito-email/index.js&lt;/code&gt;&lt;/strong&gt;: This file contains a simple &lt;strong&gt;Lambda&lt;/strong&gt; function. Its job is to change the content of the emails.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;template.yaml&lt;/code&gt;&lt;/strong&gt;: This file tells AWS what to build. It includes:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cognito User Pool&lt;/strong&gt;: The place where user data is saved.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lambda Function&lt;/strong&gt;: A simple function that runs when needed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Permissions&lt;/strong&gt;: These allow Cognito to call the Lambda function.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3 id=&#34;how-it-works&#34;&gt;How It Works&lt;/h3&gt;
&lt;p&gt;This setup customizes the email messages that Cognito sends in different user flows, such as:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
