article thumbnail

Relative Python imports in a Dockerized lambda function

Xebia

Relative Python imports can be tricky for lambda functions. But recently, I ran into the same issue with Dockerized lambda functions. py touch lib/functions/hello-world/requirements.txt touch lib/functions/hello-world/Dockerfile Now you will need to fill the Dockerfile, like this: FROM public.ecr.aws/lambda/python:3.12

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.

article thumbnail

How to Create Your First Lambda Function on AWS

MagmaLabs

In the beginning, the documentation for AWS LAMBDAS can be intimidating at times, but don’t worry, in this post, I will help you with the first steps to create an AWS LAMBDA Function. What’s a Lambda Function??. AWS Lambda is a compute service that lets you run code without provisioning or managing servers.

Lambda 98
article thumbnail

Scheduling Amazon DynamoDB Backups with Lambda, Python, and Boto3

Linux Academy

A simple way to achieve this is to use an Amazon CloudWatch Events rule to trigger an AWS Lambda function daily. In this hands-on AWS lab, you will write a Lambda function in Python using the Boto3 library. Setting this up requires configuring an IAM role, setting a CloudWatch rule, and creating a Lambda function. every 1 day).

Lambda 68
article thumbnail

Create a generative AI–powered custom Google Chat application using Amazon Bedrock

AWS Machine Learning - AI

Before processing the request, a Lambda authorizer function associated with the API Gateway authenticates the incoming message. After it’s authenticated, the request is forwarded to another Lambda function that contains our core application logic. This request contains the user’s message and relevant metadata.

article thumbnail

AWS Lambda Versioning and Aliases

Linux Academy

As I detailed in a previous blog post, I’m continuing to update the Linux Academy AWS DevOps Pro certification course. The course has three new sections (and Lambda Versioning and Aliases plays an important part in the Lambda section): Deployment Pipelines. AWS Lambda, and. AWS Lambda and Serverless Concepts.

Lambda 60
article thumbnail

Using SQS with Lambda | AWS DevOps Pro

Linux Academy

The new exam has a few new wrinkles and I’ve been working feverishly to update the existing Linux Academy AWS DevOps Pro Certification course. AWS Lambda. Lambda is an event-driven service and can be triggered by any number of events from many different Event Sources. Using AWS SQS as an Event Source for Lambda.

Lambda 60