Category "aws-lambda"

SAM template.yaml from VS Code launch.json?

I'm using an AWS SAM debug configuration in VS Code to execute Lambda code for Typescript/Node 14 inside a Docker container. I've run into problems of dependenc

Separating Environments in AWS

Is there a best practice around separating environments in AWS? I've got a solution that employs the following services: Lambda SNS SQS DyanmoDB API Gateway S

How to add functions like generating random UUID in velocity template for request/response mapping in API gateway

I am creating a request mapping template for AWS API gateway. In that template I want to customize the request params based on certain conditions and apply oper

Programmatically Stop AWS EC2 in case of inactivity

Can we stop an AWS windows server EC2 instance of a development environment when there is no activity in it, say after 2 hours of inactivity? I am having troubl

"PathError" when deploying Go project to AWS Lambda

When deploying this Go-based AWS Lambda project, via AWS console, I receive: { "errorMessage": "fork/exec /var/task/main: exec format error", "errorType": "

Using ExcelJS, how to read data from excel file using URL?

I have excel file upload in cloud. Using node js when front end pass URL i need to read data from excel file. Below is my code, var workbook = new ExcelJS.Wor

How to call a AWS Lambda outside of AWS

This is a quite basic question, but I was unable to find it out: How can I call a lambda via https without using an EC2 instance or something similar which has

Testing a AWS S3 Presigned Url returns 403 Forbidden (Nodejs)

I have a Lambda Nodejs function behind an API Gateway which successfully returns a Presigned URL: const AWS = require('aws-sdk'); const S3 = new AWS.S3({ api

Download a file from internet to AWS S3 using AWS lambda with python code [closed]

I want to download a file from the internet to AWS S3 using AWS lambda with python code. How can I do it?

Is there a way to change the 'scratch' (/tmp) space location of an AWS lambda function?

I'm grabbing some zip files from an S3 bucket and then converting them to gzip. The zipped files are about 130 megs. When uncompressed they are about 2 Gigs s

How to install Poppler to be used on AWS Lambda

I have to run pdf2image on my Python Lambda Function in AWS, but it requires poppler and poppler-utils to be installed on the machine. I have tried to search

Migrate to arm64 on AWS Lambda show error: Unable to import module 'encryptor-lambda'

I have a lambda function runs on Python 3.7 with architecture x86_64 before. Now I would like to migrate it to arm64 to use the Graviton processor and upgrade t

How to deploy multiple functions using serverless cli?

From the doc, I can deploy a function like this serverless deploy function -f functionName https://www.serverless.com/framework/docs/providers/aws/cli-refer

AWS Api Gateway: Missing Authentication Token

So i have a Custom Domain Name setup for api gateway linked to a lambda function. I have it working fine if i do https://api_domain.com/something the behavior i

AWS API Gateway Integration Response - Lambda Error Regex fails matching when response contains new line

I have API Gateway as a trigger to my lambda function. Whenever my lambda raises an exception, it gets matched with the pattern configured in Integration Respon

AWS CORS Enabling - Where it needs to be enabled? Chalice? Dynamodb? or S3?

Trying my hands on with aws. I have done following. Created a dynamodb table. Created Chalice app to access the data through api. Created a Angular6 applicat

AWS API Gateway Proxy with many lambdas

I´ve been using AWS API Gateway for quite a long time, and last month I started using it by calling my C# ASPNET inside a Lambda function throught a proxy

Sorting, Skip and Limit(Skip) queries for Amazon DynamoDB

I am new to AWS Lambda, Amazon DynamoDB and serverless. I have one user table want to do like this. I want to fetch records pagination wise in each page fetch 1

Running npm inside AWS Lambda

I am trying to run npm install from inside AWS Lambda. But I'm getting the below error. Setting --prefix to "/tmp" doesn't work either. { Error: Command fai

Why is my AWS Lambda crashing when running in ARM64 architecture?

I'll summarize my issue. I have a solution containing multiple .NET lambdas (3.1) which I deploy using serverless, all of which work just fine in the old archit