Skip to content

Commit 2882e8c

Browse files
authored
Merge pull request docker-archive#468 from docker/aws-ec2-classic-docs
Added docs for AWS EC2-Classic vs EC2-VPC
2 parents 4df1d58 + 18b35dd commit 2882e8c

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

docs/content/aws/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Docker for AWS is currently in private beta. [Sign up](https://beta.docker.com)
2929
- ELB
3030
- CloudWatch Log Group
3131
- SSH key in AWS in the region where you want to deploy (required to access the completed Docker install)
32+
- AWS account that support EC2-VPC [For more info about EC2-Classic](../faq/aws.md)
3233

3334
For more information about adding an SSH key pair to your account, please refer to the [Amazon EC2 Key Pairs docs](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
3435

docs/content/faq/aws.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,37 @@ Use the beta sign up form, and put the account number that you need to use most
2525
## Can I use my own AMI?
2626
No, at this time we only support our AMI.
2727

28+
## How to use Docker for AWS with an AWS account with an EC2-Classic region.
29+
30+
If you have an AWS account that was created before **December 4th, 2013** you have what is known as an **EC2-Classic** account on regions where you have previously deployed resources. **EC2-Classic** accounts don't have default VPC's or the associated subnets, etc. This causes a problem when using our CloudFormation template because we are using the [Fn:GetAZs](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getavailabilityzones.html) function they provide to determine which availability zones you have access too. When used in a region where you have **EC2-Classic**, this function will return all availability zones for a region, even ones you don't have access too. When you have an **EC2-VPC** account, it will return only the availability zones you have access to.
31+
32+
This will cause an error like the following:
33+
34+
> "Value (us-east-1a) for parameter availabilityZone is invalid. Subnets can currently only be created in the following availability zones: us-east-1d, us-east-1c, us-east-1b, us-east-1e."
35+
36+
If you have an **EC2-Classic** account, and you don't have access to the `a` and `b` availability zones for that region.
37+
38+
There isn't anything we can do right now to fix this issue, we have contacted Amazon, and we are hoping they will be able to provide us with a way to determine if an account is either **EC2-Classic** or **EC2-VPC**, so we can act accordingly.
39+
40+
#### How to tell if you have this issue.
41+
42+
This AWS documentation page will describe how you can tell if you have EC2-Classic, EC2-VPC or both. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
43+
44+
#### How to fix:
45+
There are a few work arounds that you can try to get Docker for AWS up and running for you.
46+
47+
1. Use a region that doesn't have **EC2-Classic**. The most common region with this issue is `us-east-1`. So try another region, `us-west-1`, `us-west-2`, or the new `us-east-2`. These regions will more then likely be setup with **EC2-VPC** and you will not longer have this issue.
48+
2. Create an new AWS account, all new accounts will be setup using **EC2-VPC** and will not have this problem.
49+
3. You can try and contact AWS support to convert your **EC2-Classic** account to a **EC2-VPC** account. For more information checkout the following answer for **"Q. I really want a default VPC for my existing EC2 account. Is that possible?"** on https://aws.amazon.com/vpc/faqs/#Default_VPCs
50+
51+
#### Helpful links:
52+
- http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html
53+
- http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
54+
- http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html
55+
- https://aws.amazon.com/vpc/faqs/#Default_VPCs
56+
- https://aws.amazon.com/blogs/aws/amazon-ec2-update-virtual-private-clouds-for-everyone/
57+
58+
2859
## Can I use my existing VPC?
2960
Not at this time, but it is on our roadmap for future releases.
3061

@@ -39,5 +70,5 @@ All of Amazons regions have at least 2 AZ's, and some have more. To make sure we
3970

4071

4172
## What do I do if I get "KeyPair error" on AWS?
42-
As part of the prerequisites, you need to have an SSH key uploaded to the AWS region you are trying to deploy to.
43-
For more information about adding an SSH key pair to your account, please refer to the [Amazon EC2 Key Pairs docs](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
73+
As part of the prerequisites, you need to have an SSH key uploaded to the AWS region you are trying to deploy to.
74+
For more information about adding an SSH key pair to your account, please refer to the [Amazon EC2 Key Pairs docs](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)

0 commit comments

Comments
 (0)