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
0 answers

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 Amazon Simple Storage Service Requests-Tier1: $x…
fejyesynb
  • 111
  • 2
0
votes
0 answers

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 pytorch model, makes predictions and finishes. The…
0
votes
1 answer

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 be stored. My next step is to create a aws…
0
votes
0 answers

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 address (from google workspaces) can sign in. What I…
0
votes
0 answers

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/consumer -> …
0
votes
0 answers

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 code I used in my aws account. Cloudwatch event…
0
votes
0 answers

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 beneficial to even use a WAF service if I am charged…
Josh K
  • 1
0
votes
0 answers

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 version of the site under the same domain not a…
0
votes
0 answers

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 serve data (using fastAPI). Each container runs…
0
votes
0 answers

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 still getting an error: template.yaml Relevant parts…
0
votes
1 answer

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 be reachable on the same port locally. I am able…
0
votes
0 answers

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 within that VPC to allow public internet traffic, so…
Amer Sawan
  • 101
  • 1
0
votes
1 answer

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 first thing I did was spin up a Node.JS Lambda in…
Martin Barker
  • 279
  • 1
  • 17
0
votes
1 answer

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 getting the build and deploy working. My initial…
Tim
  • 31,888
  • 7
  • 52
  • 78
0
votes
0 answers

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 functions are associated with a CloudFront distribution,…
user3183717
  • 101
  • 2