Amplify init fails to resolve credential from profile in $AWS_CONFIG_FILE despite $AWS_SDK_LOAD_CONFIG=1 #11319
Closed
5 tasks done
Labels
feature-request
Request a new feature
p3
platform-init
Issues related to initializing a new Amplify project
Before opening, please confirm:
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli@latest
If applicable, what version of Node.js are you using?
v12.22.12
Amplify CLI Version
10.4.0
What operating system are you using?
Ubuntu 20.04.2 LTS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Not applicable
Amplify Categories
Not applicable
Amplify Commands
init
Describe the bug
Using
aws-vault
throughcredential_process
in my non-standard located config file without a credentials file has been working for me in awscli v2 (and Intellij) for some time. So I expected it to be supported in Amplify CLI as well, especially since I exportAWS_SDK_LOAD_CONFIG=1
(see reproduction). But it doesn't.Expected behavior
I can't describe what to expect, since I never got past
amplify init
, it is the first time I use it, and I never ran it before.First contact, so to speak:
I can tell you what I did not expect
Reproduction steps
1
.envrc
/tmp/config.awsvault
I'm using a jump account where an admin-role is assumed with an api user's credentials as long as an MFA token is provided.
From there, OrganizationAccountAccessRole in a target test account is assumed. This multihop is all taken care of by aws-vault.
3
direnv allow; amplify init
use all the default answers, except for the default editor where I chose Intellij (this is irrelevant to the issue)GraphQL schema(s)
# Put schemas below this line
Project Identifier
No response
Log output
Up to
Select the authentication method you want to use:
Up to
AWS access credentials can not be found.
Additional information
My assessment is that AWS_CONFIG_FILE is not supported, even when AWS_SDK_LOAD_CONFIG=1.
Further, because amplify does not have a --debug flag, it is difficult to figure out what the tool is doing without resorting to strace.
The text was updated successfully, but these errors were encountered: