This is the code for an AWS Lambda that automatically updates my personal website each time I make a new blog post.
I have a blog whose content is stored in a git repository. I also have a static personal website that is hosted on S3. When I push a new post to the blog's repository, this Lambda gets triggered. It downloads the repository and gets the name and URL of the most recent blog post. Then it updates the HTML file stored in the S3 bucket with a link to the new blog post.