aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTung Nguyen2014-03-10 18:45:24 -0700
committerMike McQuaid2014-03-11 08:03:04 +0000
commite85607b15b240f3ba629ee53ca4aed788c78c0c6 (patch)
tree7564a69e6201db576bceee4dea3749e0c51d7028
parent10a4ddd2e3d59e93536a2e96f03bbab0ee1c1dd1 (diff)
downloadhomebrew-e85607b15b240f3ba629ee53ca4aed788c78c0c6.tar.bz2
formula_specialties: fix AWS standard_instructions
Closes #27398. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/formula_specialties.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/Library/Homebrew/formula_specialties.rb b/Library/Homebrew/formula_specialties.rb
index cdfd5cd66..807d5b643 100644
--- a/Library/Homebrew/formula_specialties.rb
+++ b/Library/Homebrew/formula_specialties.rb
@@ -30,22 +30,15 @@ class AmazonWebServicesFormula < Formula
# Use this method to generate standard caveats.
def standard_instructions home_name, home_value=libexec
<<-EOS.undent
- Before you can use these tools you must export some variables to your $SHELL
- and download your X.509 certificate and private key from Amazon Web Services.
-
- Your certificate and private key are available at:
- http://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key
-
- Download two ".pem" files, one starting with `pk-`, and one starting with `cert-`.
- You need to put both into a folder in your home directory, `~/.ec2`.
+ Before you can use these tools you must export some variables to your $SHELL.
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 EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
- export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
+ export AWS_ACCESS_KEY="<Your AWS Access ID>"
+ export AWS_SECRET_KEY="<Your AWS Secret Key>"
export #{home_name}="#{home_value}"
EOS
end