homebrew-core/Formula/aws-iam-tools.rb
Micah Wedemeyer d70473b65a AWS IAM tools: Fix comment
Fix a comment that explains how to set some environment variables that the
tool needs in order to start up. The path was incorrect and would cause
the tool to error out with a ClassNotFoundException.

Closes Homebrew/homebrew#24692.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-26 21:26:59 -08:00

41 lines
1.4 KiB
Ruby

require 'formula'
class AwsIamTools < AmazonWebServicesFormula
homepage 'http://aws.amazon.com/developertools/4143'
url 'http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip'
sha1 'a2bd3048327d1ee34e20abbc8e2cc6c68ebdee5f'
version "1.5.0"
def install
standard_install
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="$(/usr/libexec/java_home)"
export AWS_IAM_HOME="#{opt_prefix}/libexec"
export AWS_CREDENTIAL_FILE=$HOME/.aws-credentials-master
EOS
end
end