Skip to content
russelldb edited this page Sep 13, 2010 · 2 revisions

I cribbed some code from the erlawys code on code.google.com. I wrote the signature version 2 stuff by reading the Amazon Java client code.

To use:

Install erlang-format
Install erlsom
Clone aws_ec2
make
erl
inets:start().
crypto:start().
AccessKey = “YourAccessKeyFromAWS”.
SecretKey = “YourSecretKeyFromAWS”.
Response = aws_ec2:run_instance(Ami, UserData, KeyName, AccessKey, SecretKey).

Look at the erlsom docs and the include/ec2.hrl to get data out of the returned record

Clone this wiki locally