From b39f2c4a44767a6ce45babed2a8ca165ac687407 Mon Sep 17 00:00:00 2001 From: Weston Platter Date: Thu, 6 Dec 2012 09:00:34 -0600 Subject: [PATCH] add aws page - wip #1350 --- docs/storage/aws.markdown | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/storage/aws.markdown diff --git a/docs/storage/aws.markdown b/docs/storage/aws.markdown new file mode 100644 index 000000000..27766a8c8 --- /dev/null +++ b/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' + )