18
Automate Amazon S3 Storage with Alexandria Jeffrey Kemp AUSOUG Monthly, September 2012

Automate Amazon S3 Storage with Alexandria

Embed Size (px)

DESCRIPTION

Presented at the AUSOUG Perth Monthly Meeting, September 2012

Citation preview

Page 1: Automate Amazon S3 Storage with Alexandria

Automate Amazon S3

Storage with Alexandria Jeffrey Kemp

AUSOUG Monthly, September 2012

Page 2: Automate Amazon S3 Storage with Alexandria

About Me

• Oracle Developer since 2000

• SQL, PL/SQL, Apex

http://jeffkemponoracle.com

Page 3: Automate Amazon S3 Storage with Alexandria

1. Amazon Web Services

2. Amazon S3

3. Alexandria

4. Demo

Page 4: Automate Amazon S3 Storage with Alexandria

• Cloud services

• Low cost

• OS agnostic

http://aws.amazon.com

Page 5: Automate Amazon S3 Storage with Alexandria

AW

S P

roducts

Page 6: Automate Amazon S3 Storage with Alexandria

S3 Features

• Storage buckets

• Files and "folders"

• Permissions

• Web interface

• SOAP and REST-style APIs

Page 7: Automate Amazon S3 Storage with Alexandria

Advanced Features

• Website

• Versioning

• Lifecycle

• Access logging

• Storage buckets

• Files and "folders"

• Permissions

• Web interface

• SOAP and REST-style APIs

Page 8: Automate Amazon S3 Storage with Alexandria

REST-style S3 API

Buckets:

• get (list objects)

• put / delete

• get / put ACL

Objects:

• get

• put / delete

• get / put ACL

• Multipart Upload

• BitTorrent

http://docs.amazonwebservices.com/AmazonS3/latest/API/Welcome.html

Page 9: Automate Amazon S3 Storage with Alexandria

Simple Example in Apex

• Jason Straub, Oracle

• Proof of Concept

• Simple

• Minor issues

http://jastraub.blogspot.com.au

http://www.oracle.com/technetwork/developer-tools/apex/ application-express/integration-086636.html

Page 10: Automate Amazon S3 Storage with Alexandria

• Morten Braten "Chief Scribe of the Library"

• Open source

http://code.google.com/p/plsql-utils/

http://ora-00001.blogspot.com

Page 11: Automate Amazon S3 Storage with Alexandria

Alexandria Packages

• PDF, RTF, Excel, Office 2007

• Zip and unzip

• RSS feeds

• JSON

• FTP, SMTP, POP3, IMAP

• MS Exchange

• Google Maps, Translate, Calendar

• Twitter

• SOAP or REST

• … plus some others • … and more to come

Page 12: Automate Amazon S3 Storage with Alexandria

“when you have a golden hammer, everything looks like a nail”

… but it’s fun, all the same

Page 13: Automate Amazon S3 Storage with Alexandria

AMAZON_AWS_S3_PKG

• Uses UTL_HTTP

• Requires AMAZON_AWS_AUTH_PKG • which requires execute on DBMS_CRYPTO

Page 14: Automate Amazon S3 Storage with Alexandria

AMAZON_AWS_S3_PKG

• get_bucket_list

• get_bucket_tab

• new_bucket

• get_object_list

• get_object_tab

• get_download_url

• new_object

• delete_object

• get_object

Page 15: Automate Amazon S3 Storage with Alexandria

1. Amazon Web Services

2. Amazon S3

3. Alexandria

4. Demo alex-demo.sql

Page 16: Automate Amazon S3 Storage with Alexandria

Extending the package

• Delete bucket

• Extended object list

• Get or Modify Website for a bucket

• Get or Modify ACL for a bucket or object

• Get BitTorrent URL

• Multipart Upload

Page 17: Automate Amazon S3 Storage with Alexandria

Links Amazon Web

Services

bit.ly/KXDk aws.amazon.com

S3 API Docs bit.ly/Ns6Dac docs.amazonwebservices.com/AmazonS3/latest/API/Welcome.html

Jason Straub bit.ly/OnSWVD jastraub.blogspot.com.au

White Paper,

Apex+S3 POC

bit.ly/OnT1bL www.oracle.com/technetwork/developer-tools/apex/application-express/integration-086636.html

Alexandria bit.ly/dMWOli code.google.com/p/plsql-utils/

Morten Braten bit.ly/USyXTQ ora-00001.blogspot.com

Page 18: Automate Amazon S3 Storage with Alexandria

Thank you http://jeffkemponoracle.com