Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1357 from westonplatter/issue/1350

Issue/1350 add aws page to fog.io.
  • Loading branch information...
commit 8d4918d117c11f6bc25c592ff73f33b0c322ba53 2 parents 6d08de9 + 43ebf56
@tokengeek tokengeek authored
Showing with 23 additions and 0 deletions.
  1. +21 −0 docs/storage/aws.markdown
  2. +2 −0  docs/storage/index.markdown
View
21 docs/storage/aws.markdown
@@ -0,0 +1,21 @@
+---
+layout: default
+title: Storage
+---
+
+## AWS Specific Options
+
+Here's a couple Fog features specific only to AWS S3.
+
+**Encryption**. Amazon provides the option to AES256 encrypt files at rest on
+upload by setting the "x-amz-server-side-encryption" HTTP request header to
+AES256. You can short hand set this HTTP header via the ````encryption```` key
+value pair. For example,
+
+ # encrypt file at rest
+ file = directory.files.create(
+ :key => 'resume.html',
+ :body => File.open("/path/to/my/resume.html"),
+ :public => true,
+ :encryption => 'AES256'
+ )
View
2  docs/storage/index.markdown
@@ -125,6 +125,8 @@ Pop that link in an email and you should be ready to cruise job ads and send you
More clouds? How much extra stuff will you have to do for these services!?! Hardly anything needs to change, you just have to pass slightly different credentials in, but I'm getting ahead of myself.
+Check out the Amazon S3 Storage page for further details, <a href="/storage/aws.html">AWS Storage</a>.
+
## Google Cloud Storage
Sign up <a href="http://gs-signup-redirect.appspot.com/">here</a> and get your credentials <a href="https://storage.cloud.google.com/m">here</a> under the section "Interoperable Access".
Please sign in to comment.
Something went wrong with that request. Please try again.