bash scripts to interact with S3