payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/weaveworks/eksctl/issues/1109","repository_url":"https://api.github.com/repos/weaveworks/eksctl","labels_url":"https://api.github.com/repos/weaveworks/eksctl/issues/1109/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/eksctl/issues/1109/comments","events_url":"https://api.github.com/repos/weaveworks/eksctl/issues/1109/events","html_url":"https://github.com/weaveworks/eksctl/issues/1109","id":477936017,"node_id":"MDU6SXNzdWU0Nzc5MzYwMTc=","number":1109,"title":"Check aws client version and/or presence of aws-iam-authenticator","user":{"login":"dholbach","id":1346979,"node_id":"MDQ6VXNlcjEzNDY5Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1346979?v=4","gravatar_id":"","url":"https://api.github.com/users/dholbach","html_url":"https://github.com/dholbach","followers_url":"https://api.github.com/users/dholbach/followers","following_url":"https://api.github.com/users/dholbach/following{/other_user}","gists_url":"https://api.github.com/users/dholbach/gists{/gist_id}","starred_url":"https://api.github.com/users/dholbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dholbach/subscriptions","organizations_url":"https://api.github.com/users/dholbach/orgs","repos_url":"https://api.github.com/users/dholbach/repos","events_url":"https://api.github.com/users/dholbach/events{/privacy}","received_events_url":"https://api.github.com/users/dholbach/received_events","type":"User","site_admin":false},"labels":[{"id":1026025602,"node_id":"MDU6TGFiZWwxMDI2MDI1NjAy","url":"https://api.github.com/repos/weaveworks/eksctl/labels/kind/bug","name":"kind/bug","color":"dd0b00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-07T13:40:10Z","updated_at":"2019-08-07T13:40:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"If `aws-iam-authenticator` is not in `PATH`, we fall back to using `aws eks get-token`, but support for `get-token` was added recently (1.16.156). In some cases users can run into issues when their `aws` client does not support `get-token`.\r\n\r\nLet's validate the presence of these two commands and make the error more user-friendly.\r\n\r\nThe error message was:\r\n\r\n```\r\n[✖]  unable to use kubectl with the EKS cluster (check 'kubectl version'): usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]\r\nTo see help text, you can run:\r\n\r\n  aws help\r\n  aws <command> help\r\n  aws <command> <subcommand> help\r\naws: error: argument operation: Invalid choice, valid choices are:\r\n\r\ncreate-cluster                           | delete-cluster                          \r\ndescribe-cluster                         | describe-update                         \r\nlist-clusters                            | list-updates                            \r\nupdate-cluster-config                    | update-cluster-version                  \r\nupdate-kubeconfig                        | wait                                    \r\nhelp                                    \r\nUnable to connect to the server: getting credentials: exec: exit status 2\r\n```\r\n"}}
other: {"actor":{"display_login":"dholbach"}}