You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"aws" is a command line program that accesses Amazon Web Services:
2
+
3
+
EC2
4
+
S3
5
+
SQS
6
+
SDB
7
+
ELB
8
+
IAM
9
+
10
+
To run "aws", all you need is a single file! Download http://github.com/timkay/aws/raw/master/aws, make it executable, create ~/.awssecrets or set EC2_ACCESS_KEY and EC2_SECRET_KEY, and you are done.
11
+
12
+
For more documentation, see http://timkay.com/aws/
13
+
14
+
If you can help improve the "aws" documentation, please let me know.
<b>How do I do such scripting when my file names have funny chacracters in them?</b>
169
+
<b>How do I do such scripting when my file names have funny characters in them?</b>
170
170
<p>
171
171
If your files have funny characters in them, such as apostrophe ('), then you should use Perl's system() function in a way that doesn't involve the shell. Here are examples:
172
172
<blockquote><xmp>$ perl -e 'do {print "putting $_\n"; system (qw(aws put test681), $_)} for @ARGV' ascii/*.txt
<b>What if I have more than one AWS account? How do I switch credentials?</b>
374
374
<p>
375
-
"aws" looks at enviroment variables <code>AWS_ACCESS_KEY_ID</code>, <code>AWS_SECRET_ACCESS_KEY</code>, and <code>AWS_SIGN_URL</code> before it decides to read <code>~/.awssecret</code>. If any of those variables is defined, then it will use those credentials and ignore <code>~/.awssecret</code>. For example
375
+
"aws" looks at enviroment variables <code>AWS_ACCESS_KEY_ID</code>, <code>AWS_SECRET_ACCESS_KEY</code>, >code>AWS_SIGN_URL</code>,
376
+
<code>EC2_ACCESS_KEY</code>, and <code>EC2_SECRET_KEY</code>
377
+
before it decides to read <code>~/.awssecret</code>. If any of those variables is defined, then it will use those credentials and ignore <code>~/.awssecret</code>. For example
"aws" now supports Amazon SDB. See <ahref=https://docs.google.com/Doc?id=ah9n72fdwz78_192g79h46ft>the documenation</a>.
30
+
"aws" now supports Amazon SDB. See <ahref=https://docs.google.com/Doc?id=ah9n72fdwz78_192g79h46ft>the documentation</a>.
31
31
<p>
32
32
</li>
33
33
<li>
34
34
ELB support
35
35
<p>
36
-
"aws" now supports Amazon ELB. See <ahref=https://docs.google.com/View?docid=ah9n72fdwz78_100d99gqkfc>the documenation</a>.
36
+
"aws" now supports Amazon ELB. See <ahref=https://docs.google.com/View?docid=ah9n72fdwz78_100d99gqkfc>the documentation</a>.
37
37
<p>
38
38
</li>
39
39
<li>
@@ -94,6 +94,7 @@ <h3>Download</h3>
94
94
<p>
95
95
<li>Put your AWS credentials in <tt>~/.awssecret</tt>: the Access Key
96
96
ID on the first line and the Secret Access Key on the second line. Example: <blockquote><tt>1B5JYHPQCXW13GWKHAG2<br>2GAHKWG3+1wxcqyhpj5b1Ggqc0TIxj21DKkidjfz</tt></blockquote></li>
97
+
<li>Alternately, set the EC2_ACCESS_KEY and EC2_SECRET_KEY environment variables.</li>
97
98
</ol>
98
99
<p>
99
100
If you are logged in as root, aws will be installed in /usr/bin.
@@ -145,7 +146,7 @@ <h3>Windows Download and Configuration</h3>
145
146
<li>Download ActivePerl from <ahref=http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca>ActiveState</a>.</li>
146
147
<li>Download the latest <ahref=https://raw.github.com/timkay/aws/master/aws>aws</a> to C:\Windows or your current directory, and rename to aws.pl.</li>
147
148
<li>Put your AWS credentials in C:\Documents and Settings\<YOUR
148
-
NAME>\.awssecret (see the example file in the above Download section).</li>
149
+
NAME>\.awssecret (see the example file in the above Download section) or set the EC2_ACCESS_KEY and EC2_SECRET_KEY environment variables.</li>
149
150
<li>Try <tt>aws.pl --insecure-aws ls</tt> -- you should get a list of
0 commit comments