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

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.
redgeoff
  • 201
  • 1
  • 6
0
votes
1 answer

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 can be dealt with? I understand the ips can be…
0
votes
2 answers

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 VPC, same as the one the EC2 instance is on Lambda…
0
votes
1 answer

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 comment welcome
user62414
  • 135
  • 1
  • 2
  • 6
0
votes
2 answers

Webapp with Python back-end. Should I use AWS Lambda?

I want to build a webapp with Python back-end. The front-end of the webapp will just have a simple input box where the user puts an address. Then, on the back-end I want to scrape content from the webpage in that address and then process that data.…
0
votes
1 answer

AWS Lambda needs to be moved in different Subnet

I have a Lambda function that is in VPC-A and Subnet 1A and 2A. I want to move it to Subnet 1b and 2B. The command below is giving error: aws rds modify-db-subnet-group --db-subnet-group-name "XXXX" --subnet-ids "XXX" "YYY" "ZZZ" The error is: Some…
0
votes
1 answer

Connecting from an AWS Lambda function or service within a VPC to a customer's private network over VPN tunnel

We are currently running AWS Lambda functions within a VPC and for example already have a peering connection setup to MongoDB Atlas to have our AWS Lambda's within the VPC communicate to our MongoDB Atlas-hosted database. Now a requirement has come…
0
votes
0 answers

How to block a request which does not has a header using Amazon Web Services

My application back-end was laid on AWS Lambda and exposing API's using API Gateway. And forntend on CloudFront. I want to block a request which does not has a header using AWS service. Can anyone suggest me which AWS service will helpful to do this…
0
votes
1 answer

MongoDB hosted on EC2 connection issue

I am a front-end programmer trying to learn more backend technologies. I setup a Mongo database on an EC2 server, and I have a lambda function that I'm trying to make connect to my mongo database. import * as mongoose from…
0
votes
0 answers

AWS serverless setup for recurring tasks?

I have a database consisting of many items. At least one time per day I want to loop through all items in this database and for each item, call an external API to fetch current data about this item and store it in my database. With this scenario in…
0
votes
1 answer

AWS Lambda Policy - Allow to edit lambda functions depending on the user

When creating AWS Policies, is there a way to create a policy that Allow to view, edit and create lambda functions depending on the user that create that function before? I'm trying to do that, but I can't find information about the condition or…
0
votes
0 answers

AWS Lambda function to create multiple databases is only creating the first

I have an AWS Lambda function that I'm trying to use to create 3 new databases every night. It takes the most recent snapshot from each server and runs restore_db_instance_from_db_snapshot. Its meant to give our devs access to production data…
Ryan Grush
  • 181
  • 9
0
votes
0 answers

Unable to set storage size for an AWS database cluster

I'm attempting to find a solution for this AWS restore_db_cluster_from_snapshot yet no instances however when I try to run the create_db_instance method I get the following error - *** ClientError: An error occurred (InvalidParameterCombination)…
Ryan Grush
  • 181
  • 9
0
votes
1 answer

Route public 3306 traffic to private VPC through NAT?

I have an Aurora database on a VPC. Today I needed to connect to that database through Lambda. Not really an issue except I needed internet access in that Lambda and so I had to setup the following: I added a new subnet for the public NAT. I added…
0
votes
0 answers

What AWS architecture would be mosted suited for a SaaS that uses uses git repositories as data storage?

I am currently working on an application that is dealing with frontmatter markdown files 99% of the time (some things have to communicate with a DB like RDS). Locally, I have a folder that stores all the users data like this: - user_1 - project_A …