Questions tagged [aws-lambda]
AWS Lambda is a compute service that lets you run code without the overhead of managing servers. Questions using this tag should be about interacting with this service in a programming context (e.g. via API calls) or about code running on this service. (Not to be confused with the [lambda] tag, which instead refers to a type of function).
aws-lambda
32,051
questions
-1
votes
0
answers
16
views
How to run lambda functions on-premises without Internet connection?
We have a cloud application that runs on AWS. This application consists of AWS Lambda functions and uses various AWS services, including S3, SQS, SNS, DynamoDB, Timestream, IoT Core (MQTT broker), ...
0
votes
0
answers
6
views
Cognito details not being passed to Lambda through AppSync
I'm creating an app that utilises Lambda that is called with AppSync (both setup within aws_cdk). In the Lambda's I need to use the logged in user (done via cognito) details within it to retrieve data ...
0
votes
1
answer
4
views
AWS API Gateway Lambda Reverse Proxy in Javascript calling Fetch and returning the response headers does not work
If you have and AWS API Gateway with a Lambda Reverse Proxy in Javascript calling Fetch and returning the response headers to the API-Gateway it does not work.
0
votes
0
answers
11
views
How to bypass Lambda Authorizer in API Gateway
I have a (public) API Gateway that uses a custom Lambda authorizer that we need to both (a) authorize custom access token and (b) JWTs.
We now want to trigger another Lambda (via EventBridge Scheduler)...
0
votes
0
answers
12
views
Get File uploaded to AWS S3 bucket and read into Pillow to convert it
I have a Lambda Function which triggers when a file is uploaded to it's bucket. I want to
open said file with Pillow and convert it tp JPEG.
Code looks like this:
import os
import json
import boto3
...
-3
votes
0
answers
28
views
How use FFmpeg from AWS Lambda [closed]
I would like to read the .mp4 file stored in AWS S3 from AWS Lambda. I have the good permissions etc. but nothing works. For transcode is it cheaper to use FFmpeg or Mediaconvert?
import subprocess
...
0
votes
0
answers
11
views
Docker Push to AWS ECR Stuck on Preparing Layers
I'm trying to push a Docker image to AWS ECR, but the push operation gets stuck on the "Preparing" phase for several layers. Some layers are successfully pushed, but others seem to hang ...
0
votes
1
answer
16
views
CodePipeline Integration with on prem Bitbucket Server
Using steps in https://github.com/aws-samples/aws-codepipeline-bitbucket-integration am trying to integrate CodePipeline with on-premises Bitbucket Server.
When I push the code to repo am getting ...
0
votes
0
answers
11
views
Why is Node.js 20.x runtime in AWS Lambda not working with ffprobe?
I am trying to upgrade my lambda function from Node.js 16.x to 20.x. I am using ffprobe 6.1 in a lambda layer. The function returns the starting time code of a .ts video file. The function runs ...
0
votes
0
answers
17
views
missing ARNs for public AWS Lambda layers for aws-sdk
ChatGPT tells me this:
AWS provides a public layer containing the AWS SDK for JavaScript. You can use this layer in your Lambda function.
And that the public layer for AWS SDK for node.js 14.x in ...
-1
votes
0
answers
18
views
AWS Lamda event getting triggered multiple times
I am implementing a solution where whenever a new file is placed in S3 I am triggering an event in my lambda function which inserts the data further to AWS Athena.
But the issue is event is getting ...
-2
votes
0
answers
16
views
Rest api query string parameters encoding and decoding in lambda
question is : form the UI, we give the decoded lendername which should internally convert to encoded lendername and the decoded lendername should hit the database and fetch the requested JSON body.
...
0
votes
0
answers
8
views
Call Keycloak Rest API via Lambda AWS
I will summarize my workflow as follow:
One client Application (Mobile or Web Application)
Users will login these clients by calling a Lambda function Login via API Gateway
Within Login Lambda ...
0
votes
0
answers
27
views
How can i convert date in utc for get data from firebase collectionName in c#
its giving a result but in case of date filter range I'm doing some where mistake which i need to do please help me out
here is model AggregateModel
public string? collectionName { get; set; }
...
0
votes
0
answers
20
views
How to access environment variable in lambda function using Amplify Gen2
I am unable to access env variable in lambda function. So far:
I've read official docs and my project looks like follow:
I have function defined as follows:
export const dailyNotification = ...