AWS Lambda import module error in python

I am creating a AWS Lambda python deployment package. I am using one external dependency requests . I installed the external dependency using the AWS documentation...

Download an already uploaded Lambda function

I created a lambda function in AWS (Python) using "upload .zip" I lost those files and I need to make some changes, is there is any way to download that .zip?

DynamoDB slow response

So my problem is that DynamoDB is taking quite some time to return single object. I'm using node.js and AWS docclient. The weird thing is that it takes from 100ms to 200ms to "select" single item...

Scheduled rest requests from aws

I need to call some endpoint of my application periodically. I understand that i can create aws lambda function that will be triggered by aws trigger and that lambda will call my rest endpoint....

How to call module.exports from handler in AWS Lambda (Node.js)

That's what says in AWS: The module-name.export value in your function. For example, "index.handler" calls exports.handler in index.js. And it correctly calls this function: exports.handler =...

Do I need to verify a AWS Cognito token in BOTH Lambda AND as API Gateway?

When using a AWS Cognito attribute from a JWT token in a lambda, do I need to verify the JWT? The Lambda is only triggered by an API Gateway which already verifies the token. Adding details: I'm...

Updating Lambda to AWS through intellij plugin

I'm uploading a Spring Application to a Lambda function on AWS through IntelliJ's AWS Toolkit but when uploading the code to the S3 bucket it runs sam build and yields the following...

Does google cloud have something like "[email protected] origin response"

Aws let setup [email protected] function executed after a response is received from the origin(see picture bellow), can I do it with GCP?

GraphQL - Apollo Client without using hooks?

I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be...

AWS Secrets Manager call from Lambda returning null/none

I am using an AWS Lambda function to call AWS Secrets Manager for retrieving secret values but it just returns the value None/Null. Here is my code: # Secrets Manager import boto3 import...

Is there a way to add delay to trigger a lambda from S3 upload?

I have a Lambda function which is triggered after put/post event of S3 bucket. This works fine if there is only one file uploaded to S3 bucket. However, at times there could be multiple files...

CORS impossible on AWS Lambda HTTP API Gateway Integration

An AWS Lamba function (NodeJS) returning 3 HTTP headers: aaa, Access-Control-Allow-Origin and bbb was created: exports.handler = async (event) => { const response = { statusCode: 200, ...

Parsing a waf log to get the host ip to prevent dos attack

I'm trying to create a report where if a ip request have attacked the server more then 1000 in one minute it is an dos attack. Aws waf is logging the logs in s3 and using lambda we will check if...

Get all work items from a project azure devops REST API

I'm using Azure devops API to create a notification bot with AWS Lambda node.js. At this moment i need to check if each task work item is attached to a parent user story. The first step will be to...

CloudWatch Rule set to trigger from CloudTrail doesn't trigger Lambda function unless I create a Trail to store CloudTrail logs in an S3 bucket

I am trying to trigger a Lambda function when a RequestCertificate event is being raised in AWS Certificate Manager. In order to do that, I have created a CloudWatch Rule with the following...

AWS Lambda EFS | EACCES: permission denied

So, I am trying to integrate my lambda function with EFS. I am able to access the root directory (as read-only from lambda) as I can see xyz directory available in my root dir. /mnt/ -> xyz When I...

Kinesis Video Streams integration with Amazon SageMaker using KIT

I am working on a project where i need to send the video from my IP camera to Kinesis Video Stream, and use Sagemaker to host my ML model, which will then analyse the video from Kinesis Video...

Next.js - `npm run build` failed

Trying to build my app with target: 'serverless' in next.config.js (In-order to deploy on AWS Lambda). When running npm run build I'm getting the following output: Warning: Built-in CSS support is...

Sending multiple messages to SNS on a single call

I have a scenario where every time lambda runs, it will send 1000 messages to a SNS topic. I can loop through the list of messages and call the publish method 1000 times, one message at a time but...

when calling the GetObjectTagging operation: Access Denied

I'm trying to add tags to objects added in S3 for a particular Prefix. { "Records": [ .......... JUNK METADATA .......... "s3": { "s3SchemaVersion": "1.0", ...

AWS Lambda using boto3.client('iot-data') TIMEOUT as of 2021-01-26

I have a very simple AWS Lambda function that has been firing every few seconds for 3 months without fail import boto3 shadow_client = boto3.client('iot-data') def lambda_handler(event,...

Python.h: No such file or directory on Amazon Linux Lambda Container

I am trying to build this public.ecr.aws/lambda/python:3.6 based Dockerfile with a requirements.txt file that contains some libraries that need gcc/g++ to build. I'm getting an error of a missing...

aws lambda function using serverless template of asp.net core

I don't have enough knowledge of aws but my company asked me to do a job which I guess is what AWS Lambda does perfectly. The requirement is I have to create a service that has an endpoint that...

Retrieve secrets from AWS Secrets Manager in a Lambda function

I have been trying to use Secret Manager in the lambda function in AWS. I am using Secret Manager to store my Redshift credentials and want to use the sample code given by the AWS Secret manager...

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied

I am trying to deploy my Django project on AWS lambda using Zappa. Here is my zappa_settings.json: { "dev": { "aws_region": "us-west-2", "django_settings":...

Sam build in intellij: Error: JavaMavenWorkflow:MavenBuild - 'utf-8' codec can't decode byte 0xbb in position 150889: invalid start byte

I am working with an aws serverless architecture with spring boot application. When I some time build the project using sam build in intellij, I am getting the following error. Building codeuri: ....

How can I provide resource-based policy in my lambda via serverles.yml?

I am using serverless.yml to deploy lambdas to AWS and I'd like to know how to configure the resource-based policy for my lambda. I deploy a customised alias to my lambda and need to grant...

Identify and reboot workspaces in AWS using Lambda

I have to write an AWS lambda function in python using boto3. The main aim of the function is that it detects all the unhealthy workspaces in a directory and reboots the workspaces whose state is...

Cannot read property 'filename' of undefined Using html-pdf with lambda

I'm experiencing problems when I try to create a PDF from HTML using Lambda Function, I'm receiving the error below: { "errorType": "TypeError", "errorMessage": "Cannot read property...

Failed building wheel for scs and cvxpy on amazon linux2

I am trying to create an AWS lambda layer for cvxpy, following Rineesh Konaparthi's method. I run to error when run pip install cvxpy: Building wheels for collected packages: scs Building wheel...