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.

145 questions
11
votes
4 answers

AWS SQS + SNS + Lambda

I was wondering if I can send a message to SQS queue and subscribe an SNS topic to it to trigger a lambda for sending an email. SQS -> SNS -> (Lambda) -> SES I know SNS messages can be sent to SQS but I'm curious if the other way around is possible
Chida
  • 2,471
  • 1
  • 16
  • 29
9
votes
2 answers

How to get the IP Address for a specific AWS ECS task?

I am attempting to build my own version of service discovery within ECS, since the services that I wish to scale up and down are not HTTP servers and so cannot be managed by ELB. Also, ECS doesn't yet support the user-defined networks feature of…
Jake Feasel
  • 231
  • 1
  • 2
  • 6
8
votes
1 answer

AWSLambdaExecute policy definition

Foreword: I'm not asking for configuration help. My use case is covered and working fine. This is a theoretical question. On AWS there is a policy called AWSLambdaExecute which is defined as follows: { "Version": "2012-10-17", "Statement": [ …
6
votes
1 answer

Connecting to SMTP server from AWS Lambda

On my AWS Lambda function, my javascript code times out whenever I try to use nodemailer to connect to my Amazon SES SMTP server (port 465). However, if I run the script locally, it works fine, which leads me to believe it's either a problem with…
iRyanBell
  • 413
  • 2
  • 11
  • 20
6
votes
1 answer

Why does AWS Lambda need to pass ecsTaskExecutionRole to ECS task

I am writing an AWS Lambda function to trigger an ECS Fargate task. I am following the example provided at Run tasks with AWS Fargate and Lambda. While my setup works, there is one of the parts involving IAM roles that I do not understand. One of…
user35042
  • 2,601
  • 10
  • 32
  • 57
6
votes
1 answer

IP Address exhaustion for lambdas in VPC

I am currently part of a group that is dealing with the repercussions of deploying 300+ AWS Lambda functions running Node.js in place of a more traditional REST API. I recently implemented an application that runs on EC2 instances in a VPC on a…
SirCapsLock
  • 63
  • 1
  • 3
5
votes
1 answer

AWS Permissions: Lambda access Denied to S3

I have created a Lambda Python function through AWS Cloud 9 but have hit an issue when trying to write to an S3 bucket from the Lambda Function. When I test in Cloud 9 the Python codes runs fine and writes to the S3 bucket perfectly. When I push…
5
votes
1 answer

Passing parameters to AWS Lambda

I'm trying to write a CloudFormation template that subscribes a Lambda function to a CloudWatch Logs LogGroup. This Lambda function should then parse the logs and put them in to an Amazon ES cluster. The subscription etc. is all working nicely, but…
5
votes
3 answers

Amazon Lambda for video and image processing?

The service I am building the architecture for has a video processing part in it. Basically, some people can upload videos (stored in S3) that will be split into frames with high resolution. From these high resolution frames, derived images…
5
votes
1 answer

How to stop Lambda from incurring CloudTrail charges related to CreateLogStream?

I manage an actually not very big website, but Lambda is used extensively, invoked many times per site visit, resulting in hundreds of thousands of calls per month. I noticed a spike in CloudTrail costs. Digging further I found that the biggest…
Alex R
  • 972
  • 3
  • 12
  • 26
5
votes
2 answers

How to choose between Elastic Container Service (ECS) or Elastic Container Registry (ECR), Elastic Beanstalk, and Lambda?

Background: I've worked with EC2 and RDS. Recently I received a query from a client in which he wants to develop both mobile and web applications using Amazon Web Services, and need advice on which service he should go with? Elastic…
4
votes
1 answer

how to see logs produced by aws lambda function using aws cli

I have lambda function written in golang. I run it through calling HTTP API gateway. It works fine but I would like to see logs written in stderr which are produced by my golang program. I tried this aws logs describe-log-groups but it shows empty…
Maxim Yefremov
  • 241
  • 1
  • 3
  • 17
4
votes
1 answer

AWS Lambda, AWS API Gateway, AWS Cloudfront gives 403 error

I run a Django project deployed on AWS lambda using serverless Zappa framework. This can be accessed by a randomly generated link from AWS API Gateway lets say:- randomly-generated-link.aws.amazon.com/production I have also created an SSL…
4
votes
2 answers

AWS, SQS trigger to Lambda is automatically disabled when Lambda fails

We have some Lambdas triggered by SQS queues. The Lambdas do intensive inserts into DynamoDB tables. The DynamoDB tables have autoscaling write capacity. On peak loads, many numbers of messages come to Lambdas and they start to fail with…
gelin
  • 71
  • 1
  • 7
4
votes
2 answers

AWS Route53 & Lambda: Redirecting Naked HTTP requests to HTTPS WWW for a serverless application

Problem I have a site running on a 'serverless' AWS Lambda function. Route53 routes requests to the API Gateway which connects to the Lambda function. The problem with this is that you can't setup traditional server redirects. Example As an…
1
2 3
9 10