article thumbnail

AWS Lambda Benchmarking

Xebia

In this blog post, we examine the relative costs of different language runtimes on AWS Lambda. Many languages can be used with AWS Lambda today, so we focus on four interesting ones. Rust just came to AWS Lambda in November 2023 , so probably a lot of folks are wondering whether to try it out.

Lambda 130
article thumbnail

Using design patterns in AWS Lambda

Xebia

In this blog post I will go over some reasons why you should be using design patterns in your Lambda functions Getting started To get started with AWS Lambda is quite easy, and this is also the reason why some crucial steps are skipped. Or use a compiled language like golang for your Lambda functions.

Lambda 130
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Automate Lambda Dependencies with Terraform

Xebia

Recently I have been working on a few projects that involved Lambda functions. Dir Structure For this solution to work the project directory should be structured in a way so that terraform can find the dependencies you are looking to install to your Lambda. config } provider "aws" { #. requests>=2.0.0

Lambda 130
article thumbnail

Sending OpenTelemetry Data From AWS Lambda to Honeycomb

Honeycomb

In this post, I describe how to send OpenTelemetry (OTel) data from an AWS Lambda instance to Honeycomb. I will be showing these steps using a Lambda written in Python and created and deployed using AWS Serverless Application Model (AWS SAM). Add your Honeycomb environment’s API key to AWS Secrets Manager.

Lambda 52
article thumbnail

Stubbing AWS Service calls in Golang

Xebia

With Python you have a stubber that helps you mock the AWS API. Client } func New() (*Lambda, error) { cfg, err := config.LoadDefaultConfig(context.TODO()) m := new(Lambda) m.SetS3Client(s3.NewFromConfig(cfg)) NewFromConfig(cfg)) return m, err } func (x *Lambda) SetS3Client(client *s3.Client) PutObjectInput) (*s3.PutObjectOutput,

AWS 130
article thumbnail

Using undocumented AWS APIs

Xebia

The first place to go to find out if this information is somehow exposed would be the AWS SDKs. After doing a lot of policies using the manual process, I remembered that AWS has a policy-editing tool in the console that seems to be using the information I was looking up manually. This session needs no actual rights to AWS.

AWS 147
article thumbnail

Easy lambdas with Netlify

Xebia

Over the past years I’ve tried working with lambda functions on and off a couple of times. Each time I got stuck, either clicking in AWS UIs or writing YAML files. Netlify changes all that by making lambdas easy to use. The post Easy lambdas with Netlify appeared first on Xebia. file in src/functions.

Lambda 130