Posts Tagged “aws-lambda”
Easy Access of Cloudformation Lambda Environment Variables.
11 September 2023
Sometimes you want to run your lambda function deployed as a cloudformation
stack locally for testing purposes but you don’t want to hard code any of the
underlying resources into your environment. These resources might be things
like DynamoDB tables, SNS topics or SQS urls. Their names aren’t hard coded,
and shouldn’t be hard coded otherwise you have a singleton stack. Sometimes
you’re just a bit too impatient to spin everything up using the SAM cli, and
don’t want to debug docker issues, so this helps.
Building a Go Application Inside of AWS CloudShell
29 September 2022
I’ve been learning a little bit of golang as of late, and I wanted to run it on
AWS Lambda. I had a couple errors come up about my libc, and learned that
I need to build my applications on Amazon Linux, so they can run on lambda. I
didn’t want to set up a CodeBuild just to play with a few toy example programs
or setup a couple docker containers. In fact we don’t even need to since AWS
provides CloudShell, a complete shell environment available to every user
of an AWS account.
Implementing a Table Create & View Update in Athena using AWS Lambda
01 February 2022
I have a DynamoDB table that is automatically exported as JSON to
compute some reports. I wanted to automate the table creation process
and load steps. Amazon Athena allows querying from raw files stored on
S3, which allows reporting when a full database would be too expensive
to run because it’s reports are only needed a low percentage of the time
or a full database is not required. It’s billed by the amount of data
scanned, which makes it relatively cheap for my use case.
Adding Search to My Static Blog Using AWS Lambda and SQLite
09 July 2021
I always wanted to have search on my site, but it’s statically hosted,
so I can’t have any dynamic content on it. I recently resolved that by
creating a little tiny lambda function on AWS that queries a SQLite
database hosted on S3. Here I’ll walk you through how I created the
back-end for it, and in some later posts I’ll include details on
calculating the cost.