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
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`).
21
21
22
22
## 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:
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).
50
49
51
-
And we
50
+
Don't forget to reload your `.bash_profile`:
51
+
52
+
{% highlight sh %}
53
+
source ~/.bash_profile
54
+
{% endhighlight %}
52
55
53
56
## Uploading your Access Keys
54
57
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
64
67
done
65
68
{% endhighlight %}
66
69
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
+
67
76
## Test it All Works
68
77
Once we've done all that, we can test it by doing:
0 commit comments