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
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.
35
30
36
-
### Environment variables
31
+
This is the simplest method, you can then create a new machine with:
37
32
38
-
You can use environment variables:
39
-
40
-
$ export AWS_ACCESS_KEY_ID=AKID1234567890
41
-
$ export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
42
33
$ docker-machine create --driver amazonec2 aws01
43
34
44
-
### AWS credentials file
35
+
### Command line flags
45
36
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:
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
54
42
55
-
This is the simplest method. You can then create a new machine with:
43
+
You can use environment variables:
56
44
45
+
$ export AWS_ACCESS_KEY_ID=AKID1234567890
46
+
$ export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
57
47
$ docker-machine create --driver amazonec2 aws01
58
48
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
-
64
49
## Options
65
50
66
51
-`--amazonec2-access-key`: Your access key id for the Amazon Web Services API.
0 commit comments