aws-lambda Questions

17

I am building a serverless application using AWS Lambda and API Gateway via Visual Studio. I am working in C#, and using the serverless application model (SAM) in order to deploy my API. I build th...
Timberland asked 7/1, 2019 at 0:29

2

I have this project structure (where control is the name and root of my project): control |_ src |_ control_loader -> this has a function inside called also control_loader |_ utils |_ some_he...
Hock asked 1/5, 2022 at 20:22

4

Solved

I'm calling a Lambda from another Lambda asynchronously using: payload = {"id":item['id']} invoke_lambda = lambda_client.invoke(FunctionName="process", InvocationType="Event", Payload=json.dumps...
Buchbinder asked 29/3, 2019 at 17:16

2

Solved

I am building a Python Lambda function code to be executed on AWS (Linux). My Dev machine is not Linux. If I do pip install, I am getting Windows/MacOS related modules. Is there a way to fetch Li...
Panayiotis asked 26/4, 2017 at 6:52

3

Solved

So as a pretext, I've got less than no idea what to do about this. I've researched for about two hours and normally I would just keep going but none of the information I've found has been useful. I...

3

I am trying to discover the VPC IP address or AWS ENI of the currently executing AWS Lambda so that I can use the IP address to filter the VPC logs to find matching records. The Lambda is running i...
Piranesi asked 10/9, 2019 at 1:34

5

Solved

We have a new terraform script that is pushing a docker image to an AWS Lambda. The script works well and correctly connects the fresh image to the Lambda. I can confirm this by checking the Image ...
Leveret asked 22/11, 2022 at 18:13

5

Whenever I try to access serverless lambda function via POST through the browser I get the error Response to preflight request doesn't pass access control check: No >'Access-Control-Allow-Origin...

2

Solved

I am designing a state machine which will run two lambda functions that return each a Json array in parallel. Also, the result of these functions are then pass to two more lambda functions that wil...
Mandate asked 9/8, 2017 at 21:10

3

I set sample lambda function as follows to detect what is context. This function is hooked by API gateway. import json def lambda_handler(event, context): return { 'isBase64Encoded': False, 'st...
Awl asked 24/5, 2021 at 7:24

8

Solved

I'm not sure if I understand AWS Lambda - SQS triggers correctly. Can I possibly configure it in such a way that one SQS queue can trigger different lambda functions depending on the message body o...
Darkroom asked 12/6, 2020 at 17:0

8

Im running AWS SAM and using sam build --use-container then get the following error. Starting Build inside a container Building function 'SamTutorialFunction Build Failed Error: Docker is unreachab...
Ringo asked 24/7, 2020 at 2:41

2

in my python lambda code that scans dynamodb based on primary key as 'deviceId' & sortkey timestamp( which is in YYYY-MM-DD HH:MN:SS format) , i need to scan every for last 15min data (from tim...
Flin asked 7/6, 2020 at 12:35

3

Solved

I am building an AWS lambda with aws-sam-cli. In the function, I want to access a certain DynamoDB table. My issue is that the function comes back with this error when I invoke it locally with the ...

6

I currently try to get this AWS Lambda Getting started tutorial running: https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html#with-s3-example-deployment-pkg-python Howe...
Discompose asked 25/7, 2019 at 8:15

4

Solved

Steps followed to create Create a virtual environment and activate it pip install elasticsearch Zip the folder inside site-packages.zip 4.Create Layer in AWS (say name is elastic) Add the code b...
Evidently asked 9/7, 2020 at 5:42

6

Solved

I have a lambda function that will be called infrequently in Production, but it will be public-facing, so I want to avoid cold-starts. So I thought I could use provisioned concurrency to avoid this...
Erumpent asked 4/2, 2020 at 14:24

3

I have a lambda function in node v14 that imports AWS SDK v3 from a lambda layer. In my function I can use my node modules from the layer only if I use CommonJS syntax: const { parseUrl } = require...

6

Will the cold starts of my AWS Lambda function take longer if I use a image from ECR instead of a jar from S3 as my source code? I'm thinking that yes, because the image is larger due to the additi...
Chromite asked 10/10, 2021 at 4:21

9

Solved

I'm currently creating a Dialogflow chatbot in nodejs and upon deploying my code I get an error message. I've attempted to uncomment most things out to just be left with the base functioning code a...
Kirven asked 2/7, 2019 at 20:36

4

Solved

I am having trouble creating a lambda layer for the xgboost library. Im running: Im grabbing a zip of xgboost and it's dependencies from here (https://github.com/alexeybutyrev/aws_lambda_xgboost) a...

2

Solved

I'm relatively new to AWS, and so my lack of knowledge of this may be the reason why I don't understand why this doesn't work. However, I've looked around the web as well as the docs for solutions ...
Micelle asked 7/7, 2021 at 9:14

6

Solved

When I run an AWS Lambda container (Docker) image, for example: docker run public.ecr.aws/lambda/java bash I get the following error: entrypoint requires the handler name to be the first argument ...
Behling asked 2/12, 2020 at 11:25

5

Solved

I'm finding it hard to understand the difference between SAM template and Cloudformation template. I know that SAM template can be used to define Serverless Applications like Lambda, but how does t...

3

Solved

I am working with the Serverless Framework in my approach to Authentication. My goal is to create an API endpoint that triggers (via AWS API Gateway) a Lambda Function that creates a new AWS Cognit...

© 2022 - 2025 — McMap. All rights reserved.