As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [amazon-lambda]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

AWS Lambda's indirect S3 requests

I noticed AWS Lambda causes S3 tier 1 and 2 requests. Do these cost anything after 12 months free tier expires? Specifically: Create new AWS Lambda function in AWS console causes 1 tier 1 S3 request ...
fejyesynb's user avatar
  • 101
0 votes
0 answers
68 views

botocore.exceptions.ClientError: An error occurred (InvalidToken) when calling the ListObjectsV2 operation

I have an mlflow server that is hosted on aws, that uses s3 in the background for storage. I am trying to run a lambda-function that runs a python script which accesses the mlflow server, loads a ...
ptushev's user avatar
0 votes
1 answer
160 views

Cannot create aws lambda function. error: the following arguments are required: --runtime, --handler

I am trying to deploy an image to be run in aws lambda at a scheduled interval. I have built and tested the image using RIE and locally it runs as it should. Next I have pushed the image to aws ecr to ...
ptushev's user avatar
0 votes
0 answers
51 views

Is there an easy way to link AWS Cloudfront authorization to Google Workspaces?

Is there an easy way to link AWS Cloudfront authorisation to Google Workspaces? I'm trying to achieve single sign on to a Cloudfront hosted static website such that anyone with a corporate email ...
Philip Couling's user avatar
0 votes
0 answers
35 views

Write override-config.yml to reverse proxy domain path to cloud service with nginx-proxy-automation?

I am using https://github.com/evertramos/nginx-proxy-automation/ and it has as a component https://github.com/nginx-proxy/docker-gen. I would like to proxy a location on my host https://someurl.com/...
Bob R's user avatar
  • 111
0 votes
0 answers
34 views

Is there way to monitor all aws iam users activity and send email alert using python lambda?

I have tried send alert notification for AWS IAM all users activity from lambda python, however its not working, please share any other way to work and find below cloudwatch event patter and lambda ...
bala murugan's user avatar
0 votes
0 answers
38 views

Does AWS WAF charge for requests that come from IP addresses that are blocked?

If an ip address exceeds its rate limit and a WAF rule blocks it for a period of time, do the future requests from that ip address still get charged to me by the WAF service? (And if so, why it ...
Josh K's user avatar
  • 1
0 votes
0 answers
45 views

S3 CloudFront distribution load different bucket based on IP

I have a domain (myweb.com) pointed to one of my cloudfront distributions eg.: myweb.com -> https://web1.s3.amazonaws.com/ now based on the internal organisation IP, I would like to load a new ...
Ben's user avatar
  • 101
0 votes
0 answers
33 views

What's the best way to deploy large numbers of low-throughput docker containers on AWS?

What's the best, simple way of deploying a lot of containers to AWS? It's necessary to be scalable but cheap if a container sees little or no use. I have a method of generating docker containers that ...
Paranoid Altoid's user avatar
0 votes
0 answers
252 views

AWS SAM - cannot create stack with api gateway using stage variable for invoked lambda version

Ok, previous question about using different lambda versions on different stages here: AWS - lambda versions to different gateway stages? Now I'm trying to put it all together using AWS SAM cli but ...
fudo's user avatar
  • 141
2 votes
1 answer
192 views

AWS - lambda versions to different gateway stages?

Coming from a "classic/standard" development I'm used to have different deployment stages, e.g. staging and production, each one with its application version. AWS Lambda functions and API ...
fudo's user avatar
  • 141
1 vote
1 answer
279 views

AWS: API gateway 502 error randomly with Runtime segmentation faults

I am using AWS and have an api which is called via API gateway which calls a node.js lambda function. Very often but randomly I get 502 responses but when I immediately try again with the exact same ...
PilotPatel's user avatar
0 votes
1 answer
211 views

nginx to reverse proxy 2 local lambdas in docker containers

I have 2 lambda functions wrapped in docker containers and am using docker compose to run them together. One runs on port 9000 the other on port 9001. I am trying to use nginx to allow them to both ...
Anthony Marino's user avatar
0 votes
0 answers
319 views

Will AWS Lambda deployed from image pull the ECR image on each new instances get initialised

Because of Lambda’s ZIP deployment size limitation I’m changing the way I deploy my Lambda functions to use container image. The deployed function is located within a VPC, so I have a NAT gateway ...
Amer Sawan's user avatar
0 votes
0 answers
12 views

Automating deployments for AWS Lambdas

I have a simple Python app (job) that I currently have deployed + running on an EC2 instance and I have configured cron on instance to kick it off a few times each day. Any time I need to make changes ...
hotmeatballsoup's user avatar
0 votes
1 answer
494 views

Building PHP 8.1.8 with open SSL, failing unable to find package. Lambda Layer

I'm trying to build a PHP8.1.8 lambda layer however i was following https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/ And just using the correct version, so the ...
Martin Barker's user avatar
0 votes
0 answers
71 views

Creating AWS blueprint lambda using AWS cli

I am following official doc for forwarding logs from CloudWatch to Splunk, doc is referring to aws web console. I wanted to automate steps at least using aws-cli and I can't figure out, how to create ...
wynxel's user avatar
  • 1
0 votes
1 answer
666 views

Use AWS SAM to Create AWS Lambda Layer for Python (Serverless Application Model)

I'm trying to use AWS SAM / Serverless application Model to deploy a combination of Python and native libraries to Lambda as a layer, for use from a Python Lambda function. I'd appreciate some help ...
Tim's user avatar
  • 31.5k
0 votes
0 answers
35 views

Is it possible for me to identify what services are using an AWS Lambda function?

I'm trying to clean up some Lambda functions in our account. When I click on the Monitor tab for each function, everything is coming up with "No data available". I know at least one of those ...
user3183717's user avatar
0 votes
0 answers
241 views

List Packages installed on AWS Lambda environment

I have a long list of lambda functions. I need to find the packages that will be installed in each lambda environment. Is there a way to list packages installed on existing lambda environment.
Goural's user avatar
  • 25
1 vote
0 answers
150 views

Creating a custom CloudWatch Event to monitor every new commit for GitHub repository instead of CodeCommit repo state change

Could you please assist me in understanding if it is possible to create a custom CloudWatch Event to monitor every new commit for GitHub repositories instead of CodeCommit repo state changes? It has ...
Lbits's user avatar
  • 11
1 vote
1 answer
142 views

How do you set a self-destruct or maximum uptime in AWS?

Situation We have a sandbox AWS account for trying things out. It is not for production, purely just for playing around with all the toys that AWS provide. We want to encourage everyone to explore and ...
James Geddes's user avatar
1 vote
1 answer
1k views

CloudFront does not seem to invoke lambda@edge function

I have a CloudFront distribution. The origin is an S3 bucket that uses OAI. I have created a lambda@edge function following directions from https://aws.amazon.com/blogs/compute/implementing-default-...
Sudheer Satyanarayana's user avatar
0 votes
0 answers
217 views

Build pipeline to upload .jar package to AWS Lambda

So far according to the documentation at https://docs.aws.amazon.com/lambda/latest/dg/java-package.html, the only way to upload .jar code to an AWS Lambda function would be to manually upload the file ...
Glorious Kale's user avatar
0 votes
1 answer
54 views

Sending push notification to s3 origin website from lambda

I want to send a websockets notification from lambda function to clients, on a website hosted via s3 origin with cloudfront. Could someone help me with this, please? Thanks.
NaNa's user avatar
  • 3
1 vote
1 answer
648 views

What is causing BadRequestException when calling the ExecuteStatement operation on Aurora Serverless db

I have a lambda function that retrieves records from AWS Aurora Serverless db. Now I thought of adding api gateway to trigger the lambda function but I get this error Connect an AWS Lambda function ...
sji gshan's user avatar
0 votes
0 answers
14 views

Google cloud functions contains whole application code unlike aws lambda which contains only function specific code

I was using aws lambda for few projects. In lambda i can package only function specific code so every function has only its own code. and now i am using google cloud functions for my new project. I've ...
Amol Barge's user avatar
-2 votes
1 answer
180 views

How does efs pricing works lambda?

Does the pricing only applicable for storage or there are also other charges associated wit it? for eg: if a lambda function puts 1Gb/s of file on efs via a private vpc then how much it will charge ...
code0x00's user avatar
  • 109
0 votes
1 answer
104 views

Deploying a Serverless site behind CloudFront

I use Serverless to deploy a website to an AWS Lambda. This works fine. I now want to use CloudFront to proxy access to this Lambda and cache requests for static files. I have set up a CloudFront ...
user19642323's user avatar
1 vote
0 answers
129 views

Does freezing the cgroup wait for TCP send buffers to be flushed?

What guarantees are there for flushing the TCP send buffers, if any, when the freezer subsystem freezes a cgroup? Consider the following scenario: Server A, which runs in a cgroup, sends data to ...
Felix Barnsteiner's user avatar
2 votes
1 answer
3k views

How can I search across CloudWatch log groups on AWS?

I have a number of lambda functions which run my serverless backend. Something somewhere is misbehaving, and I need to bring up/search all the logs from a particular time — from all log groups, not ...
Mike Ashelby's user avatar
1 vote
0 answers
34 views

Is there a 1:1 correspondence between CodeDeploy applications and a Lambda?

We're investigating CodeDeploy for automating deployments of a service that is comprised of: Multiple Lambdas, with some triggered by SQS queues and others accepting HTTP requests via API Gateway API ...
J. Gregory Wright's user avatar
0 votes
1 answer
424 views

Lambda with VPC long cold start

I have few lambda functions that are connecting to Mongo Atlas cluster. Connection between Mongo Atlas and my AWS account is done via VPC Peering. Lambda functions are attached to this VPC. I'm ...
krzysiexp's user avatar
1 vote
1 answer
105 views

How can I track user requests to my external API on AWS?

I'm a bit of a beginner but I'm working on creating an external API with AWS SAM (using API Gateway and Lambda), and I want a way to track & monitor usage. Some options I was considering: 1. Store ...
A Poor's user avatar
  • 113
-1 votes
1 answer
369 views

How to add IP to in existing inbound rule in a security group of Amazon EC2?

I am using Amazon API via a Lambda function to allow my teammates access my server. Using post method I am invoking this lambda function to add teammate's IPs in inbound rule. I want to add IPs to an ...
zamp's user avatar
  • 1
0 votes
0 answers
987 views

How can I set up my HostedZone so that it delegates to a parent DNS record in another AWS account?

Introduction I have some TypeScript code that uses CDK to create an API Gateway and a Lambda. It works and deploys to a standard AWS URL. So far so good. I now need to transfer the API Gateway so that ...
halfer's user avatar
  • 265
1 vote
0 answers
66 views

Autoscaling - lifecylehook implementation

I'm trying to implement my first ASG with a lifecycle hook and I am having this issue: LifecycleHandlerFunction: Encountered unsupported property Role The following resource(s) failed to create: [...
serialp's user avatar
  • 13
0 votes
2 answers
522 views

Modify AWS Lambda function inside CloudFormation stack

I've launched this stack and needed to update it's Lamdba function, I've made some amendments and hit deploy, a new version of function was saved, however Lambda application still refers to the first ...
Mike's user avatar
  • 13
0 votes
1 answer
151 views

Kubernetes + AWS Lambda [closed]

I currently have an API service running on AWS Lambda, but it's getting expensive due to high AWS costs. My aim is to replace 95 % of the usage with a cluster of servers and still handle peaks with ...
ile's user avatar
  • 101
1 vote
0 answers
120 views

How to access a private ELB URL in AWS Lambda

I have an ELB that is pointing HTTPS (443) - https://dummyendpint.com. This is in Private VPC and exposed to only whitelisted IP addresses. Now I am working on this endpoint (https://dummyendpint.com) ...
Prabhu Vignesh Rajagopal's user avatar
0 votes
1 answer
1k views

AWS lamba start_instances gives pending response but console still shows stopped

I have a lambda function that I have setup to start an instance: import boto3 ec2 = boto3.client('ec2') response = ec2.start_instances( InstanceIds=['i-xxx'] ) print(response) The response looks ...
eng3's user avatar
  • 157
0 votes
1 answer
208 views

How do i add nodejs runtime layer layer to my Python Lambda on AWS?

wscat test In my Python lambda I want to use wscat which requires node: $ /opt/wscat-layer/bin/wscat /usr/bin/env: node: No such file or directory Question: How do I add nodejs runtime to my Python ...
Alex B's user avatar
  • 123
6 votes
1 answer
218 views

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 ...
Alex R's user avatar
  • 1,022
2 votes
2 answers
2k views

403 when using Terraform to attach Lambda Function to Target Group w/ ALB

I'm able to create Instances, Target Groups, and ALBs just fine with Terraform, but am getting stuck when trying to use Lambda Functions. It looks like the Lambda function gets created OK along with ...
John Heyer's user avatar
0 votes
1 answer
58 views

What could be a best solution for ElasticBeanstalk environment stop/start for cost saving

So i have a use case where we only need Elasticbeanstalk environment only in weekdays and in business hours only. So here at the moment i'm using a lambda function which terminates App environment and ...
Satyashil Deshpande's user avatar
0 votes
1 answer
410 views

How to stream CloudWatch log group to specific Lambda function version?

When creating a new subscription filter for a CloudWatch log group, the AWS Console doesn't seem to offer a way to select a specific Lambda fn version. This is important for CI/CD where I might want ...
AlexanderF's user avatar
2 votes
1 answer
1k views

AWS CloudFormation - Creating Layer Version and Function that uses layer

I have a Cloudformation template that currently looks roughly like the following. Resources: MyLayer: Type: AWS::Lambda::LayerVersion Properties: CompatibleRuntimes: - nodejs12....
Randabut's user avatar
0 votes
1 answer
295 views

Lambda connect to mongodb which only allow localhost connection in ec2

I have a MongoDB which only allow connection from localhost, running on my ec2. Currently, only my nodejs app which runs on the same ec2 instance connects to the mongodb using this command mongoose....
imin's user avatar
  • 83
3 votes
1 answer
1k views

Can't deploy same lambda in multiple regions from s3 bucket

We are deploying a lambda using CloudFormation SAM templates. We would like to package the lambda into an S3 bucket, then deploy the AWS::Serverless::Function in multiple regions. However, lambda code ...
mdarwin's user avatar
  • 121
2 votes
1 answer
129 views

Resizing images using AWS Lambda - issue

I'm trying to resize images automatically using Amazon S3/Lambda. The problem is I cannot get any connection to Amazon S3 buckets while creating a Lambda function. Creating a new blank function in ...
biggydeen's user avatar