<?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 Wendy Liew on Medium]]></title>
        <description><![CDATA[Stories by Wendy Liew on Medium]]></description>
        <link>https://medium.com/@wendyliew99?source=rss-a73c8867022------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iQID-eiNejSJnw6g.jpg</url>
            <title>Stories by Wendy Liew on Medium</title>
            <link>https://medium.com/@wendyliew99?source=rss-a73c8867022------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 09:21:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wendyliew99/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[Static website for EventCatalog with S3]]></title>
            <link>https://medium.com/@wendyliew99/static-website-for-eventcatalog-with-s3-c0da25c3cfe8?source=rss-a73c8867022------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0da25c3cfe8</guid>
            <category><![CDATA[asyncapi]]></category>
            <category><![CDATA[events-catalog]]></category>
            <dc:creator><![CDATA[Wendy Liew]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 05:01:39 GMT</pubDate>
            <atom:updated>2024-01-15T05:01:39.587Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been searching for a way to document events for a while and have tried to use async openAPI to document our event specification with sample payload, much like swagger or openAPI specification.</p><p>However, over this last weekend, my google search came back with <a href="https://www.eventcatalog.dev/">Event Catalog</a> by David Boyne and it caught my interest and I started looking into it, for whether its use case can help me in the long run. So far, my exploration has been very preliminary but it is looking very promising.</p><p>I want to capture what I have done so far, not just for myself to remember the few things I ran into but also to help others who might run into the same situation or need as me.</p><p>My 1st attempt is to scaffold a new event catalog with the windows laptop as outline <a href="https://www.eventcatalog.dev/docs/installation#scaffold-project-website">here</a>. That didn’t go well with some npm build error.</p><p>My 2nd attempt is the next day and I was using my iMac to do exactly the same thing. However, the <em>npm run build</em> ran this time but I ran into this same <a href="https://github.com/boyney123/eventcatalog/issues/468">issue</a>. After going through the workaround below, I was able to do <em>yarn start </em>successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*i_bfO3yt_GKZR8lJOc_grw.png" /></figure><p>And going to <a href="http://localhost:3000/">http://localhost:3000</a> shows me the default EventCatalog that came out of the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*tU0zvu4RcZizHMGNTK7Epw.png" /></figure><p>I then proceed to manually deploy this as a static website using S3 and CloudFront, knowing that the <strong><em>out</em></strong> folder of the event catalog project contains all the static files.</p><p>First create a S3 bucket <em>eventcatalog</em>, upload all files and folder under the <em>out</em> folder. Make this S3 a publicly accessible for all its objects and add the following bucket policy (which if missing, you will get access denied when accessing this site).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*0519Mmo1o3SIOftEjnS9Jg.png" /></figure><p>Under CloudFront, I added a new distribution and add an origin to the above S3 bucket —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cnHHTl8EEygshS6rHul3g.png" /></figure><p>Ensure the default root object is set to <em>index.html —</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*Lr_vTLEut1iJ8lSSjZuMLg.png" /></figure><p>Ensure the following behavior is set for this distribution —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*iiJjbG8AZKLiKVxq17sDHw.png" /></figure><p>Grab the distribution domain name from its details section and navigate to it, and you’ll see the default event catalog that came out of the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1dSfQRV7zw5KjQVn2XIjZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NAiVHAzK0HfiQ_mCc8vHQw.png" /></figure><p>Well, that’s it for now and hopefully I get some time to get this stood up with CDK and so on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0da25c3cfe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exposing React App on S3 and API Gateway to CloudFront]]></title>
            <link>https://medium.com/@wendyliew99/exposing-react-app-on-s3-and-api-gateway-to-cloudfront-eca7bade9201?source=rss-a73c8867022------2</link>
            <guid isPermaLink="false">https://medium.com/p/eca7bade9201</guid>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Wendy Liew]]></dc:creator>
            <pubDate>Tue, 22 Mar 2022 17:08:19 GMT</pubDate>
            <atom:updated>2022-03-22T17:08:19.395Z</atom:updated>
            <content:encoded><![CDATA[<p>Assuming you have a <strong>React </strong>app deployed to a <strong>S3 </strong>bucket as static website hosting and <strong>REST </strong>endpoints made available on <strong>API Gateway </strong>and both of them both working independently.</p><p>Now you need the <strong>React </strong>app to call the <strong>REST </strong>endpoint but since the above are serve from different origins, you run into problem.</p><p>You will need to create a <strong>CloudFront (CF)</strong> distribution that will have 2 origins, one for the <strong>S3 </strong>and one for <strong>API Gateway (APIG)</strong>.</p><p>The creation of a new CF distribution takes a while. Make sure the Last modified is not showing ‘<strong>Deploying…</strong>’ like shown below, before configuring it further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2aUJYq8Oi9KwmxBn0Z1kg.png" /></figure><p>After adding the origin of your S3, access it via the CF distribution domain name, e.g. <a href="https://d2jla6yslnn4ok.cloudfront.net/">https://d2jla6yslnn4ok.cloudfront.net</a> for the above. Ensure you have index.html specified as the default loading page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*XEtw1FdJ3m0yDPlRZRAeiA.png" /></figure><p>Now, proceed to add another origin to <strong>APIG</strong> to your CF distribution. The origin path set should be the deployment stage of your <strong>APIG</strong> (e.g. /dev). When you call the CF endpoint to reach <strong>APIG</strong>, you don’t need to include this origin path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*zRu-JEC_3WqirhCuN4Eh-w.png" /></figure><p>However, because your <strong>CF </strong>is now having multiple origin, it needs to know which origin to go to based on the specified path pattern set by each origin. So you will need to add a new <strong>behavior</strong> to the <strong>CF </strong>for <strong>APIG </strong>and include a path pattern like <em>/api/*</em> so that if a <em>HTTPS </em>request comes into <strong>CF </strong>and it has<em> /api/*</em>, the <strong>APIG </strong>will get routed to first. Everything else will go to the <strong>S3 </strong>bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J4TTGilPcmlYge29pWpVvA.png" /></figure><p>Also remember to set cache policy for this behavior of <strong>APIG </strong>to be disabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*A897O14Ko8rtziAgz2csTg.png" /></figure><h3>Troubleshooting</h3><p>If you’re getting Missing Authentication Token when calling your REST endpoint from <strong>POSTMAN</strong> with the CF URL, make sure</p><ul><li>the <strong>APIG </strong>endpoint has Authorization of None</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*JVLv8YjtNVdYXHhd1EXN3Q.png" /></figure><ul><li>the <strong>APIG </strong>endpoint is suffixed with the path pattern (i.e. <em>/api</em>) that you set for the behavior</li><li>ensure the deployed stage of <strong>APIG </strong>is set as the origin path in <strong>CF</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eca7bade9201" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working moms during pandemic]]></title>
            <link>https://medium.com/@wendyliew99/working-moms-during-pandemic-94cb8ea59c46?source=rss-a73c8867022------2</link>
            <guid isPermaLink="false">https://medium.com/p/94cb8ea59c46</guid>
            <dc:creator><![CDATA[Wendy Liew]]></dc:creator>
            <pubDate>Mon, 03 Jan 2022 14:51:29 GMT</pubDate>
            <atom:updated>2023-04-16T19:40:53.817Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been lucky to survive the pandemic without losing my job. In fact, being a software developer allows me to switch to remote work in a matter of hours.</p><p>Now being a mother of 3 school age kids, I considered myself to be double lucky as school shuts down with short notice or kids have to go online from home. Many working mothers who are front line workers have to make arrangements to have their kids safe at home with care being able to go online school from home. I cannot imagine the stress of this on parents, need to go to work to put food on the table for the family and yet have to juggle the schedule with very short notice on child care and online school.</p><p>How interrupting are my kids during my working hours? They get off at around 3pm and during the last hour or two of my work, from 3–5pm, it’s usually manageable in fulfilling kids requests from cutting them some fruits to asking them to go shower right after school.</p><p>However, on Thursday, they get off at noon, the whole afternoon they are home and my youngest could be very demanding asking for someone to play with her. She doesn’t like to play computer games that much and her older siblings just go on screen time after showering.</p><p>If you ask me, do I feel guilty for not being able to tend to them for these few hours of the week to the degree that I would like to be, as a playmate to my youngest or getting my older ones to work on some worksheets so they keep up with their academics. Of course, I feel like I should have reduce my work load, get a part-time job so I can free up time to spent quality time like baking cookies with kids. I did try to land on part-time contract work or part-time job doing what I want to do, and it’s almost next to impossible.</p><p>So going into the new year, my first resolution is to better manage my time and planning ahead on what quality time I can spent with my kids while working full time on a job that’s worth my time investment. My other also equally important resolution is to give love to myself, to take better care of my health by taking more walks and doing more yoga to better manage my emotional and mental health. I want to grow and become a person who is able to give love to my surrounding people without expecting anything back.</p><p>It takes continuous effort to reflect on my actions on how I am spending my time, how to become less selfish, how to give more and how to put others before yourself. I think it has to start with some self care as when I am calm, it allows me to reflect continuously to take the proper steps and making better and little decisions here and there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94cb8ea59c46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>