Check for a particular file on S3 and then execute a python code if the file is found
I have requirement to run a python code. The python code takes data from S3 bucket and does some processing on it.
I have to execute the python code only if found a trigger file in bucket.
I have build following design. I am running tsystem with Runif condition as
file_list == "u.data"
but then I am getting error as "file_list cannot be resolved to a variable"
My S3 bucket contains multiple files but I need to check if my trigger file (in this case) u.data is present. If present then execute the python code through tsystem else give an output as "File Not Found"