Coder Social home page Coder Social logo

Comments (6)

errordeveloper avatar errordeveloper commented on June 29, 2024 1

So, if you get an error like "dialout i/o timeout" it may be DNS timing out. Not sure if this is worth highlighting in a separate ticket, as a user-aide error message.

Typica with Go, I get these from kubectl once in a while, my Virgin Media ISP also has crappy DNS. I've filed an issue once – kubernetes/kubernetes#33877, not sure what's been done about. We can probably find something to do about it and make a PR to kubectl (or Go?), i.e. match timeout error and make the message more useful.

from eksctl.

crw avatar crw commented on June 29, 2024

Sidebar, the reason I was doing the debugging is Comcast DNS servers we timing out on certain AWS domain names (but not others). So, eksctl didn't work, but I could reach other k8s clusters on aws and gke (but my Plume wifi devices, which dial home to an AWS domain, had been offline for a week for the same reason).

So, if you get an error like "dialout i/o timeout" it may be DNS timing out. Not sure if this is worth highlighting in a separate ticket, as a user-aide error message.

from eksctl.

errordeveloper avatar errordeveloper commented on June 29, 2024

Turns out this is pretty complicated, the SDK has a lot of logic to deal with different configuration modes, however there is no way to obtain profile being used. We can get credentials struct, but it doesn't have profile in it as such. Also, there is a mode where profile isn't even set, i.e. you just have credentials set as environment variables and no ~/.aws/credentials file.

I think the most sensible way would be to expose a flag that would let you set profile explicitly to avoid any doubts about environment variables or anything else.

from eksctl.

errordeveloper avatar errordeveloper commented on June 29, 2024

Maybe we could print a sanitised credentials struct, e.g.:

2018-06-10T08:54:23-07:00 [▶]  AWS credentials: AccessKeyID:"AIF***VA2A", SecretAccessKey:"6Bhg***B3LX", SessionToken:"GN8DCY***hD", ProviderName:"SharedConfigCredentials: /Users/ilya/.aws/credentials"

from eksctl.

crw avatar crw commented on June 29, 2024

I would probably skip showing secret stuff (SecretAccessKey, SessionToken), even in an elided format. Otherwise, LGTM.

from eksctl.

errordeveloper avatar errordeveloper commented on June 29, 2024

We have --profile now, it should help to eliminate doubts. The fundamental issues is that credentials may be set without any profile as such, so the SDK doesn't have a way to tell us anything about profile used... Closing for now, open if you disagree :)

from eksctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.