Category "aws-lambda"

How to import existing lambda from arn and add SQS as event source? Amplify

I'm trying to create an SNS topic that an SQS queue subscribes to which acts as an event source for a Lambda function. I'm trying to do this with the amplify cd

Cannot run a While Loop in AWS Python Lambda

import asyncio from aiogram import Bot, Dispatcher, types # Handlers async def echo_hello(message: types.Message): while True: await message.reply(

AWS SAM "No response from invoke container for" wrong function name

I've debugged my application, and identified a problem. I have 2 REST API Gateway, and it seems like since they both bind on the same endpoint, the first one wi

How to pass the Amplify app ID to a function? How to do app introspection from backend functions?

Background Amplify apps are easily extensible with Lambda functions, using amplify add function. Great! Problem How can I access the Amplify app ID from the La

How to invoke a lambda function in aws-sdk v3

How can I invoke a lambda function using Javascript (TypeScript) aws-sdk v3? I use the following code which does not seems to work: // the payload (input) to th

aws_cdk python error: Unzipped size must be smaller than 262144000 bytes

I use CDK to deploy a lambda function that uses several python modules. But I got the following error at the deployment. Unzipped size must be smaller than 2621

Custom Lambda image - getting aws-lambda-ric error when trying to run Lambda

I've build a NodeJS project, which I need to run on a custom Docker image. This is my Dockerfile: FROM public.ecr.aws/lambda/nodejs:14-x86_64 # Create app dire

gm imagemagick passing in convert arguments as a string

I'm trying to pass the convert arguments as string to in() without success. works fine if I run this: const GM = require('gm'); const gm = GM.subClass({ imageMa

AWS SAM Lambda typescript project doesnt attach to debugger in VSCode

I have used AWS SAM to initialize a typescript lambda project which I am editing in VSCode on Windows 10. I have also setup debug points in the typescript code

How to write if-else statements in a lifecycle configuration script

I have a sagemaker notebook instance having two jupyter notebook ipynb files. When I had one jupyter notebook, I was able to run it automatically with one lambd

Cannot delete Lambda@Edge created by Cloud Formation

I cannot delete a Lambda@Edge function create by Cloud Formation. During the Cloud Formation creation process an error occurred and the rollback process was exe

AWS Lambda@Edge 502 LambdaValidationError in CloudFront for redirect

I have a lambda function which performs 301 redirect if it has uri that is generated using regex. const redirects = { xyz: '/contact', abc: '/about', };

Can I grant lambda access to other accounts using Organization Unit IDs?

I want to create a lambda that will exist in one central account and that will get invoked by other accounts within my Organization. I know it is possible to g

Create and deploy Micronaut AWS Lambda GraalVM Native Image CRUD Application to handle APIGatewayV2HttpEvent by delegating to Controller

I am trying to deploy (via Docker) a CRUD Micronaut AWS Lambda (Function/Application?) that should handle APIGatewayV2HTTPEvent requests and should compile into

How to force AWS Timestream to always interpret a number as double in an IoTCore rule?

Sensor payload decoders are mostly provided as javascript code by the sensor manufacturers. As I'm using different sensor types, I want to use the original deco

Log4j2 + AWS JAVA LAMBDA + CLOUD WATCH LOGS

I am using the following configurations in my code but cloudwatch logs are not getting generated. Log4j2.xml is present in main/resources. I am following the AW

Laravel aws lambda file upload exception - Aws\S3\Exception\S3Exception: Error executing InvalidAccessKeyId

Aws\S3\Exception\S3Exception: Error executing "PutObject" on "https://sage-dev-serverlessdeploymentbucket-1t0g1w1stv04r.s3.amazonaws.com/images/background.jpg"

Avoid re-build of AWS Lambda Layer in CDK

I have a CDK stack that, among other infrastructure elements, deploys an AWS Lambda Layer (or actually a lambda.LayerVersion). I noticed that every time I updat

Unable to send logs from kinesis firehose to opensearch

I have a workflow, where: All cloudwatch logs will be streamed to Kinesis Firehose Delivery Stream. From Kinesis Firehose Delivery Stream, it will be sent to Op

AWS Lambda image/pdf upload to S3 is corrupted (asp.net core)

I have written a function that uploads a file in an s3 bucket. It works fine when I run my application locally. But when I deploy the application in AWS Lambda,