Simple SNS to Telegram notifications bot

In this post I’ll guide you through the steps to create a private Telegram bot that can send notifications from Amazon SNS to a one-on-one Telegram chat.

· 5 min read · chatops bots telegram lambda aws

How I fixed the mess in my personal Gmail
I developed a personal email management system with the goals of 1) reliably separating automated emails from personal emails, 2) creating a mechanism to delete unhelpful and expired email in bulk, and 3) auto-archiving important automated emails.

I miss the days when email was mostly for human-to-human communication. But since email became the universal identification mechanism on the web, we have given up control over what lands in our inboxes. We use our email addresses for e-commerce stores, social networks, forums, accounts on websites and apps, newsletters, fundraisers, etc. It’s not an overstatement to say that what once used to be a personal communication medium has become a dump of system-generated email, some of it useful, some complete junk.

· 6 min read · email

How Google Drive works with external disks
It's not well documented, so I run a few tests to understand how exactly Google Drive works with external disks.

I now have more data in Google Drive than can fit into my Mac’s 500 GB of built-in storage. As much I trust Google, I still want to keep a local copy of all of my files and I want it to seamlessly sync with the cloud.

· 5 min read · google drive photos

How to build a Hugo website in AWS Lambda and deploy it to S3
This tutorial explains how to run Hugo in AWS Lambda and deploy a static website to Amazon S3.

Running Hugo in AWS Lambda can be useful if you want to automate your Hugo builds in the cloud and only pay for the build time.

· 9 min read · aws lambda

How to use AWS CLI within a Lambda function (aws s3 sync from Lambda)
A step-by-step process to enable AWS CLI within an AWS Lambda function.

In general, when you want to use AWS CLI in Lambda, it’s best to call AWS APIs directly by using the appropriate SDK from your function’s code. But there’s one specific use case that is easier to do with the AWS CLI than API: aws s3 sync. This post will show how to enable AWS CLI in the Lambda execution environment.

· 6 min read · aws lambda

AWS Lambda: libstdc++.so.6 version GLIBCXX_3.4.20 not found error
Step-by-step guidance to fix the `/usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.20' not found` error in AWS Lambda when using a custom binary.

Unable to import module 'handler': /usr/lib64/libstdc++.so.6: version
`GLIBCXX_3.4.20' not found

I ran into this issue when I tried to run the static website generator Hugo on Lambda. The solution was not trivial, so hopefully this post will save you some time.

· 5 min read · aws lambda