Skip to content

Commit a8f1ad0

Browse files
committed
Minor tweaks to resolve a merge conflict
2 parents fe38489 + 536614e commit a8f1ad0

File tree

8 files changed

+1169
-312
lines changed

8 files changed

+1169
-312
lines changed

README

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"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.

aws

Lines changed: 1135 additions & 261 deletions
Large diffs are not rendered by default.

download.html

Lines changed: 0 additions & 45 deletions
This file was deleted.

howto.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h2 style="background-color: #082466; color: #fff">&nbsp;aws - HowTo - simple ac
166166
<p>
167167
</li>
168168
<li>
169-
<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>
170170
<p>
171171
If your files have funny characters in them, such as apostrophe (&apos;), then you should use Perl's system() function in a way that doesn't involve the shell. Here are examples:
172172
<blockquote><xmp>$ perl -e 'do {print "putting $_\n"; system (qw(aws put test681), $_)} for @ARGV' ascii/*.txt
@@ -372,7 +372,9 @@ <h2 style="background-color: #082466; color: #fff">&nbsp;aws - HowTo - simple ac
372372
<li>
373373
<b>What if I have more than one AWS account? How do I switch credentials?</b>
374374
<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
376378
<blockquote><code>AWS_ACCESS_KEY_ID=A3CJPJF87DHEJAAG2 AWS_SECRET_ACCESS_KEY=asDc5FD68d7JaIHEuhfLAziplY+ywNTkXq6/8UiO9 aws ls</code></blockquote>
377379
<p>
378380
</li>

index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ <h2 style="background-color: #082466; color: #fff">&nbsp;aws - simple access to
2727
<li>
2828
SDB support - zikes! it was easy to add
2929
<p>
30-
"aws" now supports Amazon SDB. See <a href=https://docs.google.com/Doc?id=ah9n72fdwz78_192g79h46ft>the documenation</a>.
30+
"aws" now supports Amazon SDB. See <a href=https://docs.google.com/Doc?id=ah9n72fdwz78_192g79h46ft>the documentation</a>.
3131
<p>
3232
</li>
3333
<li>
3434
ELB support
3535
<p>
36-
"aws" now supports Amazon ELB. See <a href=https://docs.google.com/View?docid=ah9n72fdwz78_100d99gqkfc>the documenation</a>.
36+
"aws" now supports Amazon ELB. See <a href=https://docs.google.com/View?docid=ah9n72fdwz78_100d99gqkfc>the documentation</a>.
3737
<p>
3838
</li>
3939
<li>
@@ -94,6 +94,7 @@ <h3>Download</h3>
9494
<p>
9595
<li>Put your AWS credentials in <tt>~/.awssecret</tt>: the Access Key
9696
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>
9798
</ol>
9899
<p>
99100
If you are logged in as root, aws will be installed in /usr/bin.
@@ -145,7 +146,7 @@ <h3>Windows Download and Configuration</h3>
145146
<li>Download ActivePerl from <a href=http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca>ActiveState</a>.</li>
146147
<li>Download the latest <a href=https://raw.github.com/timkay/aws/master/aws>aws</a> to C:\Windows or your current directory, and rename to aws.pl.</li>
147148
<li>Put your AWS credentials in C:\Documents and Settings\&lt;YOUR
148-
NAME&gt;\.awssecret (see the example file in the above Download section).</li>
149+
NAME&gt;\.awssecret (see the example file in the above Download section) or set the EC2_ACCESS_KEY and EC2_SECRET_KEY environment variables.</li>
149150
<li>Try <tt>aws.pl --insecure-aws ls</tt> -- you should get a list of
150151
your S3 buckets.</li>
151152
</ol>
@@ -177,7 +178,7 @@ <h3>Overview</h3>
177178
<p>
178179
<blockquote><tt>aws ACTION [PARAMETERS]</tt></blockquote>
179180
<p>
180-
For example, you can start an EC3 server instance:
181+
For example, you can start an EC2 server instance:
181182
<p>
182183
<blockquote>aws run</blockquote>
183184
<p>
@@ -213,6 +214,8 @@ <h3>~/.awssecret File Format</h3>
213214
the .awssecret file. For example,
214215

215216
<blockquote><xmp>AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=XXX aws ls</xmp></blockquote>
217+
or
218+
<blockquote><xmp>EC2_ACCESS_KEY=XXX EC2_SECRET_KEY=XXX aws ls</xmp></blockquote>
216219

217220
Use of environment variables is not recommended because command lines and environment variables are visible to other users of the same host.
218221
<p>

location.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
2+
<LocationConstraint>EU</LocationConstraint>
3+
</CreateBucketConfiguration >

owner.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<RequestPaymentConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
2+
<Payer>Requester</Payer>
3+
</RequestPaymentConfiguration>

requester.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<RequestPaymentConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
2+
<Payer>Requester</Payer>
3+
</RequestPaymentConfiguration>

0 commit comments

Comments
 (0)