No duplicate IdentityProperty names allowed - S3Client [closed]
I’m running an AWS Lambda written in Java 21 with Spring Boot 3. My Lambda uses an S3 client, which I instantiate as...
View ArticleExpress.json() works on local but not on AWS Lambda
I've been struggling to parse the request body from POST. I tested the code locally via curl and returns the json body. On Lambda, I tried both curl and Postman but it just returned the buffer...
View ArticleNumpy on AWS GovCloud Lambda
I seem to have a unique issue which is quite surprising! I need to add Numpy to my Lambda function and I'm using a layer rather than Docker (not interested in using Docker at the moment). I use...
View ArticleAWS Step Functions triggering the same Lambda multiple times due to parallel...
I'm working with multiple AWS Step Functions, and each one starts with a cleanup step that triggers the same Lambda function to clean up specific S3 prefixes.Here’s what I’ve observed:We added the same...
View ArticleSAM CLI Lambda container cannot connect to LocalStack Secrets Manager on macOS:
"Could not connect to the endpoint URL: http://localhost:4566/I'm developing a FastAPI-based Lambda function using AWS SAM CLI for local testing on macOS, with LocalStack emulating Secrets Manager. The...
View Articlepg8000 conn.run argument error/ SQL syntax issues inserting data with AWS Lambda
I am using AWS Lambda with Python and pg8000 to insert records into a PostgreSQL RDS database.When conn.run() is called, I get argument errors or syntax errors.INSERT_SQL:INSERT INTO crypto_prices...
View ArticleAWS Lambda + CodeArtifactUserFailedException (resolved)
I'm experiencing a strange issue with an AWS Lambda function that uses a Docker image stored in Amazon ECR. The function has an alias named stable pointing to a published version.Observed...
View ArticleLambda container - Pyarrow and numpy
I have difficulties from this: (aws-lambda-python-alpha): Failed to install numpy 2.3.0 with Python 3.11 or lowerMy Dockerfile:FROM public.ecr.aws/lambda/python:3.11# InstallRUN pip install...
View ArticleHow to develop and test AWS Lambda written in Go locally without SAM?
I tried to run an AWS Lambda written in Go locally. I used function handlers in Go and did this:Initialized a project with go mod init aws-example-goCreated the file main.go and copy pasted the sample...
View ArticleCall from Lambda to get secret from Secrets Manager is very slow
Recently I've started to use Secrets Manager to read credentials from Lambda, and I noticed that reading a secret from SM takes several seconds. Introducing VPC interface endpoint as described here:...
View ArticleValue for argument "limit" is not a valid integer, but only when deployed on...
In this NestJS project we have a few routes. The main ones in this case are:GET /polls?page=1&limit=10// page and limit are optionalAnd:GET /pages?page=1&limit=10// page and limit are...
View ArticleLambda function can't access Secrets Manager
I wrote a lambda function to access a database so the first step is to get secrets from AWS Secrets Manager. I have a private VPC as well as subnets, NAT Gateway, and security group associated with the...
View ArticleHow is it possible to debug an AWS Lambda function from remote?
We are taking over a whole application from another company, and they have built the whole pipeline for deploying, but we still don't have access to it. What we know, that there's a lambda function is...
View ArticleAWS X-Ray trace ID appears inconsistently for Spring Boot 3.4.3 Lambda (Java...
I have a Spring Boot 3 Lambda behind API Gateway. Sometimes the Lambda REPORT line shows an X-Ray trace:enter image description here…but on later calls to the same endpoint, the X-Ray line is missing....
View ArticleHow can I set the AWS API Gateway timeout higher than 30 seconds?
I read here that I can set my Lambda function timeout for 15 minutes (https://aws.amazon.com/about-aws/whats-new/2018/10/aws-lambda-supports-functions-that-can-run-up-to-15-minutes/)However, when I try...
View ArticleReading return values from AWS Bedrock action groups
I am building a service based on AWS Bedrock and I have run into an issue which I have been unable to solve. In short, I want to return the return value of an action in addition to the default text...
View ArticleHandling CORs with AWS CloudFront with a Lambda Function Url Origin
I'm having an issue creating an AWS CloudFront Distribution that returns CORs headers from a Lambda Function URL Origin.I can send test requests via cURL to the Lambda Function URL directly and see the...
View Articleatexit handlers on AWS lambda
Suppose I have a class like this:class Service: def __init__(self): atexit.register(self.cleanup) def cleanup(self): print("cleaning up")And my Lambda function looks like the following:service = new...
View ArticleRedshift cannot parse response from python lambda
I am trying to create and run a lambda function from within Redshift.I have scaled the lambda_handler back to something very simpledef lambda_handler(event, context): print("Received event:", event)...
View ArticleAWS HTTP API Gateway + Lambda ( Node/express) 503 Service unavailable
(I don't have much knowledge in AWS).I have following setup,const express = require("express");const serverless = require("serverless-http");const app = express();app.use(cors());app.use((req, res,...
View ArticleFind which resource triggered CodePipeline when multiple resources from...
I'm using AWS and created a CodePipeline using multiple resources (CodeCommit). I properly getting events like this:{'CodePipeline.job': {'id': '...In this event I can find the latest commit for each...
View ArticleAWS RDS record insert to trigger a REST API call?
I need to implement a SQL Server functionality in RDS where on a row insert for a "Foo" table I need to trigger a REST API call for a "Bar" endpoint.One of the solutions that I came across is to create...
View ArticleCLI SAM Deploy Fails on SSL Certificate Verification
I'm getting the SSL validation error below when trying to do a SAM deploy of our Lambda (on Windows 11) behind the corporate firewall on the VPN. When I disable the VPN, it works just fine.I have tried...
View ArticleSpecify multiple API stages and Lambda Aliases in SAM template defining a...
What I am aiming forI'm trying to write a (single) SAM template for obtaining a Lambda function triggered by Api Gateway events.I want to have multiple API Stages (say "dev", "testing", "prod") and I...
View ArticleLeast-privilege resource-based policy for a CloudFormation custom resource...
I have a CloudFormation template that creates a Lambda-backed custom resource, and would like to apply a resource-based policy to the created Lambda function so it can only be invoked by the...
View Article"module 'os' has no attribute 'add_dll_directory'" in aws lambda function
I'm facing an issue that os does not have an add_dll_directory attribute in the AWS lambda function on the trigger.I have written code for creating a thumbnail of a video and I have tried it locally...
View ArticleError BadRequestException: You must use the customer-specific endpoint
I am trying to create job of mediaconverter aws service through lambda but I m getting error"Error BadRequestException: You must use the customer-specificendpoint"AWS.config.update({region:...
View ArticleLambda function caching issue
We are using aws lambda function to fetch/sync the data from "xyz" site and saving it to our database.Now we are adding one new column into our database that will fetch value from that xyz site's new...
View Articlehow to correctly include "PureCloudPlatformClientV2" dependencies in lambda...
Im unable to use aPureCloudPlatformClientV2 library in my aws lambda function. I have tried researching about this but could not succeed.I first create a new directory and have one .py file for my...
View ArticleWhy is importing bcrypt causing a "Cannot find module...
Using the Javascript bcrypt package, I get this server-side runtime import error only when deployed (on Vercel.com using Next.js /api routes which are AWS Lambdas under the hood):41f80 ERROR Error:...
View Article