Questions tagged [amazon-lambda]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

AWS data storage: how much to store with Cognito

I am new here. This is rather a choice-based question rather than purely technical one. Many mobile apps authenticate with Cognito, and I am going to use the same for ease of use + free tier ...
2
votes
1answer
54 views

How can I get AWS cloudwatch logs into GCP stack driver logs viewer?

I have set up the "connector account" thing in Stackdriver, and I'm able to see metrics in GCP, which is super cool! I would now like to also get all cloudwatch logs into google's logging tool. Can ...
1
vote
1answer
22 views

How does AWS Lambda pass logs to CloudWatch Logs?

AWS somehow aggregate stdout and stderr of a lambda. I once bumped to a situation where a subthread of a lambda process stopped logging in the middle(using async technology was such a bad idea). I'm ...
1
vote
1answer
174 views

Why can't my AWS Lambda connect to my AWS RDS proxy?

I can connect to my database locally just fine (of course with the normal DB endpoint, not the proxy endpoint). However, I just can't seem to get my lambda function to connect to the same database ...
1
vote
1answer
82 views

AWS API Gateway to Fargate, only charge when request is running

From the following link, it seems possible to call a Fargate task from the API Gateway: https://aws.amazon.com/blogs/compute/introducing-amazon-api-gateway-private-endpoints/ But, does the task have ...
2
votes
1answer
43 views

Is DynamoDB latency almost the same as RDS latency?

I am exploring using AWS Lambda through Laravel Vapor. Avoiding the use of Redis can save us ~$56/mo (t2.small at ~$24, NAT Gateway at ~$32). Instead of Redis, I plan to use DynamoDB which is much ...
2
votes
2answers
35 views

Trigger AWS Lambda by S3 object GET

My Problem I have a public S3 bucket which serves as a storage solution for large files (GBs) that I send to colleagues and clients. The files are auto-deleted after a few weeks. The problem with ...
0
votes
0answers
15 views

Serve content from another route to subdomain

There's been a general shift in our company's focus as we move away from serving content from S3 buckets as per the following discussion points: https://stackoverflow.com/questions/49812706/serving-a-...
0
votes
1answer
34 views

How to decrypt Secure String values in Parameter Store using .NET Core's AmazonSimpleSystemsManagementClient

I have the following code in a Lambda function: var ssmConfig = new AmazonSimpleSystemsManagementConfig { RegionEndpoint = RegionEndpoint.APSoutheast2 }; ...
0
votes
0answers
79 views

Can't connect to a public accessible AWS RDS

I was running a serverless web application on a lambda inside a VPC, and connecting to a Aurora-MySQL RDS instance, with inbound rules to allow traffic from the security group of the lambda The ...
5
votes
2answers
187 views

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 ...
0
votes
0answers
41 views

How to update certificate if API gateway connecting to RDS via lambda

AWS is emailing me to update the CA certificate of RDS and simultaneously update the client SSL which is making connection to RDS. According to the documentation I understood that I need to download ...
1
vote
1answer
79 views

using an aws lambda as a node webserver

I have heard of people using AWS lambdas as a place to run node express webservers which to my mind is an awful idea for the following reasons: it is hard to run them in a similar state locally This ...
0
votes
0answers
20 views

ThrottlingException from Step Function triggered through API Endpoint

I have made a Step Functions State Machine the target of an API Gateway endpoint. The endpoint is supposed to trigger the State Machine. I made two or three requests to the endpoint. The first one ...
2
votes
1answer
48 views

Using Lambda functions to create a REST API

We have a web app that is powered by an API made up of AWS Lambda functions. For the API, we have three environments (prod, staging, and demo). We were developing the functions using serverless-...
0
votes
0answers
126 views

How to run selenium web test cases in aws codepipeline

How to run selenium web test cases in aws codepipeline, my current setup is like, we have an ECS cluster in AWS, we have automated the code movement to docker containers with AWS Codebuild,...
0
votes
0answers
35 views

Running many CPU intensive tasks in parallel in the cloud - which AWS product?

I’m developing a machine learning pipeline for training a neural net that will be used alongside a Monte Carlo Tree Search algorithm. I want my AI to play itself tens of thousands time (or perhaps ...
0
votes
0answers
59 views

How to create a Sandbox Environment in AWS?

I am trying to create a Sandbox playground in AWS for Users to practice some resources for 30min, after that, all resources should be deleted and account temporary account should also be deleted. I ...
1
vote
0answers
57 views

AWS lambda add-permission --source-arn weirdness

I'm following this guide on setting up a lambda function to subcribe to log events. In step 5 you need to "Grant CloudWatch Logs the permission to execute your function" like this: aws lambda add-...
0
votes
0answers
194 views

How can I setup an SQLite database for serverless Cloud Functions?

I have some Serverless Lambda Functions and I would like to host an SQLite database with about a GB of data for free or very cheaply (1 USD per month). My initial thought is to use Amazon Elastic ...
1
vote
2answers
190 views

Running AWS Lambda in same VPC as DocumentDB or DynamoDB

We are currently running our AWS Lambda's in a VPC due to an earlier architectural decision. We are also using MongoDB Atlas and a peering connection setup between the VPC and Atlas. This obviously ...
1
vote
1answer
724 views

Update Amazon RDS Certificate SSL Issue with MySQL Lambda

Like many people I have updated my Amazon RDS Certificate to CA_2019 from CA_2015. At first everything seemed fine but later on checking I noticed the mysql lambda function which i wrote to query the ...
1
vote
1answer
269 views

AWS: Connecting Lambda to a Secret doesn't work

I am trying to connect a Lambda to a secret as per AWS docs. I set the following resource-based policy on the secret, and verified that it has indeed been set: { "Version": "2012-10-17", "...
0
votes
1answer
373 views

AWS Cloudwatch log filter on stream name

I'm trying to setup a lambda function to process logs from an AWS instance. To do that I'm configuring a CloudWatch Logs "trigger" as input to my Lambda function. The relevant configuration UI on AWS ...
0
votes
1answer
55 views

How to target a instance with something other than instanceID

The goal i am trying to achieve is I have around 8 test instances that i want to stop when i am not at work to save cost. then start them back up again when i get back to work. I have a function that ...
0
votes
0answers
273 views

AWS Lambda: How to install linux dependency packages?

I'm trying to perform HTML to PDF conversion with class library in AWS lambda function. The HTML converter has some dependency packages to be installed in the environment where the conversion takes ...
2
votes
1answer
58 views

How to measure GB-seconds for AWS EC2

We are researching on the possibilities of moving our app from EC2 based implementation to AWS lambda. We are trying to project how much money we will be saving if we do so. The lambda pricing says it ...
1
vote
1answer
133 views

AWS Lambda boto3 : Instance launch from lambda boto3 python but not launching

while trying launch instance from python function instance not launching but not getting python syntax error. region = 'us-east-2' ec2 = boto3.client('ec2') ec2 = boto3.resource('ec2') client = boto3....
0
votes
0answers
158 views

AWS Application Load Balancer returns '412 Precondition Failed' when a conditional header is present

I have an ALB with a Lambda as a target. The lambda is a simple Python one and the only thing it does, is a return of a hardcoded dict. The response is a valid response for ALB and includes Etag ...
0
votes
0answers
25 views

How to configure an s3 event trigger across accounts?

What are the steps to configure an S3 bucket in one account to trigger (on a PUT event) a Lambda in another account? And, conversely, how to configure the permissions for generating a signed upload ...
0
votes
1answer
86 views

Why use AWS API Gateway instead of naked Lambda?

This is more of a suggestion that I need. What is the need for API Gateway when we can directly execute Lambda functions from the apps? What are the missing pieces provided by API Gateway which we ...
0
votes
1answer
30 views

New Relic lambda alert not firing

We are using the out-of-the-box AWS integration for New Relic. We have an alert whose Critical Threshold is firing on lambda errors, but the alert is not sending to the alert channels.
0
votes
0answers
29 views

Start ECS before Lambda schedule

I have an AWS lambda function that needs to connect to a headless chrome instance running in a container on ECS. As the AWS lambda function is executed every hour with execution times around 2 ...
0
votes
1answer
63 views

What would be the best service for “append only” events in order for quick load times in lambda function

I have a stream of events happening in the new CW Event Bridge that I need to get some statistics on from a REST API endpoint, a lambda function (python + pandas). What is the best AWS service to ...
2
votes
1answer
264 views

AWS CloudFront - redirect root domain requests

First time poster on serverfault, apologies if this is in the wrong place. I have a website that I am trying to set up on AWS CloudFront. It is currently configured to serve static web content from S3,...
0
votes
0answers
52 views

AWS API doesn't return CORS headers on Windows 7 IE11

Unsure if this is an AWS issue or it's because of Internet Explorer. When using xhr on IE11 to request data from an API there is some weird CORS behaviour between IE11 versions (specifically between ...
0
votes
0answers
57 views

AWS Lambda invoke says permission denied on wide open assumed role

I use the .aws/credentials file to set up access to a central account, which then uses assumable roles to access other accounts. As such my aws cli command asks for the MFA token occasionally. I am ...
0
votes
1answer
188 views

Whitelist google cloud function on AWS security group

I've some services running on google cloud functions which need to connect to an endpoint on AWS. Since there is no fixed set of IPs which I can whitelist, can you share your thoughts on how best this ...
3
votes
1answer
571 views

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 ...
2
votes
2answers
74 views

Deploy hundreds of thousands of short lived jobs per day

I have a system that needs to deploy hundreds of thousands of short-lived jobs per day. Each job runs anywhere from a few seconds, to a couple of hours. Each job makes HTTP requests to external web ...
1
vote
1answer
325 views

Lambda cloudwatch trigger in Terraform for Logzio

I can create a Cloudwatch Log trigger in the Designer section of the Lambda dashboard by following these instructions. Everything works as expected. But, I'm having a very difficult time setting ...
0
votes
2answers
321 views

AWS - Lambda cannot access Apache served content on EC2 instance

Can anyone tell me how/why my Lambda function cannot 'see' a website served by Apache on an EC2 instance when they are both in the same VPC? My setup: Amazon Linux v2 Lambda function in the default ...
1
vote
1answer
743 views

How can trigger S3 (different region ) event from lambda?

I can create lambda trigger using S3- same region. But while creating trigger using different region S3 getting error The bucket imebuckt must be in the same region as arn:aws:lambda:ap-south-1::...
0
votes
0answers
35 views

AWS Best way of sending mass text reminders?

I am trying to send a massive amount text message reminders that are stored in a MongoDB database that need to be sent at a certain time down to the minute (they will be sent using AWS). The current ...
4
votes
1answer
1k views

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....
3
votes
2answers
1k views

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 ...
0
votes
1answer
405 views

How can I sync data or trigger a Lambda when Cognito user attributes change?

I'm trying to sync user data (name + some custom attributes) from an AWS Cognito user pool to a DynamoDB table. Cognito has a lot of triggers related to sign in / sign up but I haven't found any ...
0
votes
1answer
29 views

cyber security of AWS lambda

Just wonder if I still need to take care firewall, IPS/IDS, Web Application Firewall when I run an app on AWS lambda. Is there any difference about security from traditional EC2 instance? Your ...
1
vote
1answer
38 views

Triggering Lambda function when my application port is down

I want to trigger a Lambda function when my application port is down (application is running on Amazon EC2). So please let me know of any solution. Thanks in advance.
1
vote
1answer
308 views

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 ...