This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
amazonec2 driver using expired credentials on rm command #1840
Open
Description
When using AWS STS, credentials expire 1 hour after the session begins. docker-machine rm
tries to make AWS API calls with expired credentials. The command fails and give this error : Error removing machine test-eric-3: unable to terminate instance: unable to terminate instance: Problem with AWS API call: Non-200 API response: code=400 message=Request has expired.
EC2 instance termination and private key removal must be done by hand.
I'm using docker-machine version 0.4.0 (9d0dc7a)
.
IMO, docker-machine rm
should take parameters --amazonec2-access-key
--amazonec2-secret-key
and --amazonec2-session-token
and recognize associated environment variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment