Closed matsev closed 6 years ago
The awsmobile-cli configuration needs both the credential key and the region. The aws cli stores the region configuration inside the ~/.aws/config file, if the awsmobile-cli can not find the region for the profile, it won't be able to complete the configuration, that's why you saw the error. Please add that profile inside the config file, and it should be fine. below is the example, please note that in this file, you need to add the word 'profile' before the profile name.
[profile MY_AWS_MOBILE_PROFILE] region = us-west-2
Thanks, that solved the problem. May I suggest that you update the error message to reflect this?
Thanks for your feedbacks. We will keep improving the cli user experience for our customers.
AWS CLI profiles stored in the
~/.aws/credentials
file are not recognised by awsmobile-cli when callingExpected result
awsmobile-cli should be configured with
MY_AWS_MOBILE_PROFILE
.Actual result
For the record, the contents of
~/.aws/credentials
looks something likeawsmobile-cli version:
Relates to #48