If you are getting the following error when you try to execute the kubectl command.
could not get token: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors Unable to connect to the server: getting credentials: exec: exit status 1
It means you have to load you AWS profile before you running the kubectl command.
Why is that? because you have to get your AWS authenticated.