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

Missing option to configure backend for branch autodetection? #825

Closed
lorengordon opened this issue Jul 6, 2020 · 12 comments
Closed

Missing option to configure backend for branch autodetection? #825

lorengordon opened this issue Jul 6, 2020 · 12 comments
Assignees
Labels
archived This issue has been locked. web-previews Related to preview branches

Comments

@lorengordon
Copy link

** Please describe which feature you have a question about? **

Pattern-based feature branch deployments

** Provide additional details**

I created an amplify app and enabled branch autodetection, but the option to configure the backend is not available. This means whenever a new branch is created, the build fails because it is not linked to a backend. How can I turn this feature on for this app?

image

@Athena96
Copy link
Contributor

Athena96 commented Jul 7, 2020

Hi @lorengordon do you have an existing backend setup for your app?

@lorengordon
Copy link
Author

Yes, there is a backend. I'm not sure what "existing" refers to... I used amplify to create the backend.

Here is a new branch I just pushed to the repo:

image

And here you can see I can assign a backend manually:

image

@Athena96
Copy link
Contributor

Did you have a backend environment setup before you tried to enable the pattern-based feature?
Because in the first screenshot you shared, there is no option for "Branch autodetection - backend environment" like in the docs
https://docs.aws.amazon.com/amplify/latest/userguide/pattern-based-feature-branch-deployments.html

@lorengordon
Copy link
Author

Because in the first screenshot you shared, there is no option for "Branch autodetection - backend environment" like in the docs

Yes, exactly, that's exactly what I'm saying. There is no option for it in our project. That's why I shared the screenshot, so you could see what I'm seeing.

Did you have a backend environment setup before you tried to enable the pattern-based feature?

Fairly sure, yes, but it's been a long week so who knows. I definitely have disabled and re-enabled branch autodetection to try pick it up. I have also reconnected the repo. The option just is not there.

@lorengordon
Copy link
Author

@Athena96 I went back through our slack workspace and remembered that no, we did not have the backend configured when we first setup the pattern-based feature. I added the backend later. But since adding the backend, I have disabled the branch builds and re-enabled them, and reconnected the repo, several times, to no avail.

@lorengordon
Copy link
Author

@Athena96 sorry, hate to bother you, but just wanted to follow up if this is some bug in the UI, when the project is created without a backend first? It's not critical to me, I have a workflow for the project. So if this is not something you want to investigate further then we can close this. I just hate to open issues and leave them unworked/untriaged.

@mansiva
Copy link

mansiva commented Sep 25, 2020

We're having the same issue, project was created, multiple backend environments were setup as per the amplify docs (dev, test, prod), then when enabling branch auto-detection no option to specify which backend to connect to.

Now any new branches created in git are failing to build since no backend is being defined, and strangely enough yesterday a bunch of new backend environments started to appear with strange names: arabelle, belicia, blakeley, bobbye, britt... Nobody in the team claims to have created them, so it's pretty weird.

@vic-blt
Copy link

vic-blt commented Feb 4, 2021

Same issue here.
The project was initially created with a backend.
amplify-console

@vic-blt
Copy link

vic-blt commented Feb 11, 2021

See my comment #448 (comment)
It appears that if your app's framework is set to "React" you won't have options to set a default backend either for "branch autodetection" or "previews".
You have to set your app's framework to "React - Amplify".
The only way I found to do this is by deploying a fullstack amplify app from samples :
Host web app > From fullstack samples > Authentication Starter

@vic-blt
Copy link

vic-blt commented Feb 18, 2021

I found the solution, see my new comment #448 (comment)

@siegerts siegerts added web-previews Related to preview branches and removed backend-builds labels Apr 13, 2021
@ganipcanot
Copy link

Resolving due to age - please re-open if you are still experiencing issues.

@github-actions
Copy link

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

@github-actions github-actions bot added the archived This issue has been locked. label Oct 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. web-previews Related to preview branches
Projects
None yet
Development

No branches or pull requests

6 participants