Category "aws-lambda"

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

SQS Lambda Trigger with Visibility Timeout extension

I'm working on a solution where I have a SQS queue with Lambda trigger. My understanding is Lambda will receive messages in batches to be processed, and once La

Error executing "Hello World" for AWS Lambda in Java

I have written following Hello World Lambda which I am executing by uploading on AWS via AWS toolkit for Eclipse. public class HelloWorldLambdaHandler implemen

Is there a way to send a POST request to slack without using Webhook?

I have tried to send POST requests to my slack channel using webhooks to no avail. It always returns a bad request no matter what I do. Is there a way to send

AWS Serverless.yml example of WebACL config

I am trying to deploy lambda functions using serverless, and every time I redeploy I have to re-enable my WAF manually. How can I enable the WAF in my serverles

Update an environment variable of an AWS Lambda function in python

I am wanting to update an Environment Variable from an AWS Lambda function. I have tried this code: import os def lambda_handler(event, context): call =

set timeout for chalice functions in general

In the documentation of chalice one can see an example of a configuration of a lambda function on aws provisioned by chalice. The idea is that you can define