Sha256: 95029fd26c74b1c873ce5d4a573772312a9c70bb4ef6e237ed938601a2c8b60e

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

---
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'
    )

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-1.9.0 docs/storage/aws.markdown
fog-maestrodev-1.8.0.20130114204828 docs/storage/aws.markdown
fog-maestrodev-1.8.0.20130111070250 docs/storage/aws.markdown
fog-maestrodev-1.8.0.20130109172219 docs/storage/aws.markdown