Swift example - upload from camera or photo library to S3 bucket
A quick example on how to upload images to an S3 bucket in AWS.
Be sure to enter the identity pool ID in the app delegate. Also enter the bucket name and image name you wish to upload in the viewcontroller imagePickerController function
Find more info here