Skip to content

Commit b39f2c4

Browse files
committed
add aws page - wip fog#1350
1 parent 145b917 commit b39f2c4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/storage/aws.markdown

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
layout: default
3+
title: Storage
4+
---
5+
6+
## AWS Specific Options
7+
8+
Here's a couple Fog features specific only to AWS S3.
9+
10+
**Encryption**. Amazon provides the option to AES256 encrypt files at rest on
11+
upload by setting the "x-amz-server-side-encryption" HTTP request header to
12+
AES256. You can short hand set this HTTP header via the ````encryption```` key
13+
value pair. For example,
14+
15+
# encrypt file at rest
16+
file = directory.files.create(
17+
:key => 'resume.html',
18+
:body => File.open("/path/to/my/resume.html"),
19+
:public => true,
20+
:encryption => 'AES256'
21+
)

0 commit comments

Comments
 (0)