amazon-archives/awsmobile-cli

Optional fail init command when no project id is provided

hrmoller opened this issue · 2 comments

So, in our current setup, in CI, we're doing a awsmobile init -y $PROJECT_ID on each deploy but if no project ID is provided in $PROJECT_ID a new project is being initialised in the AWS MobileHub.

I think it would be a nice option to allow awsmobile init to fail if no project ID is provided instead of creating a new project.

Thanks for the feedbacks, @hrmoller
init without projectID covers other use cases in which developers need to quickly setup the cloud backend for their frontend project, so it should not fail.

Well, I didn't post it very clear but I thought it just could be an option passed to the command e.g. --no-default