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 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