Skip to content

Commit 16b570d

Browse files
Merge pull request docker#81 from londoncalling/machine-back-out-aws-changes
Revert "Merge pull request docker#36 from mrburrito/aws-iam-roles"
2 parents 2cd9cbd + 2ab7fa3 commit 16b570d

File tree

1 file changed

+15
-30
lines changed

1 file changed

+15
-30
lines changed

machine/drivers/aws.md

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,51 +16,36 @@ To create machines on [Amazon Web Services](http://aws.amazon.com), you must sup
1616

1717
## Configuring credentials
1818

19-
Before using the amazonec2 driver, ensure that you've configured credentials. The driver uses Amazon's default credentials chain
20-
to lookup credentials unless they are explicitly provided on the command line. The credential chain uses the following providers
21-
to authenticate with AWS:
19+
Before using the amazonec2 driver, ensure that you've configured credentials.
2220

23-
1. Command line flags
24-
1. Environment variables
25-
1. AWS credentials file
26-
1. EC2 Instance Role
21+
### AWS credential file
2722

28-
For more information, see the [AWS SDK for Go Developer's Guide](http://docs.aws.amazon.com/sdk-for-go/v1/developerguide/configuring-sdk.html).
29-
30-
### Command line flags
23+
One way to configure credentials is to use the standard credential file for Amazon AWS `~/.aws/credentials` file, which might look like:
3124

32-
The first way to specify credentials is with the flags `--amazonec2-access-key` and `--amazonec2-secret-key` on the command line:
25+
[default]
26+
aws_access_key_id = AKID1234567890
27+
aws_secret_access_key = MY-SECRET-KEY
3328

34-
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C******* aws01
29+
On Mac OS or various flavors of Linux you can install the [AWS Command Line Interface](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration) (`aws cli`) in the terminal and use the `aws configure` command which guides you through the creation of the credentials file.
3530

36-
### Environment variables
31+
This is the simplest method, you can then create a new machine with:
3732

38-
You can use environment variables:
39-
40-
$ export AWS_ACCESS_KEY_ID=AKID1234567890
41-
$ export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
4233
$ docker-machine create --driver amazonec2 aws01
4334

44-
### AWS credentials file
35+
### Command line flags
4536

46-
You can also configure the standard credential file for Amazon AWS, `~/.aws/credentials`, which might look like:
37+
Alternatively, you can use the flags `--amazonec2-access-key` and `--amazonec2-secret-key` on the command line:
4738

48-
[default]
49-
aws_access_key_id = AKID1234567890
50-
aws_secret_access_key = MY-SECRET-KEY
39+
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C******* aws01
5140

52-
On Mac OS or various flavors of Linux you can install the [AWS Command Line Interface](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration)
53-
(`aws cli`) in the terminal and use the `aws configure` command which guides you through the creation of the credentials file.
41+
### Environment variables
5442

55-
This is the simplest method. You can then create a new machine with:
43+
You can use environment variables:
5644

45+
$ export AWS_ACCESS_KEY_ID=AKID1234567890
46+
$ export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
5747
$ docker-machine create --driver amazonec2 aws01
5848

59-
### EC2 Instance Role
60-
61-
If you are running docker-machine from an existing EC2 instance, the amazonec2 driver will use the credentials for the IAM role
62-
assigned to the instance if they are configured.
63-
6449
## Options
6550

6651
- `--amazonec2-access-key`: Your access key id for the Amazon Web Services API.

0 commit comments

Comments
 (0)