{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1840","repository_url":"https://api.github.com/repos/docker/machine","labels_url":"https://api.github.com/repos/docker/machine/issues/1840/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1840/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1840/events","html_url":"https://github.com/docker/machine/issues/1840","id":106041729,"number":1840,"title":"amazonec2 driver using expired credentials on rm command","user":{"login":"ericcitaire","id":1712792,"avatar_url":"https://avatars.githubusercontent.com/u/1712792?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcitaire","html_url":"https://github.com/ericcitaire","followers_url":"https://api.github.com/users/ericcitaire/followers","following_url":"https://api.github.com/users/ericcitaire/following{/other_user}","gists_url":"https://api.github.com/users/ericcitaire/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcitaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcitaire/subscriptions","organizations_url":"https://api.github.com/users/ericcitaire/orgs","repos_url":"https://api.github.com/users/ericcitaire/repos","events_url":"https://api.github.com/users/ericcitaire/events{/privacy}","received_events_url":"https://api.github.com/users/ericcitaire/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/driver/ec2","name":"driver/ec2","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2015-09-11T16:05:37Z","updated_at":"2016-07-01T09:14:29Z","closed_at":null,"body":"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.\r\n\r\nI'm using `docker-machine version 0.4.0 (9d0dc7a)`.\r\n\r\nIMO, `docker-machine rm` should take parameters `--amazonec2-access-key` `--amazonec2-secret-key` and `--amazonec2-session-token` and recognize associated environment variables."},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/229898610","html_url":"https://github.com/docker/machine/issues/1840#issuecomment-229898610","issue_url":"https://api.github.com/repos/docker/machine/issues/1840","id":229898610,"user":{"login":"jmenga","id":16098232,"avatar_url":"https://avatars.githubusercontent.com/u/16098232?v=3","gravatar_id":"","url":"https://api.github.com/users/jmenga","html_url":"https://github.com/jmenga","followers_url":"https://api.github.com/users/jmenga/followers","following_url":"https://api.github.com/users/jmenga/following{/other_user}","gists_url":"https://api.github.com/users/jmenga/gists{/gist_id}","starred_url":"https://api.github.com/users/jmenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmenga/subscriptions","organizations_url":"https://api.github.com/users/jmenga/orgs","repos_url":"https://api.github.com/users/jmenga/repos","events_url":"https://api.github.com/users/jmenga/events{/privacy}","received_events_url":"https://api.github.com/users/jmenga/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T09:14:29Z","updated_at":"2016-07-01T09:14:29Z","body":"Boto3 has support for [Assume Role Provider](http://boto3.readthedocs.io/en/latest/guide/configuration.html#assume-role-provider), which automatically handles the STS refresh process for you (similar to the AWS Console).\r\n\r\nThis is really the ideal solution - I use it with AWS CLI and other Boto3-based code and it works transparently to the user and application.  \r\n\r\nNot sure though is the AWS SDK for Go supports this capability."}}
{"actor":{"display_login":"jmenga"}}