amazon-archives / awsmobile-cli

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

Optional fail init command when no project id is provided #145

Open hrmoller opened 6 years ago

hrmoller commented 6 years ago

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.

UnleashedMind commented 6 years ago

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.

hrmoller commented 6 years ago

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