Search code examples
amazon-web-servicesdocker-machine

docker-machine create won't push instance onto AWS


Until now I've been creating and deploying Docker container onto AWS using: docker-machine create --driver amazonec2 flask_app and it worked. I don't know what has happened but now it just creates instance locally but it won't push it on AWS.

What might be the problem ? It's leaving me perplexed.

AWS screenshot:

enter image description here

Local docker machine screenshot:

enter image description here

aws configure list:

enter image description here


Solution

  • I would start with the basics and make sure you are able to interact with AWS within your CLI environment and see if that works first. Next, I would try to see if there are anything extra indents in the credentials files as to why it's not working, and try to run the command with the access key and secret key in the command line like the example:

    :docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C******* aws-sandbox