awsmobile-cli icon indicating copy to clipboard operation
awsmobile-cli copied to clipboard

Optional fail init command when no project id is provided

Open hrmoller opened this issue 7 years ago • 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.

hrmoller avatar Jun 05 '18 09:06 hrmoller

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.

UnleashedMind avatar Jun 05 '18 17:06 UnleashedMind

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

hrmoller avatar Jun 05 '18 17:06 hrmoller