Remove directory
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. This means all relevant files must be within this directory.

Lambda 130
article thumbnail

Using Golang for your AWS Lambda Functions

Xebia

I was sparked on a XKE to do a short experiment with using Golang for my AWS Lambda Functions. Tutorial Let’s deploy a small stack including a single Lambda function. Sub /aws/lambda/${MyFunction} RetentionInDays: 7 A few things are going on here. This Makefile is used to compile the lambda function.

Lambda 130
Insiders

Sign Up for our Newsletter

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

Trending Sources

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 OTel and Honeycomb environment variables to your template configuration for your Lambda.

Lambda 52
article thumbnail

Deploying Ruby AWS Lambda functions with CDK

MagmaLabs

The following commands will initialize a new TypeScript CDK project, a git repo with the necessary directory/file structure, and install all libraries with npm. Now, let's run the cdk bootstrap command, and the output should be something like: Creating a New Ruby Lambda Function. Install & Configure AWS CLI. Initializing an App.

Lambda 98
article thumbnail

Using Golang for your Serverless projects

Xebia

In one of my previous blogs I wrote why I switched to compiled languages for my lambda functions. But using Golang for your lambda functions does add some challenges. You have a go.mod file in the project root directory, and at least a main.go This is because each lambda function needs to be its own module.

article thumbnail

How to create and deploy a golang AWS CloudFormation custom provider in less than 5 minutes

Xebia

You just implement a create, update and delete method in a Lambda and you are done. When you change to the directory and type: $ make deploy-provider $ make deploy-demo Your provider will be up-and-running in less than 5 minutes! Creating a custom resource in CloudFormation is really simple. This copier template has it all!

AWS 130
article thumbnail

Automatically deploy REST APIs with Lambda authorizers using AWS CDK

CircleCI

Adding a Lambda authorizer and defining CDK constructs. You can also learn how to automate AWS Lambda function deployments to AWS CDK. In this tutorial, I will guide you through using AWS CDK to deploy REST APIs with AWS Lambda-based authorizers. Create a new directory for the CDK project and navigate into it.

Lambda 52