Category "aws-lambda"

How Serilog posts to CloudWatch without any configuration setup?

I am migrating an app done in net core from Azure to AWS. Backend is an Asp.NetCore WebApi which uses Serilog for logging. I simply put it behind a subclass of

Delete trigger on a AWS Lambda function in python

I have a lambda function and for that lambda function my cloudwatch event is a trigger on it... at the end of the lambda function i need to delete the trigger

warning: req is not defined in (nodejs) lambda function

This is part of my code in lambda to insert some values into an oracle database (from Amplify cli) exports.handler = async (event, context, callback) => {

How can I download/pull lambda code to a local machine from command line?

I am using the sam deploy command with the AWS SAM command line tool to deploy. Now I made some changes with the web IDE in the AWS Console. How can I pull the

Logging in AWS Lambda with slf4j

I am using a lambda function and writing it in Java. I was looking up logging for Lambda functions when I read the docs and they support log4j - http://docs.aws

How to run `dotnet lambda deploy-serverless` command without parameters?

Good evening. The question is about dotnet lambda deploy-serverless command. This command is used to deploy .Net apps to AWS Lambda service using AWS CloudForma

Cannot delete AWS Lambda@Edge replicas

This question already exists here but I think it will have more impact on SO. I created an AWS Lambda@Edge function in order to rewrite Cloudfront URLs befo

Cannot delete AWS Lambda@Edge replicas

This question already exists here but I think it will have more impact on SO. I created an AWS Lambda@Edge function in order to rewrite Cloudfront URLs befo

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