when I have a model.xlsx with an image and this code is working perfectly on windows. (keeping the image in output.xlsx) Now when I do this on my AWS Lambda everything works perfectly BUT I don’t have the image on the output.xlsx. No error message raised. Should I raise a ticket to AWS ? openpyxl ? Why is there no
Tag: aws-lambda
get data from s3 Bucket [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question This is my code I got this error while getting the data from the bucket. Answer The error message writes
How to parse Boto3 200 response for copy_object request
I am new to Python and I’m writing an AWS lambda that copies files from one bucket to another. I am using the Boto3 library and have come across the following in the documentation: A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3 is copying the files. If the error occurs
AWS Lambda function with placeholders
I am working on AWS Lambda function for my python function. I have a python function that calls an IAM policy form a file and populates it using the function. This is my function, name of the file is template_utils.py”: This is my policy file named “meta_templates.py” I want to create a lambda handler that does the same thing with
Getting “not all arguments converted during string formatting” exception in AWS Lambda function
I am trying to write an AWS Lambda function in python that retrieves records from a table. I have no trouble running the code locally. However, when I run the code in AWS Lambda function, I get the error “not all arguments converted during string formatting”. The query is executed by the following code: class SalesReceipt(declarative_base(), PersistentBase.PersistentBase): tablename = ‘sales_receipts’
when calling the UpdateMethod operation getting invalid path error for /methodIntegration/uri
I’m updating an API in AWS API Gateway. This is my lambda function: This works fine and updates “API key required” field, but when I try to update the “URI” field it throws the following error. “errorMessage”: “An error occurred (BadRequestException) when calling the UpdateMethod operation: Invalid patch path /methodIntegration/uri”, The path looks fine to me. Docs: https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-method.html Answer apiKeyRequired
Signature Error while updating S3 object metadata through boto3
I have a lambda function that takes S3 object from S3 events and updates it with the custom metadata. Here is the boto3 script: When I run the script, it gives me the following error: An error occurred (SignatureDoesNotMatch) when calling the CopyObject operation: The request signature we calculated does not match the signature you provided. Check your key and
AWS Lambda – Combine multiple CSV files from S3 into one file
I am trying to understand and learn how to get all my files from the specific bucket into one csv file. I have the files that are like logs and are always in the same format and are kept in the same bucket. I have this code to access them and read them: It does print them with separation between
Update values in Dynamodb by modifying the previous values
I created a dynamodb table and I am using the lambda function to update the values in the dynamodb table. The problem with my function for updating the values, not modifying the older values which were already present in the dynamodb, it just overwriting the values. My code snippet for updating the data item in Dynamodb table: Here Key is
Unable to import module ‘lambda_function’: No module named *
I am trying to run a python lambda function that uses additional packages. However whenever I upload the .zip file to the lambda console I get the error: I followed these instructions: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-dependencies which told me to make sure my packages were in a directory local to my lambda function: I am not using Pillow. This is sample code from