Many Thanks Soumil. This is what exactly I was looking for. We have Kinesis data stream and we are exporting to S3 through firehose. The firehose exports data in yyyy/MM/dd/HH format. We needed to write batch-ETL in glue to transform the data and store this in different S3 location. The new location should have the same format, yyyy/MM/dd/HH. This code really helped in solving this issue.