finished control flow script and pipeline for uploading metadata to s3 server