Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing messaging leads to duplicate projects: "You are not working in a valid Amplify project" #6617

Closed
omenking opened this issue Feb 13, 2021 · 3 comments · Fixed by #6986
Assignees
Labels
feature-request Request a new feature platform Issues tied to the general CLI platform

Comments

@omenking
Copy link

In AWS Amplify, you can build a web application without having to ever pull the backend because you are using the Admin UI.

It is very easy to run into the error "You are not working in a valid Amplify project" and then be prompted to run amplify init

Then you will run amplify init and not realizing that it has now just created a second application.

Screen Shot 2021-02-13 at 7 31 56 AM

A more clear message would be along the lines of:

We detected no local backed files suggesting there is no provisioned backend. 
This command requires a backend environment deployed to AWS and the presence of these backend files.
If you already have a backend environment within the AWS console you need to pull these files
If you have yet to create a backend environment you can run ampify init to initialize a new project that will provision a blackened environment to AWS
@yuth yuth added the documentation Add or update documentation label Feb 16, 2021
@renebrandel
Copy link
Contributor

Hi @omenking good feedback. What do you think of this prompt:

No Amplify backend project files detected within this folder. Either initialize a new Amplify project or pull an existing project.
- "amplify init" to initialize a new Amplify project
- "amplify pull <app-id>" to pull your existing Amplify project. Find the <app-id> in the AWS Console or Amplify Admin UI.

@renebrandel renebrandel added enhancement and removed documentation Add or update documentation labels Feb 16, 2021
@yuth yuth added the platform Issues tied to the general CLI platform label Feb 16, 2021
@gitaalekhyapaul
Copy link
Contributor

@yuth @renebrandel would an error like this work?
Screenshot from 2021-04-04 17-42-44
If yes, I would like to be assigned to this issue

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2021
@josefaidt josefaidt added feature-request Request a new feature and removed enhancement labels Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request a new feature platform Issues tied to the general CLI platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants