I have files in S3 that are checked with a Python script in AWS Glue. For each file I check the first line to see if the format is correct and then I register a row in Redshift