eks-node-viewer icon indicating copy to clipboard operation
eks-node-viewer copied to clipboard

Feature: Add option to define profile name to fetch pricing information

Open nantiferov opened this issue 3 years ago • 3 comments

Hello,

Very nice tool, thank you for open-sourcing it!

It seems to me that it's now tries to fetch pricing information with default profile credentials and if it's not defined, throws errors like:

2022/12/12 10:49:49 updating on-demand pricing, NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors; NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors, using existing pricing data from 2022-10-31T16:47:25Z

I think that it would be useful to have command line option to define custom profile in session init.

nantiferov avatar Dec 12 '22 08:12 nantiferov

I've found that you can set the AWS_PROFILE environment variable as a workaround. I also need to set the AWS_REGION too or it complains too, eg:

AWS_PROFILE=<my_profile> AWS_REGION=eu-west-1 eks-node-viewer

spmason avatar Dec 12 '22 10:12 spmason

Nice tool but not much options such as --profile :)

vumdao avatar Dec 12 '22 15:12 vumdao

the workaround is not working for me using SSO based on Azure

daniel-ciaglia avatar Dec 12 '22 16:12 daniel-ciaglia