using SimpleDB CLI

case : amazon linux ami

http://aws.amazon.com/code/1136
http://code.google.com/p/amazon-simpledb-cli/

sudo yum install autoconf automake libtool make
sudo yum install perl-CPAN perl-YAML
sudo yum install openssl-devel
sudo yum install perl-Digest-SHA perl-XML-Simple perl-Digest-SHA1 perl-Digest-HMAC perl-Time-HiRes
sudo perl -MCPAN -e 'install Bundle::LWP'

wget http://aws-libraries.s3.amazonaws.com/perl/AmazonSimpleDB/2009-04-15/AmazonSimpleDB-2009-04-15-perl-library.zip
unzip AmazonSimpleDB-2009-04-15-perl-library.zip
sitelib=$(perl -MConfig -le 'print $Config{sitelib}')
sudo scp -r AmazonSimpleDB-*-perl-library/src/Amazon $sitelib

sudo curl -Lo /usr/local/bin/simpledb http://simpledb-cli.notlong.com
sudo chmod +x /usr/local/bin/simpledb

몇가지 테스트를 해보자

simpledb create-domain snapshot
simpledb list-domains
simpledb put snapshot test test='abc'
simpledb select "SELECT * FROM snapshot"
simpledb delete snapshot test
simpledb select "SELECT * FROM snapshot"

글쓴이

yupmin

Inside Deep Throat.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.