<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anas El Mhamdi on Medium]]></title>
        <description><![CDATA[Stories by Anas El Mhamdi on Medium]]></description>
        <link>https://medium.com/@anaselmhamdi?source=rss-fc07b031bad0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aFZ6mfzAzWuQUYaNb23mlQ.jpeg</url>
            <title>Stories by Anas El Mhamdi on Medium</title>
            <link>https://medium.com/@anaselmhamdi?source=rss-fc07b031bad0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:04:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anaselmhamdi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An introduction to reverse engineering and unofficial APIs]]></title>
            <link>https://anaselmhamdi.medium.com/an-introduction-to-reverse-engineering-and-unofficial-apis-4a3134a7fee3?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a3134a7fee3</guid>
            <category><![CDATA[webflow]]></category>
            <category><![CDATA[growth-hacking]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Tue, 01 Jun 2021 20:10:47 GMT</pubDate>
            <atom:updated>2021-06-02T14:46:54.595Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0PFnp_-o_NKdADPe.png" /></figure><ul><li>Is there an integration for that ?</li><li>Do they have an API ?</li><li>There HAS to be a way to automate that !</li><li>Do I need to upgrade my Zapier/IFTTT/Integromat plan again ?</li></ul><p>If you have wondered this at any point, <strong>you ‍landed on the right post !</strong></p><p><a href="https://www.anas.link/post/create-your-own-api-in-2-minutes-aws-lambda-serverless">In my last article</a>, I already tried to help these pain points by showing you how to deploy your own custom API in a few minutes.‍</p><p>Today, we are going to talk about unoffcial APIs, a way to reduce e<strong>ven more frustration of not being able to automate a process</strong> on a given SaaS.‍</p><p>I made a whole video about this post if you want to see the process live !</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUxv5eCqwN7g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUxv5eCqwN7g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUxv5eCqwN7g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/06d6ab8c66c16bf6bc27c40b3a6a8ff0/href">https://medium.com/media/06d6ab8c66c16bf6bc27c40b3a6a8ff0/href</a></iframe><p>Before we get into it, let’s talk about a tangible example where reverse engineering can be applied to solve automation needs : <a href="https://www.notion.so/">Notion.</a></p><p>(‍<strong>UPDATE: their’s finally a </strong><a href="https://developers.notion.com/"><strong>public API</strong></a><strong> !!)</strong></p><p>Notion has become one of the top, if not the top, workspace/organizer app in the span of a few months. Its design is top notch and endlessy customizable.‍</p><p>Now that you’re reading this article, you probably know that it has also a major flaw. (aside from being slow at times)‍</p><p>It has no official API, so there is no official integration, no Zapier, nothing !‍</p><p>That is until you discover an<strong> unofficial API.‍</strong></p><p>An unofficial API is basically a reverse engineering of the official API using the frontend of a service.</p><p>‍If you manage to intercept the calls made when you add, update or delete an entry on Notion’s interface, you can reproduce them with any programming language.<br>In essence, it’s a <strong>technique that is very close to scraping.‍</strong></p><p>For common services, there are community made unofficial APIs like <a href="https://github.com/kjk/notionapi">this one easily found on GitHub.</a></p><p>‍</p><p>As mentioned on the repository, the creator of this unofficial API uses Notion as a CMS and his API to download the notion pages.</p><p>He then uses a flow to convert the downloaded data to html and then publish his new page automatically.‍</p><p>This means we can start building cool stuff like :</p><ul><li>Create a card when sending a message to a Slack bot</li><li>Change a item status in Notion based on Github actions</li><li>Create an api of a Notion table like you would with Airtable<br>‍</li></ul><p>As another example, we recently made the switch to webflow at <a href="http://quable.com/">Quable</a>, <a href="https://www.bleepingcomputer.com/news/technology/ovh-data-center-burns-down-knocking-major-sites-offline/">after the OVH burnt server fiasco.</a></p><p>We hosted Quable’s homepage on Wordpress hosted on a burnt OVH server, and<strong> we had no backup !</strong></p><p>We had to react fast, in particular not to lose our SEO efforts…</p><p>We had over 300 blog posts, in French and in English to redirect somewhere and not to a dead 404 page !</p><p>The plan was to set up an emergency website on Webflow, and redirect as much links</p><p>The problem is : <a href="https://developers.webflow.com/">Webflow has an API,</a> but they do not do bulk redirections, so the only solution would be to <em>add every single redirection by hand …</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n6jTsw0D7kC67oX3.png" /><figcaption>Webflow redirection UI</figcaption></figure><p>That is unless you know about a<strong> little trick related to unofficial APIs.</strong></p><p>The idea here is to automate the process of:</p><ol><li>Finding the 300+ links that need to be redirected somewhere (because remember: we didn’t have website to even look links up)</li><li>Adding them to webflow in bulk without doing it by hand</li></ol><h4>Finding the 300+ most relevant links</h4><p>I used <a href="https://apify.com/">APIfy</a> to scrap the first 300 Google links returned by the query `site:quable.com` which hopefully gave me the most important links of the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*-6cMJc9QPTE_3zhW.png" /><figcaption>ROUGH crop APIfy Google Scraper</figcaption></figure><p>‍</p><p>Once I had my links, I needed to automate my redirections, and I did so unofficialy, with the help of two things : <strong>the F12 key and this </strong><a href="https://curl.trillworks.com/"><strong>cURL syntax converter tool.</strong></a></p><h4>Adding the redirections in bulk</h4><p>To add multiple redirections, I had to reverse engineer how my browser actually sends a request to Webflow’s server to add a redirection and then write a script to execute the requests over my scraped links.</p><p>To know how my browser handles the request, I use the F12 key which shows the Developer Tools on any common browser, and checkout the Network tab.‍</p><p>To watch the request, I clear the console by clicking on the “forbidden” icon and I add a random redirection like /testA to /testB :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*NtVBdo0br_b8fUkt.png" /></figure><p>Here it’s pretty easy : the route is explicit and it’s called “r<em>edirect</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/0*hwAvr_efrkdGR4aU.png" /></figure><p>To replicate it, I right clicked on it, clicked on “copy as cURL” and used the cURL converter tool to translate it easily to Python:</p><p><strong>(Careful when sharing this kind of information especially here where there are cookies containing login data !)</strong></p><p>When pasting, the Python code appeared instantly, and in there you can clearly see the our “testA” and “testB” redirection paths !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lASW1iduoR_GpLTL.png" /></figure><p>‍</p><p>The rest is simple as I just needed to make a function out of this thing and loop through with my scraped links:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/761eeedbcbba050c6089c0f035b7f98e/href">https://medium.com/media/761eeedbcbba050c6089c0f035b7f98e/href</a></iframe><p>And that’s how I automated the whole process creating a mini unofficial webflow API to suit my needs !‍</p><h3>Closing words</h3><p>Now that I have explained the magic, this type of reverse engineering comes with a few warnings:</p><ul><li>The script will probably not last in time mainly because the login cookies will expire sooner rather and later, and it would break anytime when Webflow updates their API.</li><li>Again : manipulating login cookies is dangerous, be very cautious with them because they give full access to your account</li><li>You can easily trigger alerts to the service you are reverse engineering if you bombard them with requests, and they might ban you outright : That’s why Instagram automation is very risky nowadays.</li></ul><p>In this specific case, I put random timeouts between each added redirection between 10 and 100 seconds, and everything went well !</p><p>‍Let me know if there are specific services you would like to see automated this way !‍‍</p><p>Until next time,</p><p>Anas</p><p><em>Originally published at </em><a href="https://www.anas.link/post/automate-stuff-you-are-not-supposed-to-an-intro-to-unofficial-apis"><em>https://www.anas.link</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a3134a7fee3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pourquoi le PIM est-il aussi l’allié du BtoB ?]]></title>
            <link>https://medium.com/pim-france-community/pourquoi-le-pim-est-il-aussi-lalli%C3%A9-du-btob-4b413ec2e735?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b413ec2e735</guid>
            <category><![CDATA[dam]]></category>
            <category><![CDATA[pim]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[product-information]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Tue, 18 May 2021 14:34:07 GMT</pubDate>
            <atom:updated>2021-05-18T14:34:07.345Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pourquoi le PIM est-il aussi l’allié du BtoB ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBH6TxIsNcBxtAOqbBr5-Q.jpeg" /></figure><p>Les différences qui séparent BtoB et BtoC <strong>ne se résument pas à des cibles d’acheteurs opposées.</strong></p><p>Les process, le comportement des clients, les parcours d’achats, l’organisation interne, la gestion du catalogue produit sont autant d’éléments qui doivent être étudiés et adaptés spécifiquement pour répondre aux attentes particulières des acheteurs B2B.</p><p>Les achats des acteurs B2B s’inscrivent dans un contexte d’entreprise et la réflexion avant achat tout comme le choix final intègrent souvent davantage de contraintes que pour un achat en B2C.</p><p>Cela implique donc un niveau de détails plus important, des données plus techniques et complexifiées par l’intervention de multiples acteurs dans la Supply Chain (achat de matière première, transformation, revente du produit…)</p><p>Dans cet environnement particulier, comment gérer des données aussi riches et complexes ? Comment répondre aux besoins spécifiques des commerciaux BtoB et aux attentes des clients ?</p><h4>Le PIM comme référence du parcours commercial B2B</h4><p>Outil de gestion de contenu par excellence, le PIM permet de renseigner puis d’enrichir les données produit en un seul endroit.</p><p><strong>Mais son rôle ne se limite pas à cela !</strong></p><p>En intégrant les données commerciales disponibles sur les produits de l’entreprise, le PIM permet aux équipes terrain de construire des argumentaires de ventes uniformes et cohérents avec les autres canaux de vente.</p><p>En outre, chaque produit peut faire l’objet d’un traçage en étant relié dans le PIM à un profil fournisseur.</p><p>Il est ainsi possible de renseigner ses informations (nom, informations de contact, date d’expiration du produit/du deal, etc.) afin de donner aux équipes commerciales un accès direct à l’historique du produit. Un vrai avantage pour l’argumentaire commercial et la traçabilité des achats.</p><h4>Générer automatiquement un portail produit depuis le PIM</h4><p>Si les acheteurs BtoB ont l’habitude d’acheter sur catalogue, il est aujourd’hui <strong>indispensable</strong> de pouvoir également leur présenter un portail produit en ligne, personnalisé et accessible en continu et sur tous les Devices (ATAWAD).</p><p>Enrichi à partir du PIM et du DAM, le portail produit présente des contenus et médias sur l’ensemble ou une partie du catalogue produit (une gamme, un pays, une nouvelle collection…). <br>Il peut servir de support de présentation lors des rendez-vous client, mais aussi de base de référence pour toutes les personnes susceptibles de présenter ou vendre les produits de l’entreprise.</p><p>Les informations produit étant téléchargeables, elles peuvent être facilement transférées au client.</p><p>Le portail produit est un atout indéniable dans la stratégie commerciale : ergonomique, élégant, personnalisable, conçu pour les déplacements (visualisable sur tablette, smartphone et desktop) et même diffusable en marque blanche (interface aux couleurs de l’entreprise), il accompagne le commercial et son client au quotidien et fluidifie la relation.</p><h4>Le PIM pour générer des catalogues toujours à jour et à la volée</h4><p>Oui, <strong>le catalogue papier reste un incontournable</strong> des stratégies commerciales BtoB. <br>Pourtant, à l’heure où les contenus et les offres évoluent en permanence, il est devenu impossible d’envisager l’édition d’un catalogue unique pour l’année.</p><p>La solution PIM permet d’allier les avantages du Print aux exigences d’immédiateté de notre époque : en construisant dans le PIM la structure du catalogue et les variables sur lesquels il se base, il est possible de créer automatiquement à la volée des catalogues personnalisés à partir des données renseignées dans le PIM.</p><p>Il n’y a plus de limites : en un clic, vous choisissez d’éditer votre catalogue à partir de l’ensemble des produits, d’une gamme en particulier, d’une langue ou encore d’une marque.</p><p>Libre à vous ensuite de l’imprimer en version papier ou de le diffuser en version PDF via les canaux web à vos clients !</p><p>Le catalogue s’adapte ainsi en temps réel aux besoins de la stratégie commerciale BtoB.</p><h4>Conclusion</h4><p>Le B2B, et en particulier l’e-commerce B2B, est un relai de croissance en progression constante ces dernières années.</p><p>Dans un contexte de transformation digitale des entreprises, les process de ventes et achats B2B se doivent d’être adaptés pour répondre aux nouvelles attentes des clients, de plus en plus proches des pratiques rencontrées en B2C.</p><p>Le PIM participe à cette évolution en fournissant aux commerciaux une base de données produits unique qui facilite la gestion d’informations riches et complexes, permet de construire des argumentaires commerciaux cohérents et proposer des parcours d’achats fluides en off ou online.</p><p><strong>La force du PIM réside dans sa capacité d’adaptation pour répondre aux besoins des équipes marketing, commerciales et produits : il ne tient qu’à vous de voir tout ce que le PIM peut faire pour vous… et constater le changement !</strong></p><p><strong><em>Article initalement rédigé par Aude et publié sur le blog </em></strong><a href="http://quable.com/"><strong><em>Quable</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b413ec2e735" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pim-france-community/pourquoi-le-pim-est-il-aussi-lalli%C3%A9-du-btob-4b413ec2e735">Pourquoi le PIM est-il aussi l’allié du BtoB ?</a> was originally published in <a href="https://medium.com/pim-france-community">PIM Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Follow Ups : Make The Most Out Of Your CRM]]></title>
            <link>https://anaselmhamdi.medium.com/automated-follow-ups-make-the-most-out-of-your-crm-7bd800e08c67?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bd800e08c67</guid>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Sat, 10 Apr 2021 15:46:10 GMT</pubDate>
            <atom:updated>2021-04-10T15:46:10.357Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automated Follow Ups : Make The Most Out Of Your CRM</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*MfP6vihjmCkjcn4n.png" /><figcaption>Results of a Hubspot study on top salespersons priorities</figcaption></figure><p>Hey I’m back ! I figured I’d talk about one of my favorite things in growth : CRM automation.</p><p>While focusing on lead generation, it’s easy to forget that growth actually rests on people buying your product, <strong>not just sitting in your CRM.</strong></p><p>That is what I’ll be talking about today : how to get as much “sales value” as possible of your prospects with automated follow ups.</p><p>In my previous company, when we figured out how to deliver emails consistently, we sent a lot of them. And I do mean A LOT.</p><p>So of course, our sales team was in a rush, signing leads left and right and didn’t really have the time to stick to prospects that were mildly hot or that asked to be pinged in a few days.</p><p>Once it all settled down, we found out that many leads would just sit in our “follow up” stage in our CRM for days, even weeks.</p><p>Given that nowadays, you need around 8 calls to reach a prospect (vs 3.7 in 2007 according to a TeleNet study), <strong>following up took up to 3 days a week per salesperson.</strong></p><p>The follow up process was tedious for our sales team, so we decided to automate parts of it.</p><p>The goal of this project was to make sure the energy of the sales team was spent on closing deals rather than manually following up these leads.</p><p>In the end the project saved around two days of sales time a week.</p><p>We measured a growth in our closing rate of 35% over the course of 3 months (compared to the 3 months before the implementation).</p><p>As a positive side effect, prospects that declined to be clients gave us legitimate feedback on our offer and our product. That type of information is priceless for early stage startups.</p><p>Let us get into it :</p><p>I’ll talk first about the follow up process as a whole and then get into the tools/tech required to do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*U4VNUH8SbTMrhGNy.png" /></figure><p>Anytime a prospect answers, the sales person takes them out of the loop and carries on, hopefully to close a deal.</p><p>The driving idea was to impersonate a classic sales follow up process as much as technically possible</p><p>In the end we settled on 3 emails sent from the sales person inbox, and if they did not answer, we would send a custom automated text as well as a ringless voicemail the same day.</p><p>After this loop, if the prospect did not answer, I would automatically label them as non-answering in the CRM.</p><h3>The content</h3><p>The content can be very simple since you already know the prospect. This is still not a reason to not custom your email, since your prospect would be able to tell it’s an automated email. Here’s a sample that works well enough :</p><blockquote>Subject : Call request</blockquote><blockquote>Hello *first name*,</blockquote><blockquote>This is Anas from myCompany where we do xyz,</blockquote><blockquote>We’ve talked about a potential fit between *company name* and myCompany recently, when do you have 10 minutes to talk about the next steps ?</blockquote><p>You can go deeper in detail depending on the type of follow up. We had a CRM stage for missed meetings and missed calls so we would be able to customize the email copy even more.</p><p>You can go deeper in detail depending on the type of follow up.</p><p>We had a CRM stage for missed meetings and missed calls so we would be able to customize the email copy even more.</p><p>If the prospect doesn’t answer, send him a second email asking if they saw it.</p><p>The trick is to use block quotes to make it seem like you actually clicked on “answer” from your email client. Here’s how it looks on gmail:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/0*hNQBS-uab0ndGSW2.png" /></figure><p>To do so you have to send your emails with HTML, and use the <a href="https://www.w3schools.com/tags/tag_blockquote.asp">blockquote</a> tag to wrap the content of the previous email.</p><p>The key here is to use credible timestamps. If both your follow ups emails are sent at 16:53, all the magic is lost. When you populate your fields, make sure that the sending hours are randomized.</p><p>The third email is a copycat of the second email, they can be interchangeable in terms of content.</p><p><a href="https://anas.link/post/automated-follow-ups.html">I made a gist</a> if you want to see what it looks like in HTML.</p><p>As long as potential leads don’t tell you straight up “no” after being this insistent, the mentality is to continue pinging until they answer.</p><p>People are usually afraid of being this “aggressive” thinking that it turns prospects off. In reality most interested prospects tell you some version of “sorry I was busy” to carry on.</p><p>This is why to trigger an answer we move onto the text message and the direct voicemail at this point.</p><p>Again the key here is to mention at least their name, their company, have an actionable CTA and the means of contact:</p><blockquote>Hello *first name*,</blockquote><blockquote>I have been trying to get in touch with you by email to talk about the fit between myCompany and *their company*.</blockquote><blockquote>When would you be available for a quick 10 minutes chat ?</blockquote><p>As for the voicemail, it might sound dumb but the salesperson recording must be smiling while recording, it makes a world of difference upon hearing it back : try it for yourself !</p><p>The message should be structured the same way : introduce yourself, explain that you already talked and that you tried to join them and finish by a call to action.</p><p>A variant of the loop that works is to send the 3rd email, text and voicemail on the same day, sending the email after the text and voicemail.</p><p>That way, you can make the first sentence of your email with a variant of “I tried to call and left a message”.</p><p>There was no significant difference between the two loops but the last one felt cool and more custom.</p><h3>The tools</h3><ul><li><a href="https://zapier.com/">Zapier</a>/<a href="https://www.integromat.com/en">Integromat</a>/Any flow automation tool/<a href="https://aws.amazon.com/lambda/">AWS Lambdas </a>: I used any of these as webhooks to trigger corresponding events. I ended up using <a href="https://aws.amazon.com/fr/lambda/">lambdas</a> because it scales better than any solution. It requires a bit of dev time but saving a lot of money in the long run.</li><li><a href="https://www.twilio.com/">Twilio</a>/<a href="https://www.mailingvox.com/">Mailing Vox</a> APIs to get phone numbers</li></ul><h3>Simple example</h3><p>Here’s an example of the setup with Streak and Zapier:</p><p>Streak presents itself as a CRM as easy to use as a spreadsheet, it’s pretty intuitive and integrates right into gmail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/0*M2FJ90St50zQDUi6.png" /><figcaption>Streak’s spreadsheet-like interface. I’m a lead !</figcaption></figure><p>The simplest of ways here is to create a stage reserved for prospects that you want to follow up with automatically so I created the <em>Automated Follow Up</em> stage.</p><p>Next, we want to be able to do trigger actions when “Anas Lead” is placed in Automated Follow up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/0*t2JTSIO7iHee5MRm.png" /></figure><p>Here’s how to do it with Zapier:</p><ul><li>First you have to copy a Streak API key by clicking on Integrations and clicking on “Get An API key” to connect your Streak account to Zapier.</li><li>Choose Streak and “Box Change Stage”, click on continue and paste your API Key.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/0*hXoQW8lfJys6daKh.png" /></figure><ul><li>Choose your pipeline and your automation stage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/0*ZqQUSQkK3NrTM1el.png" /></figure><ul><li>You can then choose to test the integration, which should be all good. You can choose any action after that ! You can send emails with any of these clients for instance and use the content talked about previously.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/0*6rqByIhpcMgLvgOn.png" /></figure><ul><li>To be more complex (i don’t recommend this) but you can create other zaps delaying them by a day to create content. You can use Zapiers delay and formatter to do so. Zapier formatter helps you create variables you can use in your email and SMS content. If you have coding experience check out the advanced example below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/0*1UtPZETPK6qo4QVZ.png" /></figure><h3>Advanced example (lambdas)</h3><p>This example is just an overview of how you can do super customized actions thanks to lambdas. To work with lambdas on a regular basis i would STRONGLY recommend you work with the <a href="https://serverless.com/">Serverless</a> framework.</p><p>All the CRMs use this concept to provide automation given various triggers and Streak is no different.</p><p>We are going to create our webhook with an Amazon Lambda and <a href="https://streak.readme.io/reference#webhooks">Streak’s webhook service</a>.</p><p>Lambdas are functions as code, that can be triggered in different ways.</p><p>Here we can use our Lambda as an API that Streak will call when a prospect lands into a given stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/0*G20rqmgwqjKNu3vh.png" /></figure><p>You land on the Amazon editor, i just included the “print event” line to show us what Streak lets us work with. The important part here is that your answer must be an object containing the keys ‘statusCode’ and ‘body’ even if the body is empty.</p><p>A 200 status code will tell Streak that the request was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*dbPOBVi9sCbs_OMR.png" /></figure><p>Scroll up and click on add trigger. Create a new API and select open as your security for now and click add:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*6ZHZq-9qKOWHwSGt.png" /></figure><p>You’re now back on your dashboard, click on your new fresh trigger and copy your API Endpoint URL:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/0*IWg0PD54wi0E7L6e.png" /></figure><p>Create your webhook with Streak with whatever you like (Postman, CURL …) :</p><p>You’re going to need your API Key, your previously copied API endpoint, and your pipeline Key which is the string at the end of your url when you navigate the pipeline in question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/0*DifY8sR_LRteNP47.png" /></figure><p><strong>You’re now all set up !</strong></p><p>Let’s move a prospect to our automated stage to see if our lambda is working properly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*Pqqm20cWImKznkJE.png" /></figure><p>Head on back to your lambda dashboard. Click on the <strong>Monitoring</strong> tab then click on <strong>view logs in Cloudwatch</strong>, there should be one line :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*7O0H--Xb3R5gADNj.png" /></figure><p>These are your lambda’s log, you’ll find the output of your code in these lines.</p><p>When we click on it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*ZObOe-GKwsxiWuQo.png" /></figure><p>A request always contains the START, END and REPORT lines. Everything else is what you print out in your function. Every line here is a line from the lambda event’s body !</p><p>From here you can use anything in your code, so you can call any other route from Streak’s API. In our case here the first line we would have to add is to check if the current stage is the automated stage.</p><p>Then, you can get the contact’s email, their name, the last time they contacted you, create the HTML template and everything we talked about.</p><h3>Closing words</h3><p>I’d say it takes less than a week to setup the whole loop with the different services for someone familiar with code, including the iterations with the sales team.</p><p>Follow up automation is an amazing bang for your buck setup so don’t hesitate pulling the trigger on these types of projects.</p><p>This article is merely a starting point, you can go so much farther : automating lead enrichment, adding Linkedin contacts and even faxing or good old post mail. Nowadays, almost everything is API-fied so you can trigger any actions you wish.</p><p>You can reach me on LinkedIn or via email, I’m always open to exchange on these subjects !</p><p>Until the next article,</p><p>Anas</p><p><em>Shout out to Saad, Adem, Cécile and Açelya for the feedback</em></p><p><em>Originally published on The Anas Growth Blog at </em><a href="https://www.anas.link/post/automated-follow-ups"><em>anas.link</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bd800e08c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting sponsored content in Youtube Videos]]></title>
            <link>https://anaselmhamdi.medium.com/detecting-sponsored-content-in-youtube-videos-7701c113d81f?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7701c113d81f</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[advertising]]></category>
            <category><![CDATA[content-creation]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 16:48:30 GMT</pubDate>
            <atom:updated>2020-11-22T16:48:30.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*aRgoL1nmXshMVFyd.jpg" /></figure><p><a href="https://anas.link/post/detecting-sponsored-content-in-youtube-videos.html">(original article published on my blog right here)</a></p><p>I’m back !</p><p>With the whole lockdown situation, I had a little more time to explore a space I’m in love with : Machine Learning.</p><p>I feel like data management and intelligence are going to be at the heart of growth hacking/engineering so i was looking for an opportunity to dabble in it.</p><p>Growth engineering and machine learning are fields that require very similar skills:</p><ul><li>Mostly Python developing</li><li>Scraping</li><li>Data processing</li><li>Analytic and critical thinking</li></ul><p>After a few very practical tutorials on the specifics that I went through on <a href="https://www.kaggle.com/learn">kaggle.com/learn</a>, I was able to get my hands on my first few projects.</p><h3>The audio route</h3><p>The idea was suggested by a friend who is really anti-ads and was getting super annoyed with sponsored content in his podcasts.</p><p>He told me about <a href="https://github.com/ajayyy/SponsorBlock">SponsorBlock</a>, which is a crowdsourced ad skipper for Youtube.</p><p>When you download their extension, you’ll see a highlighted portion corresponding to sponsored content:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/0*ZcSrKYpdKEN6gkF9.png" /></figure><p>You can also label yourself content for other users to skip if the video isn’t already labeled.</p><p>What’s really cool about SponsorBlock is that their database<strong> is completely open</strong> !</p><p>You get access to every single labeled video, with the start and end time of the sponsors.</p><p>Their SQL database is open and updated often, so i used it to answer my next question :</p><p><strong>Is it possible to detect sponsored content from Youtube videos ?</strong></p><p>I didn’t know where to start, but I knew I had two paths:</p><ul><li>Make a model learning on the audio</li><li>Make a model learning on the transcripts</li></ul><p>I felt like audios would have much more data than simple text (music, cadence…), so I started down that road.</p><p>Without knowing anything about the subject, I searched around for audio classification algorithms, and found my way on the <a href="https://github.com/drscotthawley/panotti">Panotti repo</a>, which is based on a CNN (Convolutional Neural Network).</p><p>It was used to successfully detect 12 different guitar effects at a 99.7% accuracy, making 11 mistakes on 4000 testing examples !</p><p>In my case i only needed two classes (sponsor and not sponsor)</p><p>I followed the instructions, learned how to use <a href="https://rg3.github.io/youtube-dl/">youtube-dl</a> to download podcasts highlights, and scraped <a href="https://www.radiocentre.org/">Radiocentre’s commercials database</a> because until then, I hadn’t learned about SponsorBlock.</p><p>The results were mixed:</p><ul><li>When learning on a single podcast, the model showed 99% accuracy on the training set and 95% on the test set which means the model was able to detect commercial portions accurately on 95% of the episodes the network didn’t see.</li><li>When inputting different podcasts, the model wasn’t able to detect commercials with confidence, outputting less than 60% confidence on predictions</li></ul><p>I figured that I simply needed to train the model on multiple different podcasts. Problem was it was getting super tough to handle the data : the dataset for 300 podcasts was about 50 gigs :(</p><p>SO, in order to get more “information” with less heavy data, <strong>I finally went with the transcripts !</strong></p><h3>The captions route</h3><p>In the meantime I learnt about SponsorBlock which made everything easier.</p><p>I also looked around NLP (natural language processing) tutorials and found <a href="https://github.com/bentrevett/pytorch-sentiment-analysis">this excellent repo</a> about sentiment analysis.</p><p>Once I went through it, I decided to go for the Transformer model which is based on <a href="https://arxiv.org/abs/1810.04805">BERT</a> a NLP framework developed by Google.</p><p>To build the dataset, I still downloaded the videos with youtube-dl, except this time I fetched the automatic captions when they were available, giving me about 80k examples. (took about 35 hours on 100 mb/s internet)</p><p>To make things reliable, I chose for my training ads longer than 10s and shorter than 5 minutes, while making sure to keep only the videos only had one ad.</p><p>To have a balanced dataset, I took equal parts sponsor and content from the videos. (if the ad was 3 min long, the content training example was also 3 min long)</p><p>You can find the dataset right here : <a href="https://www.kaggle.com/anaselmhamdi/sponsor-block-subtitles-80k">https://www.kaggle.com/anaselmhamdi/sponsor-block-subtitles-80k</a></p><p>The model yielded 93.79% testing accuracy !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/0*lFiGAfHHQckRJmFH.png" /></figure><p>You can find the notebook I ran over here : <a href="https://www.kaggle.com/anaselmhamdi/transformers-sponsorblock/">https://www.kaggle.com/anaselmhamdi/transformers-sponsorblock/</a> (It’s really raw and undocumented though)</p><h3>Working with the model</h3><p>The next step was to try and label automatically a random video with labels to see what would come out of it.</p><p>So here’s what popped up in my recommendations : <a href="https://www.youtube.com/watch?v=MlOPPuNv4Ec">https://www.youtube.com/watch?v=MlOPPuNv4Ec</a>, a video by Linus Tech Tips.</p><p>I took my machine for a spring and you can find the <a href="https://anas-models.s3.amazonaws.com/LabeledVideo.csv">raw results here</a> or on <a href="https://docs.google.com/spreadsheets/d/1CXQMFjYvlfcXvT-u06An_71kuOt0LQBWo4BsVQYcMcU/edit?usp=sharing">this spreadsheet</a>.</p><p>It detected correctly the two sponsored segments (Ting segments) but labelled content as sponsor with a high confidence level.</p><p>A few remarks about the mistakes:</p><ul><li>The mistakenly labelled mistakes all contain upper case letters. I left them there because i thought they would indicate a brand, but in the captions, names, towns and such appear more frequently.</li><li>Some of them also contained brackets which is probably biasing the process since [Music] and [Applause] are often in sponsored content.</li><li>A conversation about MacBooks was flagged as sponsored content</li><li>I chunked the captions very roughly in 10s parts for the labelled video inference. I feel like I need to do a finer set of chunks and cross the results to have better results.</li></ul><p>I feel like there’s a huge margin for improvement, because of these few improvements, and more macro improvements such as :</p><ul><li>Extending the dataset to more videos (I only had a subset of them)</li><li>Recalculating the BERT model parameters and fine tuning the neural network</li><li>Implementing feedback from experimental data scientist which i’m absolutely not</li></ul><p>It’s really telling about how the field has advanced that somebody like me who is a complete newbie could make something somewhat functioning.</p><p>All the data and the works I found were really well documented, and easy to pickup.</p><p>The toughest part was to actually deploy the model as a service, since I’m not used to systems running on a lot of resources.</p><p>I tried though !</p><p>You can try my (buggy) <a href="https://anas.link/sponsor_detector">sponsor detecting tool here</a>, let me know what worked for you !</p><p>Anas</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7701c113d81f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ultimate Cold Mailing Checklist]]></title>
            <link>https://anaselmhamdi.medium.com/the-ultimate-cold-mailing-checklist-dbecb8ebdfca?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbecb8ebdfca</guid>
            <category><![CDATA[deliverability]]></category>
            <category><![CDATA[cold-emailing]]></category>
            <category><![CDATA[email-marketing]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Tue, 01 Oct 2019 12:17:51 GMT</pubDate>
            <atom:updated>2019-10-01T12:17:51.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/258/0*HZLkg8b4riZe9I07.png" /></figure><p>Let us start on where this knowledge comes from.</p><p>I used to work as a growth hacker for Nimley, a company that took care of lead generation for its clients using its expertise in email copywriting.</p><p>I was in charge in B2B acquisition there, and of course, my primary acquisition channel was also cold emailing. It was an amazing position as any innovation found on my end could be implemented on our clients’ side to improve the product.</p><p>The biggest problem we kept running into was the spam filters as we kept getting awful open rates <strong>(sub 20%)</strong> after a few hundreds of email sent.</p><p>Here’s precisely why it was such a problem:</p><ul><li>You ruin a domain’s reputation, so the setup has to be redone on another domain name (it’s faster than cleaning it up)</li><li>You cannot make any precise prediction on the leads you can generate in a given time</li><li>In our case it was a huge account management time sink</li></ul><p>That problem could break out on me and any client at any time so we had to find quick and actionable solutions.</p><p><strong>Everything we found is condensed in this article</strong> and by applying them all, <strong>we went from a shaky and unsure 20% open rate to a steady 60%+ </strong>across the board.</p><p>We reached the <strong>70K€ MRR</strong> using cold mailing as our main acquisition channel (90% of our leads).</p><p>Before you ask, yes <strong>the result does scale with volume,</strong> and I also explain why in this article.</p><p>Also, for my European compatriots, make sure to <strong>shoot only business emails</strong> to respect GDPR guidelines.</p><p>In all of our tests, we realized there is not a single trick that made us reach the inboxes but rather a combination of practices which I’ll call pillars here.</p><p>Moreover, if any of these pillars are shaky, you can be assured that your deliverability will be shaky as well.</p><p>Here are the pillars and the question they bring forth:</p><ul><li>What it is the form (HTML, links, pictures…) ?</li><li>What is the actual message you’re conveying ? (prop value, fit with audience, etc)</li><li>Do you know if the emails you have actually exist ?</li><li>Are they business, personal or contact emails ?</li><li>How are you actually sending the emails ?</li><li>Are you sending 1000 mails per day at once ?</li><li>What platform are you using ? Your mailbox ? A newsletter manager ?</li><li>How do you know if your domain has a good reputation ?</li><li>Did you setup SPF and DKIM before sending your email ?</li></ul><p>I will in the following address each pillar, giving you the keys to start a successful cold emailing campaign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*tu7acaBLwgzVMBna.png" /></figure><p>I say content broadly, there are two parts we should address : the form and the substance.</p><p>This part could be summed up by saying : create content which would make your audience engage with it, opening it, reading it and replying to it.</p><p>The issue, is that if your content doesn’t follow some specific guidelines, it can end up in spam even if you have the best copy.</p><h3>Form</h3><p>HTML is perfectly fine but <strong>I strongly recommend</strong> not to have any links or pictures.</p><p>Some spam filters (gmail’s especially) are very strict about external resources linked add to an email, especially if that email is sent from an unknown source.</p><p>You can still have a signature but go for plain text ! The example below is what we used in our UK campaigns:</p><p><em>John Doe<br> Account Executive @Nimley<br> +44 (0) 444 4444333<br> 29 Oxford Street, London<br> nimley.com</em></p><h3>Substance</h3><p>I cannot help you talking better to your audience, since you’re definitely in the better shoes to so. You have to make them feel like you’re actually talking to them one on one and that takes customer experience.</p><p>However, I can tell you that to get your copy to get into inboxes, <strong>you should NOT sell your product.</strong></p><p>There are two reasons for that:</p><ul><li>Spam filters are intelligent nowadays and can easily pick up on email copies that are too sales-oriented because of wording and structure. If you use words that are too salesy, combined with the fact that it is the first time that you contacted that mailbox, you’ll be heading right into the spam folder.</li><li>Automated sales pitches are running rampant everywhere. If you manage to be read, but your reader recognizes at first glance, <strong>the reader will likely put you himself in his spam folder.</strong> That means your domain reputation will take a huge hit.</li></ul><p><strong>Huge no-nos </strong>: “Save $X by subscribing”, “Offer of a lifetime”, “You’ll never want to miss this”</p><p>What should you do then ?</p><p>You should try and <strong>provoke a conversation</strong> however you feel right. We used a simple strong call to action to close the email out something like : “Do you have 15 spare minutes to talk about it this week ?”</p><p><strong>Customization</strong> with your prospect information is crucial to do so, even if you only have their first name to work with.</p><p>Here’s a nugget from this April 2019 <a href="https://backlinko.com/email-outreach-study">Backlinko study</a> about outreach emails:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/0*u0fc8s0ZuWOUN0q6.png" /></figure><p>Result of a 2019 Backlinko study</p><p>The email structure we used for our prospection was pretty simple but effective. For reference, our target was targeted B2B CEOs:</p><ul><li>Introduction — Few words</li><li>Company introduction — 1 sentence max</li><li>Problem presentation — 1 sentence</li><li>Proposition value — 1 sentence</li><li>Strong CTA — Few words</li></ul><p>This is a prospecting email copy used back when we target the UK market. These were CEOs to whom we sent emails but never answered (not a good practice for domain reputation) but the structure is there.</p><p><em>Hi Anas,</em></p><p><em>We got in touch a few months ago hoping to learn more about your prospection strategy. I can’t recall getting a response, so I am trying again now to see if it is a more relevant time to speak.</em></p><p><em>At Nimley, we generate business meetings for you with targeted potential customers through leveraging data, and have helped 156 customers generate over 45M in transactions.</em></p><p><em>I speak with a lot of CEOs and sales managers in your market and am keen to understand more about how you prospect. I am sure there is a lot we could learn from one another.</em></p><p><em>Do you have time for a 5 minute call at some point over the next few days to discuss this further?</em></p><p><em>Best,</em></p><p><em>John</em></p><p><em>John Doe<br> Account Executive @Nimley<br> +44 (0) 444 4444333<br> 29 Oxford Street, London<br> nimley.com</em></p><h3>Email Validation</h3><p>This one is pretty short and simple.</p><p>Make sure your email don’t bounce. Bounces are one of the primary stats picked up for domain and sender reputation. To do so there are many services, we mainly used <a href="https://verifalia.com/">Verifalia</a> and <strong>only used valid emails</strong>.</p><p>You might cut your databases in half, but you’re actually just finding out its <strong>real size.</strong> The contacts left are the only one you can contact properly. Make sure to store bounced data to not shoot these emails ever again.</p><p>I cannot stress this enough, this is a huge cornerstone of cold emailing, <strong>DO NOT SEND ANYTHING TO UNVALIDATED EMAILS.</strong></p><p>There are two ways you should go:</p><ul><li>A very well known email management tool : Mailchimp, Mailjet, etc. They basically are favored in regards with spam filters.</li><li>Any other tool off the market (API, SaaS) or your homemade SMTP sending machine as long as you implement <strong>DELAYS</strong> and <strong>RATE LIMITS. </strong>The rule of thumb when you’re cruising is to send about 500 maximum per day per domain at a rate of 1 to 2 emails per minute.</li></ul><h3>Warming up your domain/IP for sending</h3><p>Whether you’re using a dedicated IP or not, you<strong> have to</strong> build up your sending reputation by starting slow and gradually increasing your sending volume.</p><p>We did a linear sending protocol over two weeks to reach 500 emails per day, starting at 50 emails per day, adding about 30 emails in volume per day.</p><p>We also used a stricter protocol, <a href="https://support.reply.io/en/articles/1888935-how-to-warm-up-an-email-account-before-sending-cold-emails">described here by reply.io</a>, a little bit more tedious to use, but works wonders.</p><p>If you need more volume, you should scale of off your domain name/IPs, while staying within the rate limits. Use other extensions of your website or names that are close.</p><h3>Setup</h3><p>Before anything, make sure you setup SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) for your domain name.</p><p>These are security and identity measures which gives you a bit of breathing room when building up your sender reputation.</p><p>Usually, you’ll be prompted by your sending service to do so as an option. For instance, if you’re using Gsuite, there are clear tutorials <a href="https://support.google.com/a/answer/33786?hl=en">here for SPF</a> and <a href="https://support.google.com/a/answer/174124?hl=en">here for DKIM.</a></p><p>The setup is simply to add new DNS records with the values given by your mail provider service, and it takes no more than 5 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/0*8RUHiQ4UVX37aFHm.png" /><figcaption>Gmass inbox tool</figcaption></figure><h3>Domain reputation checking</h3><p>When you have a dip in open rates, how do you know if it’s because of your content, or because of your domain getting flagged as a spamming platform ?</p><p>To answer that we used two tools that did the same thing on a different scale:</p><p><a href="https://www.gmass.co/inbox"><strong>Gmass inbox</strong></a></p><p>It’s a simple tool but super useful.<br> You send your emails to the list shown on the page, look for your email, and see if your email landed in spam or inbox.<br> Send a simple conversational email like “Hey how are you, how about dinner tomorrow ?” to the test boxes and see where you land.</p><ul><li>If you landed mostly in inbox : your domain is fine !</li><li>If you landed mostly in spam : your domain has been flagged.</li></ul><p>A quick overview of how intuitive Gmass’s tool is</p><p><a href="https://glockapps.com/"><strong>GlockApps</strong></a></p><p>GlockApps’ API helps you do the same thing but at scale.<br> I strongly recommend it (they don’t sponsor me but I wish) when you manage more than a few domains.<br> They also have automatic features in their UI to help you monitor your reputation if you don’t know how to use the API.</p><p>It can be tedious to set up correctly for a cold emailing campaign, but it can yield amazing results:</p><p><strong>We managed to generate over 70K in MRR using only cold emailing as an acquisition channel at Nimley.</strong></p><p>And that was with us iterating on these deliverability issues.</p><p>The result of these iterations is the following:</p><p>There are 4 pillars to cold emailing and your deliverability is linked on how solid they ALL are. For your pillars to be solid <strong>here’s your cheat sheet</strong>:</p><h3>Content</h3><ul><li>Do not sell your product, create a conversation</li><li>Customize your content</li><li>End with a strong CTA (Let’s have a chat, When are you available for a call ?)</li><li>Use a simple conversational subject (meeting request, call request, your problem with issue X)</li><li>No links, no pictures</li></ul><h3>Email Validation</h3><ul><li><strong>DO NOT SEND UNVALIDATED EMAILS. There are many tools you can use. (</strong><a href="http://verifalia.com/"><strong>Verifalia</strong></a><strong>, </strong><a href="https://neverbounce.com/"><strong>Neverbounce</strong></a><strong>)</strong></li></ul><h3>Delivery Method</h3><ul><li><strong>Maximum</strong> 500 emails/day/domain, 1–2 emails/minute</li><li>Start slow and ramp up over two weeks</li></ul><h3>Domain Reputation</h3><ul><li>Setup SPF and DKIM on your sending domain</li><li>Don’t mess the other guidelines up</li><li>Check your reputation regularly with tools like <a href="https://www.gmass.co/inbox">Gmass</a> or <a href="https://glockapps.com/">GlockApps</a></li></ul><p>There you have it ! You should now have a strong knowledge base to start your cold emailing campaign. The natural question is what comes next ?</p><p>You should have replies to deal with and different meetings scheduled.</p><p>We had very cool processes where the mails were routed directly to our CRM, with our prospects data being enriched automatically.</p><p>Maybe we’ll talk about it next time !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/0*bXmZYT9uhUd51Bmw.png" /></figure><p>If you have any questions or suggestions, you can contact me directly at <a href="/service/mailto:elmhamdi@anas.link">elmhamdi@anas.link</a> or on my social media.</p><p>Anas</p><p><em>Originally published at </em><a href="https://anas.link/deliverability-cheat-sheet.html"><em>https://anas.link</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbecb8ebdfca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a website from scratch under the AWS free tier (Part II : BackEnd)]]></title>
            <link>https://anaselmhamdi.medium.com/how-to-build-a-website-from-scratch-under-the-aws-free-tier-part-ii-backend-4dd244f194f8?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dd244f194f8</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Thu, 05 Sep 2019 19:02:25 GMT</pubDate>
            <atom:updated>2019-09-05T19:02:25.861Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to build a website from scratch under the AWS free tier (Part II : BackEnd)</h3><p>We learnt in the <a href="https://medium.com/@anaselmhamdi/how-to-build-a-website-from-scratch-under-the-aws-free-tier-d95353a4b0e9">first part</a> how to host and securely distribute your static website with S3 and Cloudfront. The next natural step is then how to make that website not so dynamic anymore with a backend.</p><p>Usually building a backend from scratch can be painful to deploy and maintain, and in the past I would for sure have to delegate that task.</p><p>However, nowadays, you can do so with a few lines of code.</p><p>Thanks to AWS’s lambdas and the Serverless framework, you’ll be able to run a fully lightweight and functional backend with a few functions in no time.</p><p>I am going to walk you through this process with a real life example running on my website : <a href="https://www.5e-pour-rien.com/?utm_source=medium">5e-pour-rien.com</a> (it still means 5€ for nothing and yes it is still dumb)</p><h4>Prerequisites</h4><ul><li>An AWS account</li><li>A live website</li><li><a href="https://nodejs.org/en/download/">Node installed</a></li><li>The <a href="https://serverless.com/framework/docs/providers/aws/guide/">Serverless</a> framework installed : npm install -g serverless</li></ul><h3>What are we going to build ?</h3><p>The concept of my website is really simple: you pay 5€ for nothing and I send you a bill in which I include an electronic signature.</p><p>You can check that your signature is authentic <a href="https://www.5e-pour-rien.com/authenticite.html?utm_source=medium">on this page.</a></p><p>Although all of the processes described are done through Lambdas, I will only describe how I built the signature process for this article. (If you’re interested, let me know !)</p><h4>The setup (if it’s not already done)</h4><ul><li>Login into Amazon’s console and head on to <a href="https://console.aws.amazon.com/iam">IAM</a> (Identity Access Manager).</li><li>Click on <em>Users</em> and <em>Add User</em></li><li>Name it something like serverless-admin and tick <em>Programmatic Access</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*9sVhMnbR-v_L4O_8btHd4A.png" /></figure><ul><li>Then click on <em>Attach existing policies directly</em> and tick <em>AdministratorAccess</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*XBKKNvpyJWfYYQulQi6Ixg.png" /></figure><ul><li>Click on Next to add Tags if you need them, and <em>Create User</em> to review and create your keys. Store your Access key ID and your Secret key in a safe place as we’re going to use them next.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*6aY7fhccq_sLzxbOhqPfoA.png" /></figure><ul><li>Next open your terminal and type:</li></ul><pre>serverless config credentials --provider aws --key &lt;Your Access Key&gt; --secret &lt;Your Secret Key&gt;</pre><ul><li>You’re all done !</li></ul><h3>Building the service</h3><p>As a reminder, remember that when a user buys nothing, I send them a bill in which I include an lambda generated electronic signature.</p><p>The generation of the signature for a bill is very simple.</p><p>I encoded a string composed of the customer’s email and bill number. I used a base64 hash and a secret password to do so.</p><p>All in all, in essence the service we’re building is as follows :</p><ul><li>Get the signature from the website user</li><li>Check if the signature is authentic</li><li>Send the answer to the website</li></ul><p>We’re going to build a Lambda as an API gateway to do so.</p><p>I built everything in Python3 but Lambda supports a ton of languages now (JS, Java, Node, Ruby…)</p><h3>The meat</h3><p>I used this encoding and decoding method explained in this <a href="https://stackoverflow.com/questions/2490334/simple-way-to-encode-a-string-according-to-a-password/21754610">StackOverflow thread</a>. This is not by any means something ultra solid but it does the job for our use case.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f312e8094a878a3c7ff4539b7f73621e/href">https://medium.com/media/f312e8094a878a3c7ff4539b7f73621e/href</a></iframe><p>You can try it for fun:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/157c46c6e523353d3dcb9a9305313f51/href">https://medium.com/media/157c46c6e523353d3dcb9a9305313f51/href</a></iframe><h4>The lambda</h4><p>A lambda is function which takes <em>event</em> and <em>context</em> as arguments. (You can see the test <a href="https://pastebin.com/F36PA9gf">AWS proxy values for both right here</a>)</p><p>You can trigger the code in the lambda based on the <em>event</em> passed. The event can be a lot of things :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*tUkG63D8vS8ZvQ07RR7XtA.png" /></figure><p>In simple usage, it can be used to trigger code on a schedule with Cloudwatch Events, or as we’re going to do, an HTTP request.</p><p>The values of the <em>event</em> object change base on the nature of the event, but for an HTTP request, here’s what we’re going to focus on:</p><pre>{<br>  &quot;body&quot;: &quot;eyJ0ZXN0IjoiYm9keSJ9&quot;,<br>  &quot;resource&quot;: &quot;/{proxy+}&quot;,<br>  &quot;path&quot;: &quot;/path/to/resource&quot;,<br>  &quot;httpMethod&quot;: &quot;POST&quot;,<br>  &quot;isBase64Encoded&quot;: true,<br>  &quot;queryStringParameters&quot;: {<br>    &quot;foo&quot;: &quot;bar&quot;<br>  },<br>  &quot;multiValueQueryStringParameters&quot;: {<br>    &quot;foo&quot;: [<br>      &quot;bar&quot;<br>    ]<br>  },<br>  &quot;pathParameters&quot;: {<br>    &quot;proxy&quot;: &quot;/path/to/resource&quot;<br>  },<br>  &quot;stageVariables&quot;: {<br>    &quot;baz&quot;: &quot;qux&quot;<br>  }<br>  }</pre><p>These are the values of the test AWS proxy for an HTTP POST method with the value parameter “foo” having the value “bar” and the <em>body</em> having a value of “eyJ0ZXN0IjoiYm9keSJ9”.</p><p>Our case is fairly simple, we are simply going to parse the <em>body</em> of the <em>event</em>, which is going to be our assumed signature for our input.</p><p>As an output we want either the decoded string, or a message telling us the signature sent is not legit according to our decoding function.</p><p>So with that in mind, let us write our lambda function :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16262fcdf1e6b6eb607cb0cda1e868a1/href">https://medium.com/media/16262fcdf1e6b6eb607cb0cda1e868a1/href</a></iframe><p>Pretty straightforward isn’t it ?</p><p>The output of a lambda used as an API gateway <strong>should always be</strong> a JSON like object with at least the keys <em>statusCode</em> and <em>body. </em>You’ll get errors 500 otherwise.</p><p>As is custom here, I return a 200 statusCode when the call is successful and 400 when it’s not.</p><p>All that is left now is to deploy our API. You could do it by hand using the AWS lambda interface, but Serverless handles that for you !</p><h4>The serverless.yml file</h4><p>It’s an option file that has to be at the root of your work directory that contains all of the information needed to deploy your lambda.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/faa50416a0b3d28e89b3f73b43e3f498/href">https://medium.com/media/faa50416a0b3d28e89b3f73b43e3f498/href</a></iframe><h3>Deploying and testing our new API</h3><p>At this point, my local folder contains three files:</p><pre>lambda_demo<br>|  serverless.yml<br>|  decode_api.py<br>|  encode_decode.py</pre><p>We’re ready to deploy ! Just type:</p><pre>serverless deploy</pre><p>You should see Serverless working its magic and gifting you your brand new endpoint at the end !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*2RQymJnB1k85m5Oq7BJpyQ.png" /></figure><p>You can also see that your lambda has been created in the lambda functions dashboard :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBboL_0mRCc7ue8HUXaHzA.png" /></figure><p>To test the endpoint, you can use any tool you’re familiar with, I personally like <a href="https://www.getpostman.com/">Postman</a>. Simply copy your endpoint (in my case : <a href="https://s8zszn4fu2.execute-api.eu-west-3.amazonaws.com/dev/check">https://s8zszn4fu2.execute-api.eu-west-3.amazonaws.com/dev/check</a>), paste it into Postman, select the <em>Body</em> tab with the <em>Raw</em> option :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*bGcrpBoRB5wYJthKb8Rbdg.png" /></figure><p>In that screen I pasted a legit encoded signature. Hit send and look at the bottom panel :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*SI5zaxZ0eCsN1uYhZJPrAg.png" /><figcaption>Body of the request answer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*KR7IciVWrTzd76CKZWpTVw.png" /><figcaption>Status of the request</figcaption></figure><p>It worked to perfection ! Let’s see what’s happening if i don’t enter a properly encoded string like “skrttskrtttt” (shout out to Quavo):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*lYAgUzqOHgyBcLxDDo4VCg.png" /></figure><p>Hmm, there’s nothing here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*fGRDEhZy-XyZisxgGVpgow.png" /></figure><p>BUT we get an important piece of information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*1wY9EynwToTm6MtpBO9znw.png" /></figure><p>We get a 400 error, which is the desired answer since the string is not properly encoded.</p><p>If you remember, we were supposed to print out “This is not an authentic signature”.</p><p>It’s not lost ! It’s simply in your lambda functions logs.</p><h3>Lambda Logs</h3><p>Head on to the lambda dashboard and click on your function. Then click on the <em>Monitoring</em> tab and click on <em>View logs in CloudWatch.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMatCXrlecEasSEr0_NZJA.png" /></figure><p>You find yourself on your Lambda’s logs, a report of every time your lambda has been triggered :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*-LR-sp9QAbDX7OTYzqpJsg.png" /></figure><p>When I click on the log stream, I find these lines:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*jK3WA_eb6g7k-Z-BxXfcdw.png" /></figure><p>The lambda logs/Postman/Serverless combo is super efficient to debug anything super fast.</p><h3><strong>Congrats you have your backend !</strong></h3><p>You’re all done and it’s all it took, all you have to do next is edit your frontend to include your brand new api.</p><p>OH, by the way, Lambdas are probably super cheaper than what you considered or what you have at the moment since you get 1 million free requests per month.</p><p>Its just the perfect way to test stuff out !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*hmNbj2PMemn0gOE_RRW5mQ.png" /></figure><h3>Conclusion</h3><p>Through these two articles learnt a few things, namely:</p><ul><li>How to host a website on S3</li><li>Distribute it securely with Cloudfront</li><li>Create a serverless backend with Lambdas</li></ul><p>With this base the sky is the limit, and it gives a firm base to test out websites without emptying your pockets.</p><p>As for what’s next, there are things we haven’t talked about that I have implemented on my website :</p><ul><li>Securing your API routes with keys and usage plans</li><li>Giving a custom domain to your API gateway endpoints</li><li>Anything else I have not mentioned or detailed</li></ul><p>Hope you liked the articles !</p><p>If you have any suggestion, question or criticism I’ll gladly take them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dd244f194f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a website from scratch under the AWS free tier]]></title>
            <link>https://anaselmhamdi.medium.com/how-to-build-a-website-from-scratch-under-the-aws-free-tier-d95353a4b0e9?source=rss-fc07b031bad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d95353a4b0e9</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[growth]]></category>
            <dc:creator><![CDATA[Anas El Mhamdi]]></dc:creator>
            <pubDate>Wed, 04 Sep 2019 18:58:48 GMT</pubDate>
            <atom:updated>2019-09-05T13:51:47.465Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to build a website from scratch under the AWS free tier (Part I : FrontEnd)</h3><p>I used to love to pick up any CMS to launch and host a website.</p><p>As a growth hacker, its a valuable resource that allows you to test different ideas, landing pages etc.</p><p>With experience, I realized that Wordpress was not customizable enough anymore for me. Moreover it started to get on the expensive side and I felt like I didn’t get what I wanted for what I was paying.</p><p>That’s how this story came about, I needed a quick and easy solution to host potential tech product, where I can manage front and back end on a suite of services I am familiar with.</p><p>This two part tutorial will show you how to build (or transfer) your website from scratch on AWS in a few steps, <strong>making it faster, safer and cheaper.</strong></p><p>This first part is going to focus on how to host and distribute the front end of our website. I will use my website <a href="https://www.5e-pour-rien.com/">5€ pour rien</a> as an example. (Literally means 5 euros for nothing and yes it’s dumb)</p><p>In this part, we are going to be using:</p><ul><li><a href="https://s3.console.aws.amazon.com/s3/buckets">S3</a> to store and host our content</li><li><a href="https://console.aws.amazon.com/cloudfront/home">Cloudfront</a> to distribute it and the <a href="http://console.aws.amazon.com/acm">Amazon Certificate Manager</a> to secure it.</li><li><a href="https://console.aws.amazon.com/route53">Route 53</a>/Your domain name manager to edit the DNS zone of your domain</li></ul><h3><em>Prerequisites</em></h3><ul><li><a href="https://console.aws.amazon.com/">An AWS account </a>(obviously)</li><li>A domain name, if you don’t have one, I’ll recommend you to buy one on <a href="https://console.aws.amazon.com/route53/home">AWS’ Route 53</a>. If you do so, you’ll have less configuration to do overall.</li></ul><h3>Host your website files on S3</h3><ol><li>If you already have a hand on your website files, you’re all good. Otherwise, you can start a new site from scratch yourself or with a template from <a href="https://html5up.net/">HTML5UP</a>.</li></ol><p>2. Once you’re there, login to your AWS console, and get to s3 to create two buckets, named <em>your-domain.com</em> and <em>www.your-domain.com</em>.<br>We’ll modify the permissions later, so you can use the default options so far :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LeJdhQmrfO-eCJEz7cRqhA.png" /><figcaption>The S3 interface, i already created the buckets</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*b37s1NwrYrV-PGO-lBbSHA.png" /><figcaption>The two created buckets</figcaption></figure><p>3. Then upload your files to the www.your-domain.com bucket.</p><p>4. Change the options and permissions of your buckets :</p><ul><li>First, for your <a href="http://www.your-domain.com/">www.your-domain.com</a> bucket, go to the <em>Properties </em>tab, and select <em>Static Web Hosting. </em>Type in your index document, usually<em> index.html </em>and save.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*5tBqFPewk0saTFsSTKL9_Q.png" /></figure><ul><li>We have to make the objects of this bucket public to be shown on the interwebs so <strong>take caution in not hardcoding any sensitive data in the files you upload</strong>. Go to the <em>Permissions</em> tab, and copy paste the following by replacing <em>your-domain.com</em> :</li></ul><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;PublicReadGetObject&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: &quot;*&quot;,<br>            &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>            &quot;Resource&quot;: &quot;arn:aws:s3:::www.<em>your-domain.com</em>/*&quot;<br>        },<br>        {<br>            &quot;Sid&quot;: &quot;PublicReadForGetBucketObjects&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Principal&quot;: &quot;*&quot;,<br>            &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>            &quot;Resource&quot;: &quot;arn:aws:s3:::www.<em>your-domain.com</em>/*&quot;<br>        }<br>    ]<br>}</pre><ul><li>For the your-domain.com bucket, go to the <em>Properties </em>tab, and select <em>Static Web Hosting, </em>but this time select<em> Redirect requests</em>, selecting the previous bucket as a target bucket. Tick <em>Redirect all requests</em> if it’s not done already.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*rMdkquQ3wFUNXW8HInKLZA.png" /></figure><ul><li>For permissions, paste the same block changing the www.<em>your-domain.com </em>to<em> </em>simply<em> your-domain.com.</em></li></ul><p>5.<strong> Congrats !</strong> You should already be able to see your site live on the endpoint indicated on the s3 prompt. The only problem is that the url is problably not optimal. To change that we are going to change the DNS settings of our domain name.</p><p>6. <strong>Do this step only if you don’t care about : 1) Your site being secured, 2) Your site not being optimally fast. </strong>Go to your domain name manager and add an <em>A</em> (alias) record with a name of <em>www</em> and the value being the endpoint of your S3 hosted www.your-domain.com website.</p><p>If you’re on Route 53, click on <em>Hosted Zones</em> on the navigation menu, click on your domain, click on C<em>reate Record Set.</em></p><p><em>As name </em>type<em> www </em>before your domain name<em>, </em>select<em> A — IPv4 address, </em>tick<em> Yes </em>on<em> Alias </em>and select your bucket<em>.</em></p><p>You’re done !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*KrIubqGHCaqWXXwqryjvbA.png" /></figure><h3>Secured distribution with Cloudfront</h3><ol><li>Head on over to <a href="https://eu-west-3.console.aws.amazon.com/acm">Amazon’s certificate manager</a> and make <strong>sure you’re on the US-EAST region, because it’s Amazon’s global region</strong>. To change the region, check the upper right corner of the navigation menu. <br>You can then create a global certificate for free by clicking on <em>Request a certificate.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lypOhJE5oVb0U4X3AWNvIw.png" /></figure><p>2. Add your domain names to the certificate (don’t forget the root domain)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsDcl9j47CB6x4z90y5AUA.png" /></figure><p>3. If you have email setup for your domain, go for the email validation, you’ll receive a link confirmation to click to confirm and validate your certificate. <br>Otherwise, select DNS validation and edit your DNS zone accordingly. This method unfortunately takes time (a bit less if you’re on route 53) so you’ll have to wait until your DNS settings are propagated to get the certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*jIXfkz59ZPWsy3YAP9EtsA.png" /><figcaption>Since my domain was bought on Route 53, I could create a record in the Certificate Manager</figcaption></figure><p>4. Get your www bucket endpoint that should look like <em>www.your-domain.com.s3-website.your-region.amazonaws.com.</em></p><p>We’re going to create a new <a href="https://console.aws.amazon.com/cloudfront/home">Cloudfront</a> distributions to distribute and encrypt the content on both our endpoints.</p><p>Click on <em>Create distribution </em>and<em> Get Started </em>on the web portion of the next screen.</p><p>On that screen here are the only things you have to do:</p><ul><li>In the Origin Domain Name paste your endpoint, <strong>do not search for your bucket in the propositions, </strong>for some reason Amazon does not use the proper URL when using it. (The origin ID fills automatically)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*k_Cjm5HIMwUTjfQbGyn1UA.png" /></figure><ul><li>In the Cache Panel below, select <em>Redirect HTTP to HTTPS</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*0P1U7tOAkdpyx8mnk-orKw.png" /></figure><ul><li>In the Distribution Settings, write your alternate CNAME accordingly with the endpoint your are creating the distribution for and select the certificate you created earlier (which should show if you created it on us-east)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*ewscGbWWYCd05hQDsPcuRw.png" /></figure><ul><li>Click on Create Distribution and you’re done ! (in my case the, root domain). A distribution can take up to 40 minutes to be deployed but usually takes between 10 and 20 minutes.</li><li>Keep note of your origin/distribution domain name as we’re going to use it for our next step</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikdkt7Fs6AH45RbN2Z0GaA.png" /><figcaption>Our Cloudfront distribution</figcaption></figure><p>5. There’s only one thing missing now, and that’s to actually use our distributions with our domain name. To do so, we’re going to once again look for our domain name manager.<br>In my case, it’s super easy:</p><ul><li>Click on your domain’s hosted zone and create an <em>A — IP v4 (alias)</em> record, click on <em>Yes</em> for the alias option.</li><li>The alias target should give you options, and if you scroll a bit, you should see your Cloudfront domain name under <em>Cloudfront distributions</em> if you gave the right alternate CNAME when creating the distribution.</li><li>I started with the root domain here so I’d have to repeat the operation with a <a href="http://www.5e-pour-rien.com/">www.5e-pour-rien.com</a> record.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*qZa324BvPv27W5YrduFFaw.png" /><figcaption>Associating the root domain to its cloudfront distribution</figcaption></figure><p>If you don’t use Route 53, the idea is the same, create an A record with a name of <em>@ </em>(itself)<em> </em>and a value of your-domain.com’s Cloudfront distribution domain name (d2xxxxxxx.cloudfront.net) you created.</p><p>Repeat with an A record for <a href="http://www.your-domain.com/">www.your-domain.com</a> and its Cloudfront distribution domain name.</p><p>6. You’re done ! All you have to do is to wait for the distributions to be deployed and for the DNS changes to be propagated.</p><h3>What’s next ?</h3><p>If you already have a backend running, you can just enjoy cheap rates and speed as is.</p><p>If you don’t, stay tuned for part 2 where I explain how to build a super lightweight and scalable back end with AWS Lambdas !</p><h3>Bonus : Make live changes on your website instantly</h3><p>You can change the default options of the Cloudfront caching, but I wouldn’t recommend it since it’s part of what makes the distribution so fast. The alternative is to use <em>Cloudfront invalidations</em> to refresh your website. <br>You get up to 2000 free invalidations per month so you can use them quite a bit although it’s much better to do your biggest changes locally.</p><p>To do so, click on one of your distributions and go on the <em>Invalidations</em> tab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFLWMI8FCxMoL-Bd4yylbQ.png" /></figure><p>Click on <em>Create Invalidation </em>and<em> </em>type<em> /* to </em>invalidate all of your files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*b-HK9ak0-J3k9SzXXsM9OQ.png" /></figure><p>Wait up a bit, and you’re all done ! All your changes are live !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d95353a4b0e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>