snowflake-connector-python[pandas] write_pandas creates duplicate records in...
I am attempting to copy data into snowflake on an AWS Lambda. I have a situation right now where I have a dataframe that has no duplicates in it. I verify this by checking my dataframe like...
View ArticleHow install pydantic library in AWS Lambda?
I'm working in a project develop with serverless framework, Flask and MongoDB. The problem it's when I try to install pydantic, in the traceback say's ModuleNotFoundError: No module named...
View ArticleHTTPApi + Serverless Framework + API Gateway CORS not working
I have an HTTPApi API Gateway created with the Serverless Framework. But for some routes, the CORS is not working.provider: name: aws runtime: nodejs12.x stage: dev region: us-west-2 timeout: 29...
View Articleexpected AWS Lambda environment variables [_LAMBDA_SERVER_PORT...
I am trying to create a simple AWS Lambda function with GoLang that performs that performs an HTTP API request (GET) (API Gateway). I have the following functions and code snippetsin my main.go file...
View ArticleRedshift query with regexp_replace works in Redshift console but not Python...
One of the fields in my Redshift table is structured like {event_type} 2024-01-01, so I am using regexp_replace to remove the date from the event type. I am calling Redshift via a Python Lambda like...
View ArticleTrigger Lambda function when s3 object with specific tag value is uploaded
Our use case is that, we will be uploading S3 objects with specific tag values and based on that specific tag value lambda function need to be triggered and it should move that object with specific tag...
View ArticleAWS Lambda + Python - No module named pkg_resources
I am trying to create a python deployment package for AWS Lambda. I have followed documentation specified at Creating a Deployment Package (Python)While testing created Lambda function, I am getting...
View ArticleHow to import a file in a lambda? [closed]
I am using docker to create a docker image in my directory I have the following files, dockerfile , indicator_mtd_ytd.py and lambda.py.In lambda.py I have this code:import awswrangler as wrfrom...
View ArticleJDBC connection in a python lambda program using py4j
I am trying to use JDBC connection in a python Lambda function. I uploaded the py4j zip as a layer for this Lambda function. I did import py4j. It says No module named py4j. MY program is to test the...
View ArticleTerraform: - How to properly pass input variables for cdktf commands for a C#...
Here is info about our technical development environment :HashiCorp.Cdktf 0.16.3HashiCorp.Cdktf.Providers.Aws 14.0.4HashiCorp.Cdktf.Providers.Docker 7.0.1Amazon.Lambda.Core...
View ArticleOSError:[Errno 30]Read-only file system:'2024-04-05-06-15-30.176066'...
while running aws lambda function and doing inference with DL model over container running in lambda, when i am downloading my model from s3 it is running but when i instantiate a StarDist2D(conf)...
View ArticleAWS Lambda timing out when I try to initiatize the Lambda() function from...
I am trying to invoke another lambda function from one lambda. However, even before getting to the invoke() line, lambda is timing out after 10 seconds. Here is the code:import { Lambda } from...
View ArticleAWS Lambda error: Cannot find package '@elastic/elasticsearch' imported from...
Even after trying adding the layer of elasticsearch to my lambda, its still giving the same error.the commands ive followed:npm install @elastic/elasticsearchmkdir -p my-layer/nodejs/node_modulescp -r...
View ArticleBest practices for the error handling in python app deployed on AWS
I am creating an app in python languages to deploy in the AWS. this app will connect with aws services and other third party errors. Now i want to handle all types of errors that might occur in the...
View ArticleAccess Denied while sending email from AWS SES in Lambda function
I am trying to send an email using Amazon SES in AWS Lambda function, For this i am facing the following error.AccessDenied: User arn:aws:sts::XXXXX:assumed-role/lambda_basic_execution/awslambda_XXXX'...
View ArticleUsing library VS cwebp binary `child_process`
I would like to convert SVG paths to WebP files in the cloud.I am hoping somebody who has experience with this can tell me which of the two options, somehow installing the cwebp binary and executing...
View ArticleWrite incremental load data from multiple DynamoDB tables to single S3 bucket
I am working on use case where I need to transfer data from multiple DynamoDB tales to single S3 bucket in an event based manner. The design I had can support data from one DynamoDB table to s3 and is...
View Articleaws-sam-local environment variables
I am following the readme here: https://github.com/awslabs/aws-sam-localI have a lambda written in python 3.6 and its similar to the helloworld example here :...
View ArticleWebsocket Connection Nuxt AWS Lambda
This question may be a bit vague, but I am sure this is for a problem that others have or want to solve so I thought it worth asking for guidance here.I am integrating stripe payment into my...
View ArticlePython, Selenium AWS Lambda function
Does anybody know how to run a Python function with Selenium which gets data from a webpage like the AWS Lambda function? When I run my Lambda function it hits the time limit (although I set the time...
View Article