32,042 questions
0
votes
0
answers
71
views
Unable to use the Alexa REST API to update the "datastore" for an Alexa Widget
I have written a simple Alexa skill which works and I've now added a Widget, these both display as expected.
I am now trying to use the datastore but every time I try to update the store, I am getting ...
-3
votes
1
answer
48
views
Unable to update AWS Lambda because function execution role doesn’t have permission [closed]
I've created a function that has been working using Python 3.9 but I want to update to Python 3.14.
I've logged into AWS using the "root" account but when I try to update the function's ...
1
vote
1
answer
57
views
Issue consuming API that returns Base64 Excel file in Angular
I am facing difficulties consuming an API in Angular that returns an Excel file encoded in Base64. The API is configured in AWS API Gateway and uses a Lambda function to generate the file. Although ...
-4
votes
1
answer
31
views
How do I find S3 Trigger conflicts in AWS Lambda? [closed]
I've built a Lambda function in the AWS Console, and it seems fine, but when I add an S3 Trigger, it gives me a message "Confugrations overlap. Configurations on the same bucket cannot share a ...
0
votes
0
answers
35
views
AWS Error in Cloudfront + Appsync with 2 Authorizers OICD and new additional API_KEY, Cloudfront forcing x-api-key
I have an application that is in production working with Cloudfront + Appsync with OICD Authorizer. In the Cloudfront configuration for some reason it is adding in the custom headers if API_KEY exists ...
Advice
0
votes
6
replies
50
views
Display line of code in AWS CloudWatch for Amplify NodeJS written in typescript
I have the following resource in Amplify v2:
export const myFunction = defineFunction({
name: 'my-function',
layers: {
sharp: "sharp_arm64:1",
},
environment: {
BUCKET_NAME: ...
0
votes
1
answer
65
views
I have a working AWS Appsync application that uses OPENID_CONNECT as authorization, when I added API_KEY as additional broke the old routes
I have a working AWS Appsync application that uses OPENID_CONNECT as authorization, when I added API_KEY as additional broke the old routes. For some reason in the appsync schema it had in all routes ...
-1
votes
0
answers
63
views
AWS API Gateway HTTP API v2 removes padding (`=`) from query parameters when calling Lambda (Java Spring Boot)
I’m using AWS API Gateway HTTP API v2 with a Lambda function running a Java Spring Boot application
The integration type is Lambda proxy integration with payloadFormatVersion: 2.0.
Everything works ...
-1
votes
1
answer
73
views
Intermittent 500 Internal Server Error in AWS Lambda API (Different endpoints fail randomly)
I’m facing an issue with my React frontend and AWS Lambda backend setup.
When my app makes multiple API calls at the same time, some of them randomly return a 500 Internal Server Error, while others ...
-4
votes
1
answer
69
views
AWS Lambda Python script calling SageMaker: AlgorithmError: Framework Error
I am using lambda and Python and S3.
# lambda_bootstrap_train.py
import boto3
import time
import json
import os
sm = boto3.client('sagemaker', region_name='us-east-2')
s3 = boto3.client('s3', ...
-1
votes
0
answers
36
views
Why are all versions of Lambda@Edge function being modified when I deploy the latest code?
I have a Lambda@Edge function which has 2 versions. Version 1 has non-functional code and version 2 has the latest operational code. What that function does is it fetches an object from an S3 bucket ...
0
votes
0
answers
27
views
Client of Amplify Gen 2 is not being properly generated for subscription
Logging const client = generateClient<Schema>(); results in the following, which shows that the client is improperly generated:
{
"models": {},
"enums": {},
"...
1
vote
1
answer
90
views
Awswrangler: Parquet read into multiple of expected space
In a Lambda, I'm using AWS Wrangler to read data out of a date partitioned set of parquets and concatenate them together. I am doing this by calling wr.s3.read_parquet in a loop, compiling the loaded ...
1
vote
0
answers
58
views
How to identify which IdP a user used to sign in during AWS Cognito PreAuthentication trigger?
How can I determine which Identity Provider (IdP) a user used to sign in during the AWS Cognito PreAuthentication trigger, when multiple federated IdPs (SAML/OIDC) are linked to the same user?
In the ...
0
votes
1
answer
50
views
AWS Lambda inside VPC cannot connect to RDS MySQL (timeout)
Background
I'm building a Lambda function (Node.js 20 runtime) that connects to an Amazon RDS MySQL database within the same VPC.
Both the Lambda and the RDS instance are deployed in private subnets.
...
1
vote
0
answers
69
views
Is there an API to check for currently supported runtimes by AWS Lambda?
I’m developing a tool to speed up the AWS Lambda creation process for my colleagues and I, as we use it extensively, and I need to periodically check for deprecated runtimes. The idea is to create a ...
1
vote
1
answer
72
views
Lock a DynamoDB table on reading/writing operations
I have a DynamoDB table with entries that can have a status (waiting, error, running...). Only up to 25 entries can have running status.
My objective is to have an AWS Lambda function that checks if ...
0
votes
2
answers
53
views
AWS CloudWatch -> Firehose/Lambda -> Splunk flow -- lambda response too large
Given a CloudWatch -> Firehose -> Splunk flow, where Firehose passes incoming log records to a lambda, often the return from the lambda is larger than the allowed 6MB.
I've captured the payload ...
0
votes
0
answers
69
views
API Gateway not forwarding real path to Lambda
I have a Lambda (Go) behind an HTTP API Gateway.
Route /webhook is set correctly (payload format 2.0, not $default), but every request to /webhook still triggers my root / handler, im not getting the ...
0
votes
1
answer
87
views
Spring Boot OAuth2 with Casdoor behind AWS Lambda + HTTP API v2: state parameter encoding issue
I’m developing a Spring Boot application deployed behind an AWS API Gateway (HTTP API v2) with Lambda (handler based on SpringBootLambdaContainerHandler and HttpApiV2ProxyRequest).
I’m using OAuth2 ...
0
votes
0
answers
53
views
AWS Lex + Lambda + API Gateway integration — request stuck on “Thinking…” and Lambda not triggered
I’ve built a simple web-based chatbot (called Engineer’s Toolkit) that uses Amazon Lex, AWS Lambda, and API Gateway, with a static frontend hosted on S3.
The flow is supposed to be:
Frontend (S3) → ...
0
votes
0
answers
52
views
Can't get AWS Lambda Powertools dynamic routes to work
from aws_lambda_powertools.utilities.typing import LambdaContext
from aws_lambda_powertools.event_handler import APIGatewayHttpResolver
from aws_lambda_powertools.logging import Logger
from validate ...
0
votes
1
answer
28
views
AWS Lambda not triggering on S3 ObjectCreated:Put after code edit. What am I missing?
I have an S3 bucket that should invoke a Lambda function on ObjectCreated:Put. This used to work. After editing the Lambda code in the console, new uploads stopped triggering the function. I do not ...
0
votes
1
answer
69
views
AWS Lambda: Runtime.ImportModuleError: /var/task/psycopg2/_psycopg.so: file too short after copying psycopg2 folder
I'm trying to use psycopg2 in an AWS Lambda function (Python 3.11 runtime).
I followed the jkehler/awslambda-psycopg2
repository and copied the psycopg2-3.11 folders directly into my Lambda deployment ...
0
votes
0
answers
34
views
In Remotion, Image Crop option is not working
I'm trying to generate a video using remotion library.
I have used the following two images
I have cropped the top option of image and places it on after another vertically. Please check the following ...
0
votes
1
answer
59
views
How to automatically extract AWS Lambda configurations to Terraform for GCP migration? [closed]
I'm migrating multiple AWS Lambda functions to GCP and need to generate Terraform configurations that match the existing AWS setup. Currently, I'm manually writing each Lambda configuration, which is ...
0
votes
0
answers
64
views
AWS Lambda + SSM RunCommand returns stale GetLastInputInfo() timestamp on Windows EC2
I’m working on an AWS setup where I need to detect last user activity (keyboard/mouse input) on a Windows EC2 instance.
Inside the instance, if I run this PowerShell snippet directly, it works ...
0
votes
1
answer
70
views
Terraform lambda runtime management config: Fetch ALL lambda's ARN's
Hi I am working on something very simple
I am creating a lambda runtime management config to manage all my lambda. I have around 9 existing ones.
resource "aws_lambda_runtime_management_config&...
2
votes
1
answer
118
views
Remotion Video has audio quality issue
I'm trying to generate a video using remotion library.
We can combine the video and text and generate an new video.
I used to place the text at the bottom of the video and generate an video.
Scenario ...
0
votes
0
answers
28
views
Bundling files with a lambda function in Amplify Gen2
I am trying to reference a directory of files in a lambda function using Amplify Gen2. I have created the folder in /functions/validateJsonAgainstSchema with the handler.ts file
import Ajv2020 from '...
1
vote
1
answer
52
views
What does "GB-seconds" describe in Cloud Computing (Function as a Service)?
AWS defines its prices for lambda in terms of GB-seconds, and so does Azure for its prices for functions.
What does that unit refer to? Are those Gigabytes of memory allocated for a number of seconds?
1
vote
1
answer
116
views
takeWhile equivalent for Kotlin maps
My Kotlin project needs to parse files and keep track of the outcome:
fun parseFiles(dp:MyDataProvider, files:List<String>)
{
//store the status of each processed file
val statusMap = ...
0
votes
1
answer
149
views
AWS Lambda container (aws-nuke) exits with Runtime.ExitError even though process returns exit code 0 [closed]
I have aws-nuke running on Lambda using a container. aws-nuke is returning exit code 0, but the Lambda returns Runtime.ExitError
Cloud watch logs:
...
Scan complete: 221 total, 0 nukeable, 221 ...
2
votes
1
answer
44
views
Duplicated execution in node lambda function coldstar
Let the following lambda handler:
export const handler = async (event:any) => {
console.log("[PROCESS] Starting process");
return {status: "OK"};
}
And when executed ...
1
vote
2
answers
132
views
AWS RDS record insert to trigger a REST API call?
I need to implement a MS 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 ...
0
votes
2
answers
109
views
Redshift 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 simple
def lambda_handler(event, context):
print("Received event:&...
0
votes
0
answers
58
views
Handling 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 ...
0
votes
0
answers
54
views
AWS X-Ray trace ID appears inconsistently for Spring Boot 3.4.3 Lambda (Java 17, X-Ray SDK 2.19.0)
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 ...
0
votes
0
answers
95
views
Reading 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 ...
3
votes
2
answers
252
views
Value for argument "limit" is not a valid integer, but only when deployed on AWS Lambda, and only in one specific route
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 optional
And:
GET /pages?page=1&limit=10
// page and limit are ...
0
votes
1
answer
112
views
How 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-go
Created the file main.go and copy pasted the ...
3
votes
1
answer
210
views
Lambda 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 lower
My Dockerfile:
FROM public.ecr.aws/lambda/python:3.11
# Install
RUN pip install '...
0
votes
3
answers
136
views
pg8000 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 (...
1
vote
0
answers
38
views
SAM 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 ...
1
vote
1
answer
98
views
Express.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 data.
...
0
votes
1
answer
85
views
Env variable is not set in my python lambda function
new to AWS and sam
notice my sam template.yaml below.
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
backend
Parameters:
DEBUG:
...
1
vote
2
answers
159
views
AWS Lambda + CodeArtifactUserFailedException
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 behavior:
...
0
votes
2
answers
189
views
AWS lambda destination using "Event source mapping invocation"
I have a lambda function that has an SQS queue as a trigger.
I've understood that this sort of trigger causes a synchronous invocation, and that if I want a destination, it must be set up accordingly....
0
votes
1
answer
82
views
Not able to load ESM library at run time in a CJS project
I am working on a serverless project. Following is the snippet of serverless configuration
bundle:
sourcemaps: true
disableForkTsChecker: true
externals:
- newrelic # Keeps ...
0
votes
0
answers
35
views
Pycharm AWS Toolkit Plugin - Can't create AWS Serverless Application
I have installed the AWS SAM CLI and the AWS toolkit plugin.
I do not understand why the SAM template is suppose to be.
There is a SAM template for node but not python. I tried to create a python ...