Original post

This example shows how to upload a local file onto an S3 bucket using the Go AWS SDK. Our first step is to step up the session using the NewSession function. We’ve then created an AddFileToS3 function which can be called multiple times when wanting to upload many files.
Within the PutObjectInput you can specify options when uploading the file and in our example we show how you can enable AES256 encryption on your files (when at rest).