amazon-archives/awsmobile-cli

Improve documentation for configure command (non-interactive)

hrmoller opened this issue · 1 comments

Looking at the code I found that the awsmobile configure can be made completely non-interactive but I didn't find any documentation for it, which I think would've convenient.

By providing your credentials in the right order you can simply skip the interaction and let awsmobile configure automatically. Very convenient in CI!

Example:
awsmobile configure aws $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY $AWS_DEFAULT_REGION

Thanks for the feedbacks.
Yes, that's a correct way to use the cli, mostly for scripting.