-
Login to Amazon Web Services.
-
Select Services and choose S3.
-
Click Create Bucket, then enter a bucket name and select the reigion where you want your content to live, then hit Create.
-
Choose your bucket, then click Upload. Select an image and hit Start Upload.
-
Click Properties - Drop down Static Website Hosting, click Enable website hosting, Index Document enter your index file, e.g. index.html, and hit Save.
-
Update your bucket policies for website access by copying the code below.
{ "Version":"2012-10-17", "Statement":[{ "Sid":"PublicReadGetObject", "Effect":"Allow", "Principal": "*", "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::example-bucket/*" ]} ] }
-
Drop down Permissions within your bucket and click Add bucket policy.
-
Paste in the bucket policy and change example-bucket to your bucket name, then hit Save.
-
Test the bucket is working by dropping down Static Website Hosting and copy your Endpoint URL, then paste it in your browser and add your image name to the end, e.g. /cdnify-logo.png.
-
Login to CDNify - Click Create Resource, then paste in your Endpoint in Resource Origin and enter in your Resource Name.
-
Copy your Resource Name and paste it into your browser, then add your image name to the end. Your content is now hosted on Amazon S3 and served with CDNify.