amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

Improve documentation for configure command (non-interactive) #147

Open hrmoller opened 6 years ago

hrmoller commented 6 years ago

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

UnleashedMind commented 6 years ago

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