SlideShare a Scribd company logo
AmazonS3

mstannard@gmail.com
What is it?

        S3 = Simple Storage System



 quot;Amazon S3 is storage for the Internet. It
 is designed to make web-scale computing
 easier for developers.quot;
Features
  Write, read, delete from 1B to 5GB

  REST and SOAP interfaces

  HTTP & BitTorrent protocols supported

  Authentication built-in

  US & European storage
Why use it?
  CDN

  Fast

  Scalable

  Simple

  Inexpensive

  Reliable 99.99%
Basic Concepts
Object - data + metadata (custom + some standard)

Bucket - the storage container (max 100 / dev)
       - must be unique across whole S3 service

 Key   - unique identifier of an object in
         a bucket
Using S3 with Rails

  Signup at Amazon

  Install AWS::S3 gem

  Install attachment_fu plugin
config/amazons3.yml
 development:
  bucket_name: reading_eggs_development
  access_key_id: my_access_key
  secret_access_key: my_secret_key

 test:
  bucket_name: reading_eggs_test
  access_key_id: my_access_key
  secret_access_key: my_secret_key

 prod:
  etc.....
attachment_fu

before:

has_attachment :content_type => 'application/x-shockwave-flash',
    :storage => :file_system,
    :path_prefix => 'path/to/files/',
    :max_size => 10.megabytes
attachment_fu

after:

has_attachment :content_type => 'application/x-shockwave-flash',
    :storage => :s3,
    :max_size => 10.megabytes
attachment_fu
access:

>> p = PartFile.find(:first)
=> #<PartFile:0x23a0eb0
@attributes={quot;content_typequot;=>quot;application/x-shockwave-flashquot;,
quot;sizequot;=>quot;4434939quot;, quot;idquot;=>quot;315quot;, quot;filenamequot;=>quot;I_and_a.swfquot;}
>> p.public_filename
=> quot;http://s3.amazonaws.com/reading_eggs_dev/part_files/315/
I_and_a.swfquot;
>> p.full_filename
=> quot;part_files/315/I_and_a.swfquot;
>> p.bucket_name
=> quot;reading_eggs_devquot;
Pricing
Storage
$0.15 per GB-Month of storage used

Data Transfer
$0.10 per GB - all data transfer in
$0.18 per GB - first 10 TB / month data transfer out
$0.16 per GB - next 40 TB / month data transfer out
$0.13 per GB - data transfer out / month over 50 TB

Requests
$0.01 per 1,000 PUT or LIST requests
$0.01 per 10,000 GET and all other requests*
* No charge for delete requests
Sample Costings
Data Storage Costs
1GB/M $0.15

1 GB Storage = $0.15


Bandwidth Costs
5000 Users

200 MB / User / Month

0.2 GB * 5000 = 1000GB * $0.18 = $180


Request Costs
Request = 200/User/Month = 5000 * 200 = 1M get requests

1000000/10000 = 100 * $0.01 = $1

Total Cost
US$181.15
Resources
Amazon S3 : http://aws.amazon.com/s3

AWS::S3 gem : http://amazon.rubyforge.org/

s3fox : http://www.rjonna.com/ext/s3fox.php

s3 calc : http://calculator.s3.amazonaws.com

More Related Content

What's hot

Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress Security
Shawn Hooper
 
Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010
Brad Williams
 
WordPress Security Presentation
WordPress Security PresentationWordPress Security Presentation
WordPress Security Presentation
Andrew Paton
 
Easy Copy with AZ Copy
Easy Copy with AZ CopyEasy Copy with AZ Copy
Easy Copy with AZ Copy
John Garland
 
WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010
Brad Williams
 
Threat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using SplunkThreat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using Splunk
jamesmbower
 
ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014
Alberto Paro
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013
Brad Williams
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
Chetan Soni
 
WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009
Brad Williams
 
Basics of web technologies
Basics of web technologiesBasics of web technologies
Basics of web technologies
Bambootechies
 
4.4 PHP Session
4.4 PHP Session4.4 PHP Session
4.4 PHP Session
Jalpesh Vasa
 
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security ExpertComplete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Chetan Soni
 
TL; DR: iOS 9R
TL; DR: iOS 9RTL; DR: iOS 9R
TL; DR: iOS 9R
Kevin Donnelly
 
Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0
py_sunil
 
Security in php
Security in phpSecurity in php
Security in php
Jalpesh Vasa
 
Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011
Vlad Lasky
 
Integrating External APIs with WordPress
Integrating External APIs with WordPressIntegrating External APIs with WordPress
Integrating External APIs with WordPress
Marty Thornley
 

What's hot (20)

Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress Security
 
Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010
 
WordPress Security Presentation
WordPress Security PresentationWordPress Security Presentation
WordPress Security Presentation
 
secure php
secure phpsecure php
secure php
 
Easy Copy with AZ Copy
Easy Copy with AZ CopyEasy Copy with AZ Copy
Easy Copy with AZ Copy
 
WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010WordPress Security - WordCamp Boston 2010
WordPress Security - WordCamp Boston 2010
 
Threat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using SplunkThreat Hunting Web Shells Using Splunk
Threat Hunting Web Shells Using Splunk
 
ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014ElasticSearch Meetup 30 - 10 - 2014
ElasticSearch Meetup 30 - 10 - 2014
 
WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013WordPress Security WordCamp OC 2013
WordPress Security WordCamp OC 2013
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009WordPress Security - WordCamp NYC 2009
WordPress Security - WordCamp NYC 2009
 
APACHE 2 HTTPS.ppt
APACHE 2 HTTPS.pptAPACHE 2 HTTPS.ppt
APACHE 2 HTTPS.ppt
 
Basics of web technologies
Basics of web technologiesBasics of web technologies
Basics of web technologies
 
4.4 PHP Session
4.4 PHP Session4.4 PHP Session
4.4 PHP Session
 
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security ExpertComplete Wordpress Security By CHETAN SONI - Cyber Security Expert
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
 
TL; DR: iOS 9R
TL; DR: iOS 9RTL; DR: iOS 9R
TL; DR: iOS 9R
 
Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0Whats new in ASP.NET 4.0
Whats new in ASP.NET 4.0
 
Security in php
Security in phpSecurity in php
Security in php
 
Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011Securing Your WordPress Website - WordCamp GC 2011
Securing Your WordPress Website - WordCamp GC 2011
 
Integrating External APIs with WordPress
Integrating External APIs with WordPressIntegrating External APIs with WordPress
Integrating External APIs with WordPress
 

Viewers also liked

Com Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al MoodleCom Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al Moodle
oscargarcia
 
De la intranet al portal colaborativo
De la intranet al portal colaborativoDe la intranet al portal colaborativo
De la intranet al portal colaborativo
Jose A. del Moral
 
AIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in HospitalityAIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in Hospitality
PSPSolutions.net
 
Volcanic Activities By Dary
Volcanic Activities By DaryVolcanic Activities By Dary
Volcanic Activities By Darydary_93
 
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
guestb3607d
 
The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...
PSPSolutions.net
 
GossipCast Presentation
GossipCast PresentationGossipCast Presentation
GossipCast Presentationguestba1cca
 
Thailand's GHG mitigation plan
Thailand's GHG mitigation planThailand's GHG mitigation plan
Thailand's GHG mitigation plan
PSPSolutions.net
 
Technology And The Production Of Difference
Technology And The Production Of DifferenceTechnology And The Production Of Difference
Technology And The Production Of Differenceguestba1cca
 
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
PSPSolutions.net
 
New year resolution 2011
New year resolution 2011New year resolution 2011
New year resolution 2011
andrew jones
 
Resourcing Missional Entrepreneurs
Resourcing Missional EntrepreneursResourcing Missional Entrepreneurs
Resourcing Missional Entrepreneurs
andrew jones
 
Sorting Room
Sorting RoomSorting Room
Sorting Room
andrew jones
 
Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007KNatalia
 
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
guestb3607d
 
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Andrey Golub
 
Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)
PSPSolutions.net
 

Viewers also liked (20)

O antes e o depois
O antes e o depoisO antes e o depois
O antes e o depois
 
Com Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al MoodleCom Penjar Una Presentació Al Moodle
Com Penjar Una Presentació Al Moodle
 
De la intranet al portal colaborativo
De la intranet al portal colaborativoDe la intranet al portal colaborativo
De la intranet al portal colaborativo
 
AIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in HospitalityAIETT and ITCC seminar on Ener Con in Hospitality
AIETT and ITCC seminar on Ener Con in Hospitality
 
Volcanic Activities By Dary
Volcanic Activities By DaryVolcanic Activities By Dary
Volcanic Activities By Dary
 
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...Strijker, A. (2004). Reuse Of Learning Objects In Context   Human And Technic...
Strijker, A. (2004). Reuse Of Learning Objects In Context Human And Technic...
 
The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...The role of renewable energy and energy efficiency in climate change and its ...
The role of renewable energy and energy efficiency in climate change and its ...
 
GossipCast Presentation
GossipCast PresentationGossipCast Presentation
GossipCast Presentation
 
Thailand's GHG mitigation plan
Thailand's GHG mitigation planThailand's GHG mitigation plan
Thailand's GHG mitigation plan
 
Technology And The Production Of Difference
Technology And The Production Of DifferenceTechnology And The Production Of Difference
Technology And The Production Of Difference
 
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...Duncan Firth renewable energy and energy efficiency and its relevance to the ...
Duncan Firth renewable energy and energy efficiency and its relevance to the ...
 
EquivocacióN
EquivocacióNEquivocacióN
EquivocacióN
 
Global connect
Global connect Global connect
Global connect
 
New year resolution 2011
New year resolution 2011New year resolution 2011
New year resolution 2011
 
Resourcing Missional Entrepreneurs
Resourcing Missional EntrepreneursResourcing Missional Entrepreneurs
Resourcing Missional Entrepreneurs
 
Sorting Room
Sorting RoomSorting Room
Sorting Room
 
Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007Gulag Presentation Natalia Keritsis April 15 2007
Gulag Presentation Natalia Keritsis April 15 2007
 
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
Strijker, A. (2004 Sep 18). Presentation Reuse Of Learning Objects In Context...
 
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
Report Indagine MilanIn 2009, Business Networking MADE IN ITALY.
 
Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)Department of alternative energy development and efficiency (dede)
Department of alternative energy development and efficiency (dede)
 

Similar to AmazonS3 & Rails

Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
Amazon Web Services
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
Ian Massingham
 
Seguranca em APP Rails
Seguranca em APP RailsSeguranca em APP Rails
Seguranca em APP Rails
Daniel Lopes
 
My First Big Data Application
My First Big Data ApplicationMy First Big Data Application
My First Big Data Application
Amazon Web Services
 
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel AvivAmazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon Web Services
 
Amazon S3: Masterclass
Amazon S3: MasterclassAmazon S3: Masterclass
Amazon S3: Masterclass
Amazon Web Services
 
Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11
ColdFusionConference
 
Workshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWSWorkshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWS
Amazon Web Services
 
Introduction to Amazon S3
Introduction to Amazon S3Introduction to Amazon S3
Introduction to Amazon S3
Ashay Shirwadkar
 
Building Your First Big Data Application on AWS
Building Your First Big Data Application on AWSBuilding Your First Big Data Application on AWS
Building Your First Big Data Application on AWS
Amazon Web Services
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
linoj
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
Jonathan Linowes
 
Capture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninjaCapture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninja
Vito Flavio Lorusso
 
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
Martijn van Dongen
 
Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)
Marc DECHEVRE
 
Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3
Marc DECHEVRE
 
Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)
James Aylett
 
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
Amazon Web Services
 
AWS essentials S3
AWS essentials S3AWS essentials S3
AWS essentials S3
mustafa sarac
 
Java secure development part 3
Java secure development   part 3Java secure development   part 3
Java secure development part 3
Rafel Ivgi
 

Similar to AmazonS3 & Rails (20)

Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Seguranca em APP Rails
Seguranca em APP RailsSeguranca em APP Rails
Seguranca em APP Rails
 
My First Big Data Application
My First Big Data ApplicationMy First Big Data Application
My First Big Data Application
 
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel AvivAmazon S3 - Masterclass - Pop-up Loft Tel Aviv
Amazon S3 - Masterclass - Pop-up Loft Tel Aviv
 
Amazon S3: Masterclass
Amazon S3: MasterclassAmazon S3: Masterclass
Amazon S3: Masterclass
 
Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11Using amazon web services with cold fusion 11
Using amazon web services with cold fusion 11
 
Workshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWSWorkshop: Building Your First Big Data Application on AWS
Workshop: Building Your First Big Data Application on AWS
 
Introduction to Amazon S3
Introduction to Amazon S3Introduction to Amazon S3
Introduction to Amazon S3
 
Building Your First Big Data Application on AWS
Building Your First Big Data Application on AWSBuilding Your First Big Data Application on AWS
Building Your First Big Data Application on AWS
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
 
Capture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninjaCapture, record, clip, embed and play, search: video from newbie to ninja
Capture, record, clip, embed and play, search: video from newbie to ninja
 
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
CloudFormation techniques from the Dutch trenches (DVC07) - AWS re:Invent 2018
 
Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)Joomla : Akeeba backup and Amazon S3 (new version)
Joomla : Akeeba backup and Amazon S3 (new version)
 
Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3Joomla : Akeeba backup and Amazon S3
Joomla : Akeeba backup and Amazon S3
 
Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)Django Files — A Short Talk (slides only)
Django Files — A Short Talk (slides only)
 
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
(SEC309) Amazon VPC Configuration: When Least Privilege Meets the Penetration...
 
AWS essentials S3
AWS essentials S3AWS essentials S3
AWS essentials S3
 
Java secure development part 3
Java secure development   part 3Java secure development   part 3
Java secure development part 3
 

Recently uploaded

一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
taqyed
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
Ben Wann
 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
seoforlegalpillers
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
BBPMedia1
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
Nicola Wreford-Howard
 
Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
bosssp10
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
uae taxgpt
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
usawebmarket
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
Workforce Group
 
Enterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdfEnterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdf
KaiNexus
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
zoyaansari11365
 
Set off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptxSet off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptx
HARSHITHV26
 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
dylandmeas
 
The key differences between the MDR and IVDR in the EU
The key differences between the MDR and IVDR in the EUThe key differences between the MDR and IVDR in the EU
The key differences between the MDR and IVDR in the EU
Allensmith572606
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
Norma Mushkat Gaffin
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
awaisafdar
 
LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024
Lital Barkan
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 

Recently uploaded (20)

一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
 
Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 7735293663 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
 
Enterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdfEnterprise Excellence is Inclusive Excellence.pdf
Enterprise Excellence is Inclusive Excellence.pdf
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
 
Set off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptxSet off and carry forward of losses and assessment of individuals.pptx
Set off and carry forward of losses and assessment of individuals.pptx
 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
 
The key differences between the MDR and IVDR in the EU
The key differences between the MDR and IVDR in the EUThe key differences between the MDR and IVDR in the EU
The key differences between the MDR and IVDR in the EU
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
 
The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...The Parable of the Pipeline a book every new businessman or business student ...
The Parable of the Pipeline a book every new businessman or business student ...
 
LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 

AmazonS3 & Rails

  • 2. What is it? S3 = Simple Storage System quot;Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers.quot;
  • 3. Features Write, read, delete from 1B to 5GB REST and SOAP interfaces HTTP & BitTorrent protocols supported Authentication built-in US & European storage
  • 4. Why use it? CDN Fast Scalable Simple Inexpensive Reliable 99.99%
  • 5. Basic Concepts Object - data + metadata (custom + some standard) Bucket - the storage container (max 100 / dev) - must be unique across whole S3 service Key - unique identifier of an object in a bucket
  • 6. Using S3 with Rails Signup at Amazon Install AWS::S3 gem Install attachment_fu plugin
  • 7. config/amazons3.yml development: bucket_name: reading_eggs_development access_key_id: my_access_key secret_access_key: my_secret_key test: bucket_name: reading_eggs_test access_key_id: my_access_key secret_access_key: my_secret_key prod: etc.....
  • 8. attachment_fu before: has_attachment :content_type => 'application/x-shockwave-flash', :storage => :file_system, :path_prefix => 'path/to/files/', :max_size => 10.megabytes
  • 9. attachment_fu after: has_attachment :content_type => 'application/x-shockwave-flash', :storage => :s3, :max_size => 10.megabytes
  • 10. attachment_fu access: >> p = PartFile.find(:first) => #<PartFile:0x23a0eb0 @attributes={quot;content_typequot;=>quot;application/x-shockwave-flashquot;, quot;sizequot;=>quot;4434939quot;, quot;idquot;=>quot;315quot;, quot;filenamequot;=>quot;I_and_a.swfquot;} >> p.public_filename => quot;http://s3.amazonaws.com/reading_eggs_dev/part_files/315/ I_and_a.swfquot; >> p.full_filename => quot;part_files/315/I_and_a.swfquot; >> p.bucket_name => quot;reading_eggs_devquot;
  • 11. Pricing Storage $0.15 per GB-Month of storage used Data Transfer $0.10 per GB - all data transfer in $0.18 per GB - first 10 TB / month data transfer out $0.16 per GB - next 40 TB / month data transfer out $0.13 per GB - data transfer out / month over 50 TB Requests $0.01 per 1,000 PUT or LIST requests $0.01 per 10,000 GET and all other requests* * No charge for delete requests
  • 12. Sample Costings Data Storage Costs 1GB/M $0.15 1 GB Storage = $0.15 Bandwidth Costs 5000 Users 200 MB / User / Month 0.2 GB * 5000 = 1000GB * $0.18 = $180 Request Costs Request = 200/User/Month = 5000 * 200 = 1M get requests 1000000/10000 = 100 * $0.01 = $1 Total Cost US$181.15
  • 13. Resources Amazon S3 : http://aws.amazon.com/s3 AWS::S3 gem : http://amazon.rubyforge.org/ s3fox : http://www.rjonna.com/ext/s3fox.php s3 calc : http://calculator.s3.amazonaws.com