Quantcast
Channel: Active questions tagged aws-lambda - Stack Overflow
Browsing all 4011 articles
Browse latest View live
↧

Amazon MQ cross account access

I have Amazon MQ in AWS account A. I want to set this Amazon MQ as a trigger for a lambda function in account B. Lambda does not currently support cross-account triggering for Amazon MQ. How can i do...

View Article


Is there a way to log AWS Lambda response https handshake status?

I am serving an API using AWS Lambda with ALB in front to it.@Overridepublic APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent input, Context context) { ... return responseEvent =...

View Article


Docker pull from public.ecr.aws results in "403 Forbidden" error

I'm attempting to build a Docker image on my Mac M1 machine using the public.ecr.aws/lambda/python:3.8 image from Amazon ECR Public as the base image in my Dockerfile. However, I'm encountering the...

View Article

How do you specify child execution name/ID for AWS Step Functions Distributed...

We are using the AWS Step Function distributed map. It creates a number of child executions for the map run. How do you specify the name/execution ID for these child executions? By default it is a...

View Article

Getting error "Get-LMFunctionList : The security token included in the...

I am trying to run the PowerShell command Get-LMFunctionList -Region "eu-west-1" after importing the module AWS.Tools.Lambda. I am using PowerShell version 5.1 and AWS.Tools.Lambda version 4.1.530.When...

View Article


serverless-offline module --> Cannot use import statement outside a module

I am currently developing a simple lambda function using node.js with serverless.yml templates.My project is using typescript and tsconfig is set to ESNext target version along with ESnext module as...

View Article

executablePath error in puppeteer to launch a lambda function

I have encountred a problem in my sst app where i wanted to launch a puppeteer lambda functionimport puppeteer from 'puppeteer-core';import chromium from '@sparticuz/chromium';export async function...

View Article

No module named 'pydantic_core._pydantic_core' in AWS Lambda though library...

AWS lambda deployment of FastAPI gives the following error:[ERROR] Runtime.ImportModuleError: Unable to import module 'users_crud': No module named 'pydantic_core._pydantic_core'Traceback (most recent...

View Article


Image may be NSFW.
Clik here to view.

'pydantic_core._pydantic_core'" using langchain and lambda layers">AWS lambda "Unable to import module 'lambda_function': No module named...

ContextI have a lambda with the following handler function:import jsonfrom langchain_community.llms import ollamadef lambda_handler(event, context): return {'statusCode': 200,'body': json.dumps('Hello...

View Article


API Gateway CORS works for GET method but not POST method

I have an API gateway endpoint (https://mhw8mm294k.execute-api.us-east-1.amazonaws.com/prod/saveImage). It integrates with a lambda function. There are three methods (GET,POST,OPTIONS). CORS is enabled...

View Article

AWS IAM resource policy and Lambda Role not working

I have a question regarding AWS Lambdas and setting the Access(resource_ policy on AWS Opensearch (using Elasticsearch 6.8 under the hood)What I want to do is to set up the following access policy on...

View Article

Allow lambda internet connection inside VPC

I have one lambda inside a VPC. It has 2 subnets (A & B). I need to call an external api inside the lambda. I've been reading about NatGatway and RouteTables but I'm not able to provide internet...

View Article

Image may be NSFW.
Clik here to view.

AWS Lambda function task timed out

I created a serverless App on AWS using the serverless framework template. The Lambda function is in python3.10, arm architecture. the code will register an user in aws cognito user pool. I created a...

View Article


How can I add an identity provider to an existing user in an AWS Cognito user...

Problem Description:I'm encountering challenges when attempting to add an identity provider (IdP) to an existing user in an AWS Cognito user pool using the OIDC (OpenID Connect)...

View Article

Image may be NSFW.
Clik here to view.

Ghoscript throws GPL Ghostscript 9.53.3: error reading a content stream. The...

I am using ghostscript in AWS lambda functions to generate pdf thumnail. it works for most of the pdfs but for some pdf it throws some error.ERROR Error: Command failed: ./bin/gs -dQUIET...

View Article


Getting Runtime.InvalidEntrypoint Error when using python container with AWS...

I am trying to use the public.ecr.aws/lambda/python:3.10 base image to be used with aws lambda, i am trying to add gossamer3 as a tool in the image and adding some python modules to the image. Here is...

View Article

Amazon LEX throwing error while communicating with Lambda

I have been struggling to integrate a logic in LEX using lambda from the past 3 days and it keeps on throwing me the same error. I have read the AWS documentation for the Lex V2 and have (to the best...

View Article


How to use amazon LEX?

How can I develop a chatbot using Amazon Lex that not only comprehends user prompts but also learns and adjusts its responses over time, akin to the capabilities exhibited by ChatGPT?I explored Amazon...

View Article

When synth or deploy with AWS CDK getting bundling error related to knex

I am using only the mssql client. But I am getting below bundling errors when I try to run cdk synth.Node.js - v18.16.0CDK - 2.95.1knex - 2.5.1dirname /.../my-repo/cdk/my-app/lib/lambdaBundling asset...

View Article

openssl command not found on Amazon Linux 2023

I'm trying to build an image to run my lambda on.Here is my Dockerfile:FROM public.ecr.aws/lambda/nodejs:20 as builderRUN cat /etc/os-releaseRUN dnf update openssl --releasever 2023.1.20230628RUN...

View Article
Browsing all 4011 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>