Questions tagged [amazon-lambda]

This tag is for questions about Amazon Web Services' "Lambda".

AWS Lambda lets you run code on the Amazon cloud without provisioning or managing servers. Lambda takes care of everything required to run and scale your uploaded code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app, and pay only for the compute time used.

154 questions
1
vote
1 answer

Access private API from a domain hosted in AWS

I'm trying to make private AWS lambda call made through API gateway and I don't find the right answer on the internet, probably because I'm a beginner in AWS website management. The closest source I found was this amazon documentation:…
1
vote
2 answers

Cross Account Lambda Call never succeeds

I have a central Tooling Account that contains the deployment pipeline and another account ("stage") where the application is deployed to. One of the steps in the pipeline is migrating the database with a lambda function in the staging account. The…
1
vote
3 answers

Python Lambda Network Error

Yesterday I started developing a serverless application in AWS including python lambdas. After testing my code I wasn't able to save it. Normally after pressing "Save" the button changes the color to white/grey, but it stays orange. In the Top it…
Jonas
  • 13
  • 1
  • 4
1
vote
1 answer

Heroku + AWS Lambda Hybrid

I currently have a web app running fully on Heroku. This web app needs a lot of computing power and access to several external APIs during short time periods, and nothing at all if there is no activity from users. Until now, I have several workers…
J0ANMM
  • 131
  • 5
1
vote
1 answer

AWS Lambda as an Application Load Balancer target?

At AWS’ 2018 re:invent, AWS announced that Lambda functions can now be the target of Application Load Balancers (documentation here). I just want to ensure that I understand AWS previous offerings (e.g., my current setup) correctly — that is, if AWS…
1
vote
1 answer

Lambda Scheduling Gets Stuck

I have an SQS queue with a batch size of 1 Lambda function with a reserved concurrency of one Lambda is configured to listen on the queue and do some work when messages arrive. Said work typically takes around 8-12 seconds, never more than…
Peter
  • 111
  • 4
1
vote
1 answer

Getting issue with VPC in Lambda function

I have attached VPC and private subnets in Lambda function. That is causing the connection issue with the API Gateway/other AWS services. Can anyone suggest the solution for this? Thank you.
1
vote
1 answer

Editable URL Rewrite Map for CloudFront/S3 Website using Lambda@Edge

I'm migrating a static website from IIS to Amazon S3, using CloudFront for https. The old site used the URL Rewrite module and had 301 redirect maps with over 200 entries. Here is an example: example.com?pageID=1234 => example.com/about/history I…
1
vote
1 answer

Using AWS Lambda polling with external SQS

I am mostly trying to figure out if what I need is even possible, if someone has pointers as to how, that would be even better. I have an access key/secret from an organisation I work with, that grants access to an AWS SQS queue (I also have the ARN…
ChristianM
  • 113
  • 4
1
vote
0 answers

The way AWS Lambda@Edge accesses to S3 restricted by Object Access Identity (OAI)

I have a question. Is the Lambda function (written in node.js) associated with CloudFront accessible to S3 objects restricted by Object Access Identity (OAI)? If yes, could you tell me how to access? (access = https.get() or s3.getObject())
1
vote
2 answers

What level of permissions should my developer need in AWS?

I'm hiring a developer to create a project for me. He asked me to create an AWS Lambda account so that he could create the application. I created a user with access to the full AWS Lambda policy but that wasn't sufficient, eventually, I assigned the…
1
vote
1 answer

Python packaging (passlib, argon2) for AWS Lambda

I am trying to create a Python function for AWS Lambda that uses the passlib library for password hashing with argon2. To this end, I am using pip to install the following packages in a local directory, zipping them with my Python file, and…
cwh
  • 63
  • 1
  • 9
1
vote
1 answer

How to delete tag from EBS using boto3?

I want to delete a tag from EBS volume using boto3/lambda. At this doc https://boto3.readthedocs.io/en/latest/reference/services/ec2.html#volume I see 'create_tags()' only. It is suitable for modifying tags and e.g. to set an empty value but I need…
Putnik
  • 2,217
  • 4
  • 27
  • 43
1
vote
1 answer

Using boto in an AWS lambda function in a VPC

I have a lambda that accesses EC2. I want to assign it to a VPC for security purposes, but when I do boto just stops working. Here's a minimal example: ec2 = boto3.resource('ec2', region_name='eu-west-2') instances = ec2.instances.filter(Filters=[ …
fredley
  • 575
  • 1
  • 5
  • 14
1
vote
0 answers

How do I combine multiple SQS metrics with Lambda?

I have SQS monitoring for some services we have. We have two metrics that I'm looking to combine. "Receives" and "Empty Receives". Is it possible to use something like amazon lambda to create an aggregate metric of those two queues? If so, what…