Skip to content

Commit a085282

Browse files
committed
Update AWS doc
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
1 parent 53c5b1f commit a085282

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

docs/drivers/aws.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,30 +61,14 @@ You can use environment variables:
6161
- `--amazonec2-root-size`: The root disk size of the instance (in GB).
6262
- `--amazonec2-volume-type`: The Amazon EBS volume type to be attached to the instance.
6363
- `--amazonec2-iam-instance-profile`: The AWS IAM role name to be used as the instance profile.
64-
- `--amazonec2-ssh-user`: SSH Login user name.
64+
- `--amazonec2-ssh-user`: The SSH Login username, which must match the default SSH user set in the ami used.
6565
- `--amazonec2-request-spot-instance`: Use spot instances.
6666
- `--amazonec2-spot-price`: Spot instance bid price (in dollars). Require the `--amazonec2-request-spot-instance` flag.
6767
- `--amazonec2-use-private-address`: Use the private IP address for docker-machine, but still create a public IP address.
6868
- `--amazonec2-private-address-only`: Use the private IP address only.
6969
- `--amazonec2-monitoring`: Enable CloudWatch Monitoring.
7070
- `--amazonec2-use-ebs-optimized-instance`: Create an EBS Optimized Instance, instance type must support it.
7171

72-
By default, the Amazon EC2 driver will use a daily image of Ubuntu 15.10 LTS.
73-
74-
| Region | AMI ID |
75-
| -------------- | ------------ |
76-
| ap-northeast-1 | ami-b36d4edd |
77-
| ap-southeast-1 | ami-1069af73 |
78-
| ap-southeast-2 | ami-1d336a7e |
79-
| cn-north-1 | ami-79eb2214 |
80-
| eu-west-1 | ami-8aa67cf9 |
81-
| eu-central-1 | ami-ab0210c7 |
82-
| sa-east-1 | ami-185de774 |
83-
| us-east-1 | ami-26d5af4c |
84-
| us-west-1 | ami-9cbcd2fc |
85-
| us-west-2 | ami-16b1a077 |
86-
| us-gov-west-1 | ami-b0bad893 |
87-
8872
Environment variables and default values:
8973

9074
| CLI option | Environment variable | Default |
@@ -112,6 +96,24 @@ Environment variables and default values:
11296
| `--amazonec2-monitoring` | - | `false` |
11397
| `--amazonec2-use-ebs-optimized-instance` | - | `false` |
11498

99+
## Default AMIs
100+
101+
By default, the Amazon EC2 driver will use a daily image of Ubuntu 15.10 LTS.
102+
103+
| Region | AMI ID |
104+
| -------------- | ------------ |
105+
| ap-northeast-1 | ami-b36d4edd |
106+
| ap-southeast-1 | ami-1069af73 |
107+
| ap-southeast-2 | ami-1d336a7e |
108+
| cn-north-1 | ami-79eb2214 |
109+
| eu-west-1 | ami-8aa67cf9 |
110+
| eu-central-1 | ami-ab0210c7 |
111+
| sa-east-1 | ami-185de774 |
112+
| us-east-1 | ami-26d5af4c |
113+
| us-west-1 | ami-9cbcd2fc |
114+
| us-west-2 | ami-16b1a077 |
115+
| us-gov-west-1 | ami-b0bad893 |
116+
115117
## Security Group
116118
Note that a security group will be created and associated to the host. This security group will have the following ports opened inbound:
117119

@@ -141,3 +143,10 @@ To create a machine with a non-default vpc-id:
141143
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C********* --amazonec2-vpc-id vpc-****** aws02
142144

143145
This example assumes the VPC ID was found in the `a` availability zone. Use the`--amazonec2-zone` flag to specify a zone other than the `a` zone. For example, `--amazonec2-zone c` signifies `us-east1-c`.
146+
147+
## Custom AMI and SSH username
148+
The default SSH username for the default AMIs is `ubuntu`.
149+
150+
You need to change the SSH username only if the custom AMI you use has a different SSH username.
151+
152+
You can change the SSH username with the `--amazonec2-ssh-user` according to the AMI you selected with the `--amazonec2-ami`.

0 commit comments

Comments
 (0)