On my Ubuntu 18.04.02 LTS I have docker, docker-machine and docker-compose:
Docker version 18.06.1-ce, build e68fc7a
docker-machine version 0.15.0, build b48dc28
docker-compose version 1.22.0, build unknown
I am following the testdriven.io microservices tutorials but I am stuck at part one - deployment. Unfortunately, it does not offer any help setting up the AWS part.
I have created an .aws/credentials
file in the home folder of the user I am using by using the aws configure
command and this worked.
But when running the command docker-machine create --driver amazonec2 testdriven-prod
I get the following error:
Error setting machine configuration from flags provided: amazonec2 driver requires AWS credentials configured with the
--amazonec2-access-key
and--amazonec2-secret-key
options, environment variables,~/.aws/credentials
, or an instance role
Everything seems to work when using the command line parameters but I think I should be able to use the credentials file as well.
I have regenerated the credentials a couple of times and the credentials file as well but to no avail.
Sdev@udev01:~$ ls .aws
config credentials
dev@dev01:~$ docker-machine create --driver amazonec2 testdriven-prod
Error setting machine configuration from flags provided: amazonec2 driver requires AWS credentials configured with the --amazonec2-access-key and --amazonec2-secret-key options, environment variables, ~/.aws/credentials, or an instance role