Xcode 7 playground to upload a single image to AWS S3.
Swift Ruby Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AWS.xcworkspace
AWS
S3Uploader.playground
.gitignore
Podfile
Podfile.lock
README.md

README.md

Playground to upload a single image to AWS S3.

The relevant bits from S3TransferManager-Sample to upload an image to S3 in swift.

Requirements:

  • pod install
  • Build the AWS project to make AWS frameworks available to the playground
  • Configure your AWS Cognito pool ID, region and S3 bucket name

See how to configure policies to allow a cognito pool to access S3: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/s3transfermanager.html

Give public access to the bucket:

{
    "Statement": [
        {
            "Action": "s3:GetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Resource": "arn:aws:s3:::your-bucket-name/*",
            "Sid": "AddPerm"
        }
    ]
}