Sharing Static Data with Amazon S3 PAUL KOUFALIS PRESIDENT PROGRESSWIZ CONSULTING

Similar documents
Chapter 9 PUBLIC CLOUD LABORATORY. Sucha Smanchat, PhD. Faculty of Information Technology. King Mongkut s University of Technology North Bangkok

FREE computing using Amazon EC2

CloudFTP: A free Storage Cloud

Simple Storage Service (S3)

Amazon Cloud Storage Options

ONLINE BACKUP AND RECOVERY USING AMAZON S3

How to Provide Cloud Storage for AD Users

Backup and Recovery of SAP Systems on Windows / SQL Server

Lesson 7 - Website Administration

BioHPC Cloud Storage. portal.biohpc.swmed.edu Updated for

Introduction Upload Upload Document Quick Upload Salesforce 1 Upload Salesforce File Upload Download...

Introduction to Cloud Computing on Amazon Web Services (AWS) with focus on EC2 and S3. Horst Lueck

Amazon WorkDocs. Administration Guide Version 1.0

Amazon S3 Essentials

owncloud Configuration and Usage Guide

Secure Communications with OpenEdge and SSL PAUL KOUFALIS PRESIDENT PROGRESSWIZ CONSULTING

Technical Support Set-up Procedure

The Einstein Depot server

Welcome to Collage (Draft v0.1)

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

Cloud Computing with Amazon Web Services and the DevOps Methodology.

Web Hosting Training Guide. Web Hosting Training Guide. Author: Glow Team Page 1 of 22 Ref: GC349_v1.1

Tutorial: Using HortonWorks Sandbox 2.3 on Amazon Web Services

References. Introduction to Database Systems CSE 444. Motivation. Basic Features. Outline: Database in the Cloud. Outline

Introduction to Database Systems CSE 444

Cloud computing is a marketing term that means different things to different people. In this presentation, we look at the pros and cons of using

Amazon Elastic Compute Cloud Getting Started Guide. My experience

Xerox DocuShare Security Features. Security White Paper

FAQS. You can schedule a WebEx session ahead or start it instantly in your choice of ways:

Installation, Configuration, and Usage

AWS Import/Export. Developer Guide API Version

SecureVault Online Backup Service FAQ

ST 810, Advanced computing

SCOPE OF SERVICE Hosted Cloud Storage Service: Scope of Service

A programming model in Cloud: MapReduce

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

Page 18. Using Software To Make More Money With Surveys. Visit us on the web at:

Best Practices for Sharing Imagery using Amazon Web Services. Peter Becker

commodity grid computing with Amazon s S3 and EC2

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Leveraging Cloud Storage Through Mobile Applications Using Mezeo Cloud Storage Platform REST API. John Eastman Mezeo

NSave Table of Contents

RecoveryVault Express Client User Manual

Getting Started with AWS. Hosting a Static Website

Restoring a Windows 8.1 system from complete HDD failure - drivesnapshot

Avalanche Remote Control User Guide. Version 4.1.3

Assignment # 1 (Cloud Computing Security)

BOA BARRACUDA ON ÆGIR ~ MY FIRST YEAR ~ Mladen

Novell Filr 1.0.x Mobile App Quick Start

Online Backup Client User Manual

Getting Started with AWS. Static Website Hosting

Ensim WEBppliance 3.0 for Windows (ServerXchange) Release Notes

Description of Application

Prepared for: How to Become Cloud Backup Provider

1. Product Information

AWS Import/Export. Developer Guide API Version

How to setup NovaBACKUP DataCenter to backup data to Amazon S3 using Amazon s AWS Storage Gateway

New World Construction FTP service User Guide

SUNY New Paltz Terminal Services Guidebook

Running and Enhancing your own Galaxy. Daniel Blankenberg The Galaxy Team

Online Backup Client User Manual Linux

APACHE WEB SERVER. Andri Mirzal, PhD N

DIY Device Cloud Documentation

SysAidTM Freeware Installation Guide

Amazon Web Services EC2 & S3

Web Conferencing Version 8.3 Troubleshooting Guide

How do I Install and Configure MS Remote Desktop for the Haas Terminal Server on my Mac?

SOP Common service PC File Server

Practical Challenges in Scaling Storage Networks

PROJECT MANAGEMENT SYSTEM

Heroix Longitude Quick Start Guide V7.1

Flight Workflow User's Guide. Release

Best Practices. EMEA Pug Challenge Nectar Daloglou, White Star Software

XXIntroduction. XXRequirements. XXInstallation. XXInterface. XXUsage Instructions

Providing an Enterprise File Share and Sync Solution for

Every Silver Lining Has a Vault in the Cloud

Microsoft Windows Apple Mac OS X

Security Products Development. Leon Juranic

IceWarp to IceWarp Server Migration

VX 9000E WiNG Express Manager INSTALLATION GUIDE

Lab 3 Assignment (Web Security)

Scalable Application. Mikalai Alimenkou

How To Choose Between A Relational Database Service From Aws.Com

Alfresco Enterprise on AWS: Reference Architecture

Introduction to analyzing big data using Amazon Web Services

Getting Started with Amazon EC2 Management in Eclipse

Hadoop Installation MapReduce Examples Jake Karnes

Chapter 1 - Web Server Management and Cluster Topology

JAMF Software Server Installation and Configuration Guide for OS X. Version 9.2

DroboAccess User Manual

How do I Install and Configure MS Remote Desktop for the Haas Terminal Server on my Mac?

Transcription:

Sharing Static Data with Amazon S3 PAUL KOUFALIS PRESIDENT PROGRESSWIZ CONSULTING

Agenda What is this Amazon Web Services? How Do I Get Started? Can It Do Magic Tricks? My Boss is Cheap What Does it Cost? I m Bored Now How Do I Use It? Are We Done Yet? I Have a Question 2 Sharing Static Data with Amazon S3

What Is Amazon AWS? Amazon currently provides 29 infrastructure services over the web The most popular are EC2 and S3 3 Sharing Static Data with Amazon S3

Amazon EC2 EC2 is that whole deployment in the cloud thing You run Windows and Linux Servers on Amazon s infrastructure All over the world Download Getting Started in the Cloud from http://progresswiz.com/downloads 4 Sharing Static Data with Amazon S3

What is Amazon S3? Simple Storage Service (Somewhere) 5 Sharing Static Data with Amazon S3

What is Amazon S3? It s just file system space with a few bells and whistles Files can be accessed using a standard web URL: http://pugchallenge.s3.amazonaws.com/ talisker.jpeg 6 Sharing Static Data with Amazon S3

What is Amazon S3? You can share files with whomever you want Public Private Somewhere in between 7 Sharing Static Data with Amazon S3

How Do I Get Started First you need to open an account http://aws.amazon.com Have your credit card ready For the first year, some of the stuff is free See http://aws.amazon.com/free/ 8 Sharing Static Data with Amazon S3

Now What? How about a little security? Users and groups? 9 Sharing Static Data with Amazon S3

Users and Groups 10 Sharing Static Data with Amazon S3

Group Security 11 Sharing Static Data with Amazon S3

Group Security The security policy is for all AWS services Ex.: The RW group can do everything EXCEPT manage users: {"Statement": } [{ }] "Effect": "Allow", "NotAction": "iam:*", "Resource": "*" IAM = Identity and Access Management 12 Sharing Static Data with Amazon S3

Buckets S3 data is stored in buckets http://s3.amazonaws.com/bucket/... OR http://bucket.s3.amazonaws.com For the 2 nd format to work must follow DNScompliant naming rules All lowercase 13 Sharing Static Data with Amazon S3

Buckets 14 Sharing Static Data with Amazon S3

Quick Recap Open an Amazon account Create a couple of users and groups Create your buckets Install CloudBerry Explorer for S3 Upload your files Share them Total Effort: 30 minutes 15 Sharing Static Data with Amazon S3

Very Nice. What Else? S3 provides all kinds of cool features: You can pay or have the downloader pay Peer-to-peer access (BitTorrent) File versioning Static Web Sites Automatic life cycle management 16 Sharing Static Data with Amazon S3

That Was Cool! Keep Talking Pre-signed URLs Try http://pugchallenge.s3.amazonaws.com/talisker.jpeg FAIL: Access Denied I can generate a URL with an embedded access key I can expire that key The URL is only valid for a limited time 17 Sharing Static Data with Amazon S3

Nothing in Life is Free All pricing is per month Storage: $0.03/Gb for first TB $0.01 for Glacier (infrequent access: backups) Subsequent TB are cheaper Requests (PUT, GET ): $0.005 per 1000 Data Transfer In: Free Data Transfer Out: 1 Gb Free $0.12/Gb for first TB 18 Sharing Static Data with Amazon S3

Example Pricing 100 Gb of stuff 50 Gb of downloads 250K requests $3.00/month $6.00/month $1.25/month TOTAL: $10.25/month 19 Sharing Static Data with Amazon S3

Integrating S3 Unfortunately there is no AWS SDK for OpenEdge Maybe one day Existing SDKs: PHP,.NET, Java, JavaScript, Python, Ruby Luckily someone did the heavy lifting for us 20 Sharing Static Data with Amazon S3

s3cmd http://s3tools.org/s3cmd S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol, such as Google Cloud Storage. 21 Sharing Static Data with Amazon S3

s3cmd Written in Python Python available for most platforms Windows, Mac, Linux Also HPUX, Solaris, AIX and others Supports most (all?) of the SDK functions s3cmd help returns 256 lines! 22 Sharing Static Data with Amazon S3

Installing s3cmd Install Python https://www.python.org/downloads/ Install s3cmd http://s3tools.org/download On Windows, create s3cmd.bat @echo off PATH=C:\Apps\Python27;%PATH% python c:\apps\s3cmd\s3cmd %* 2>NUL 23 Sharing Static Data with Amazon S3

Configure s3cmd If you don t want to always pass usernames and passwords on cmd line s3cmd --configure Creates s3cmd.ini in $HOME /home/paul/.s3cfg C:\Users\Paul\Application Data\s3cmd.ini 24 Sharing Static Data with Amazon S3

Using s3cmd I m warning you: this is easy Really Wait let me show you how to integrate with the OpenEdge ABL OS-COMMAND SILENT s3cmd 25 Sharing Static Data with Amazon S3

Using s3cmd Make a bucket $ s3cmd mb s3://pugch_1 Bucket 's3://pugch_1/' created CAREFUL: Bucket names are shared by everyone I.e. bucket.s3.amazonaws.com Don t be surprised if bucket already exists 26 Sharing Static Data with Amazon S3

Using s3cmd List your buckets $ s3cmd ls 2014-06-05 20:41 s3://pugchallenge 2014-01-27 17:12 s3://s3_pk_2 2014-02-10 16:10 s3://s3pwiz 2014-06-06 19:52 s3://pugch_1 27 Sharing Static Data with Amazon S3

Using s3cmd Upload a file to a bucket $ s3cmd put toto.txt s3://pugch_1 toto.txt -> s3://pugch_1/toto.txt [1 of 1] 29 of 29 100% in 0s 269.81 B/s done List it: $ s3cmd ls s3://pugch_1 2014-06-06 19:54 29 s3://pugch_1/toto.txt Download: $ s3cmd get s3://pugch_1/toto.txt toto2 s3://pugch_1/toto.txt -> toto2 [1 of 1] 29 of 29 100% in 0s 570.09 B/s done 28 Sharing Static Data with Amazon S3

What about from a Web Browser? http://pugch_1.s3.amazonaws.com/toto.txt <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>4656EB4745639875</RequestId> <HostId> SHIOL/sCMuQ5k0UYBBxd4aG3EwZrpP1tktKlGI2UXzE </HostId> </Error> 29 Sharing Static Data with Amazon S3

Pre-Signed URL s3cmd signurl <url> <expiry_epoch> Epoch time = seconds since 1970/01/01 2014/06/11 18:00:00 EDT = 1402524000 $ s3cmd signurl s3://pugch_1/toto.txt 1402524000 http://pugch_1.s3.amazonaws.com/toto.txt?awsacces skeyid=akiaijeh6h5ubwebzwka&expires=1402524000&si gnature=cv%2bpeo4e9w%2ff0qzi5izzh1sf6su%3d 30 Sharing Static Data with Amazon S3

Pre-Signed URL What happens after expiry? <Error> <Code>AccessDenied</Code> <Message>Request has expired</message> <RequestId>AE15D0420933B946</RequestId> <Expires>2014-06-06T20:21:48Z</Expires> <HostId> IHGdBBU1r3v/HhYe6ozirCbbeTCevpzgjKDpjDGn4mqyW </HostId> <ServerTime>2014-06-06T20:21:53Z</ServerTime> </Error> 31 Sharing Static Data with Amazon S3

File Info $ s3cmd info s3://pugch_1/toto.txt s3://pugch_1/toto.txt (object): File size: 109 Last mod: Fri, 06 Jun 2014 20:20:15 GMT MIME type: text/plain MD5 sum: cc11bc75234e59df7f33cfbadd1316ad SSE: NONE policy: none ACL: pkoufalis: FULL_CONTROL 32 Sharing Static Data with Amazon S3

Disk Usage $ s3cmd du 138 s3://pugch_1/ 31399 s3://pugchallenge/ 4635280 s3://s3_pk_2/ 525373 s3://s3pwiz/ -------- 5192190 Total 33 Sharing Static Data with Amazon S3

What Else? Synchronize a local dir and bucket dir Enable access logging Upload large files in multiple parts And of course the usual stuff Move Delete Copy 34 Sharing Static Data with Amazon S3

Are the Gears Turning? I hope this presentation has you thinking about possibilities The advantages are HUGE The ROI is inarguable 35 Sharing Static Data with Amazon S3

Questions? 36 Sharing Static Data with Amazon S3

Progresswiz Consulting Based in Montréal, Québec, Canada Providing technical consulting in Progress, UNIX, Windows, MFG/PRO and more Specialized in performance tuning, system availability and business continuity planning and security of Progress-based systems 37 Sharing Static Data with Amazon S3