Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Should func GetAuth try credentials in the same order as botocore? #171

Open
lokulin opened this issue Dec 11, 2014 · 4 comments
Open

Should func GetAuth try credentials in the same order as botocore? #171

lokulin opened this issue Dec 11, 2014 · 4 comments

Comments

@lokulin
Copy link

lokulin commented Dec 11, 2014

Hi,

Should func GetAuth try credentials in the same order as botocore?

Currently aws.go GetAuth tries:

PackerConfig->Shared->Env->Instance

As seen in

func GetAuth(accessKey string, secretKey string) (auth Auth, err error) {

In contrast, botocore, which the aws-cli tools use tries:

Env->Shared->Config->OriginalEc2->boto->Instance

As seen in: https://github.com/boto/botocore/blob/f93423146eb28e7e0d46aca8929ad16c3d5cf931/botocore/credentials.py#L57

Having Packer check in a different order sometimes causes confusion when users expect the evaluation order to be the same as the official CLI tools.

Cheers,

Lauchlin

@labrute974
Copy link

Man, I've had the same issue, I was wondering what it was!

Good one! Hopefully somebody will pick that up quick!

@BertrandLF
Copy link

Agreed

@supriyapjoshi
Copy link

Sounds good. We should have this fixed.

@lokulin
Copy link
Author

lokulin commented Dec 12, 2014

@labrute974 @BertrandLF @supriyapjoshi FYI pull request is here:

#172

libc pushed a commit to libc/goamz that referenced this issue Jan 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants