ember-cli-deploy / ember-cli-deploy-s3

An ember-cli-deploy plugin to upload to s3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using AWS credential profile

rynam0 opened this issue · comments

HI, great plugins!
I'm just getting started with ember-cli-deploy and am running into some issues in attempting to use the profile configuration. I have an .aws/credentials file that contains 2 sets of credentials: one is [default] and the other is [staging]. The docs led me to believe that I could simply omit accessKeyId and secretAccesskey and instead pass a profile configuration (profile: 'staging'). When I go this route, the default credentials are used. Is this a bug or am I simply misunderstanding how to use profiles?

Thanks!

Hi @rynam0. Can you confirm the full path of the creds file? Is it ~/.aws/credentials?

Hey, @achambers. Thanks for the reply. Yes, my credentials file is in the standard location you specify. I also noticed that only the default profile seems to be used in the following cases:

  • .env.deploy dot files are used instead of the profile config
  • using profile config: default profile creds are used

If I rename the default profile I am then able to use the dot file configuration. Strange right?

My mistake... sorry for the noise, everyone.
I removed all other ember-cli-deploy plugins and the profile configuration certainly works.
I think the issue is that ember-cli-deploy-s3-index doesn't support the profile configuration.
I'll look there next. Again, sorry for the noise.