I have been using AWS Glue ETL job in Scala to write data to s3.
So I have a source dataframe something like this
var src_df = glueContext.getCatalog