So, uploading to S3 is not always as simple as it should be. Here's a completely self-contained Groovy script that can upload files to your S3 bucket, plus provide a signed link to access the uploaded file.
The script uses Groovy's
Grab macro to download the JetS3t library which does the heavy lifting.
#!/opt/groovy/bin/groovy /* Script to manipulate S3 objects. * @author Tom Nichols * @see ...