You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awsSession() caches the session; it will need to guard against returning the wrong session for a profile (key the cache by profile, or at least validate the cached session is the same profile as requested).
the profile name needs to be passed through to all callers of awsSession() (or stored somewhere global 😬)
func (a *awsSyncCmdGenerator) deleteOldEntities() calls iam := newIamClient(awsSession())
func (a *AwsFetcher) init() calls s := awsSession() for IAM and S3
func (a *AwsFetcher) getAccount() (*Account, error) calls acct.Id, err = GetAwsAccountId(awsSession()) for IAM and sometimes EC2.
To the best of my knowledge, it's currently impossible to identify which profile stored in ~/.aws/credentials to use with iamy.
I'll recommend to include profile as pull and push sub parameter to support AWS CLI --profile.
The text was updated successfully, but these errors were encountered: