Relative Content

Tag Archive for pythonaws-lambda

Code works locally but gets positional indexers are out-of-bounds on AWS Lambda

I’m running a code to extract data from a Gsheets Sheet and loading it into a Postgres database. The code works perfectly with other sheets of the same workbook as AWS Docker and also when I run it locally on my computer. However, when I push the code via a Docker Container to AWS Lambda I always get the error “positional indexers are out-of-bounds”.
Does someone has an idea where that comes from?

Apply a tag using an AWS Lambda funtion to an S3 object with a space in it’s name

I have a python function that I am running through a Lambda. The function runs properly when uploading an object to S3, if the object’s name does not contain a space. For example if I upload an object called “example.txt” the object is tagged properly. However, if I upload an object called “example 2.txt” the function errors out with a permission denied error. Below is the python script I am running.