Skip to content

Commit 27c930f

Browse files
author
Tom Clark
committed
Fixed some mistakes in controlling-ec2-from-the-console
1 parent 54e902f commit 27c930f

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

pages/controlling-ec2-from-the-console.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,18 @@ data-facets='{"Operating System": "OS X", "Package Management": "Homebrew", "She
2020
We assume you've [signed up for EC2](https://aws-portal.amazon.com/gp/aws/developer/registration). We also assume your machine has a public key setup (commonly `~/.ssh/id_rsa` and `~/id_rsa.pub`).
2121

2222
## Download Credential Files
23-
First, you need to download some credential files to your machine. [Download your X.509 certificates](https://portal.aws.amazon.com/gp/aws/securityCredentials) and then put them into your `~/.ec2` directory:
23+
First, you need to download some credential files to your machine. Go to the [AWS Security Credentials](https://portal.aws.amazon.com/gp/aws/securityCredentials) page, click "X.509 Certificates", create a new certificate if you need to, download the files when prompted, and then put them into your `~/.ec2` directory:
2424

2525
{% highlight sh %}
2626
mkdir ~/.ec2
27-
cp ~/Downloads/[cert,pk]-*.pem ~/.ec2
27+
cp ~/Downloads/{cert,pk}-*.pem ~/.ec2
2828
{% endhighlight %}
2929

3030
## Install the EC2 Command Line Tools
3131
Now let's install the two packages we need:
3232

3333
{% highlight sh %}
34-
brew install ec2-ami-tools
35-
brew install ec2-api-tools
34+
brew install ec2-{api,ami}-tools
3635
{% endhighlight %}
3736

3837
Copy the following to your `~/.bash_profile`:
@@ -48,7 +47,11 @@ export AWS_SECRET_ACCESS_KEY"=..."
4847

4948
Where `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` are available from the "Access Keys" tab on the [https://portal.aws.amazon.com/gp/aws/securityCredentials](Amazon Security Credentials page).
5049

51-
And we
50+
Don't forget to reload your `.bash_profile`:
51+
52+
{% highlight sh %}
53+
source ~/.bash_profile
54+
{% endhighlight %}
5255

5356
## Uploading your Access Keys
5457
Some people use the public/private keys that Amazon gives them, but I find it easier to use the same public key on my laptop that I already use for things like Github and servers at work. To upload, you can use [this helpful script from Eric Hammond](http://alestic.com/2010/10/ec2-ssh-keys) (slightly modified):
@@ -64,6 +67,12 @@ for region in $regions; do
6467
done
6568
{% endhighlight %}
6669

70+
If you get an error like this, you have to wait a little while until Amazon processes your account:
71+
72+
{% highlight %}
73+
Client.OptInRequired: You are not subscribed to this service. Please go to http://aws.amazon.com to subscribe.
74+
{% endhighlight %}
75+
6776
## Test it All Works
6877
Once we've done all that, we can test it by doing:
6978

pages/table-of-contents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ignore: true
99
<!-- THIS FILE IS GENERATED; PLEASE DO NOT EDIT THIS FILE BY HAND -->
1010

1111
<!--- BEGIN TOC -->
12-
* [Controlling EC2 from the Console](/pages/controlling-ec2-from-the-console.html?1340490172)
12+
* [Controlling EC2 from the Console](/pages/controlling-ec2-from-the-console.html?1340492287)
1313
* [Creating a Production Storm Cluster](/pages/creating-a-production-storm-cluster.html?1340487894)
1414
* [Retrieving Storm Cluster Statistics from Nimbus](/pages/retrieving-storm-data-from-nimbus.html?1340398351)
1515
* [Installing MySQL](/pages/installing-mysql.html?1339980010)

0 commit comments

Comments
 (0)