aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRenaud (Nel) Morvan2010-09-12 19:44:58 +0200
committerAdam Vandenberg2010-10-21 10:16:56 -0700
commit9d7232f73ebecf74932f0db2c792475a8da29740 (patch)
treef4725a73e2812b4719d87b9f697c3fa4cf632ece /Library/Formula
parent9019d9e720c16cf60c3b3acab1d3b4b10d8e3dbc (diff)
downloadhomebrew-9d7232f73ebecf74932f0db2c792475a8da29740.tar.bz2
added AWS Identity and Access Management tools
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aws-iam-tools.rb46
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/aws-iam-tools.rb b/Library/Formula/aws-iam-tools.rb
new file mode 100644
index 000000000..1f2fa4f88
--- /dev/null
+++ b/Library/Formula/aws-iam-tools.rb
@@ -0,0 +1,46 @@
+require 'formula'
+
+class AwsIamTools < Formula
+ # No stable build yet
+ head 'http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip'
+ homepage 'http://developer.amazonwebservices.com/connect/entry.jspa?externalID=4143&categoryID=322'
+ md5 'ee3d6d5ec0be8a68044973289211f14c'
+
+ def install
+ # Remove Windows files
+ rm Dir['*.cmd']
+
+ bin.install Dir['iam-*']
+ # Follow same pratices as AmazonWebServicesFormula
+ (prefix+'jars').install 'lib'
+ end
+
+ def caveats
+ <<-EOS.undent
+ Before you can use these tools you must export some variables to your $SHELL
+ and create a file containing your aws credentials.
+
+ You can access your AWS access ID and AWS secret key:
+ http://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key
+
+ You must create the file $HOME/.aws-credentials-master, here is a template:
+
+ # Enter the AWS Keys without the < or >
+ # You can either use the AWS Accounts access keys and they can be found at
+ # http://aws.amazon.com under Account->Security Credentials
+ # or you can use the access keys of a user created with IAM
+ AWSAccessKeyId=<Write your AWS access ID>
+ AWSSecretKey=<Write your AWS secret key>
+
+ To preserve your credentials don't forget to:
+ chmod 600 $HOME/.aws-credentials-master
+
+ To export the needed variables, add them to your dotfiles.
+ * On Bash, add them to `~/.bash_profile`.
+ * On Zsh, add them to `~/.zprofile` instead.
+ export JAVA_HOME="/Library/Java/Home/"
+ export AWS_IAM_HOME="#{prefix}/jars"
+ export AWS_CREDENTIAL_FILE=$HOME/.aws-credentials-master
+ EOS
+ end
+end