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

Backend Environments Tab in Amplify Console is Empty #408

Closed
jhoffmcd opened this issue Feb 4, 2020 · 22 comments
Closed

Backend Environments Tab in Amplify Console is Empty #408

jhoffmcd opened this issue Feb 4, 2020 · 22 comments
Labels
archived This issue has been locked. bug Something isn't working pending-prioritization Added to the backlog. Pending prioritization.

Comments

@jhoffmcd
Copy link

jhoffmcd commented Feb 4, 2020

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

The tab in Amplify that is supposed to show Backend Environments seems to be empty in my project, even though we have definitlely have two declared environments.

** Provide additional details**

What is actually supposed to show here? We have two environments that do seem to work other than what we see in this tab. Here is what we are seeing in the tab:

Screen Shot 2020-02-04 at 2 54 22 PM

However, we do see environments when we use the CLI tool or when we try to connect a branch:

Screen Shot 2020-02-04 at 2 52 05 PM

Is there a way to connect these two so I can see what value this tab section brings to my team?

@swaminator swaminator added the bug Something isn't working label Feb 4, 2020
@ganipcanot
Copy link

@jhoffmcd Does your application only have a front-end? Or does it also have a back-end? Also could you provide your app-id (app ARN) in order to assist you further? Thanks!

If your application has only deployed a front-end then you wouldn't see a backend environment.

@jhoffmcd
Copy link
Author

jhoffmcd commented Feb 6, 2020

It does also have a backend (auth/cognito) component.

App ARN: arn:aws:amplify:us-west-2:059525859496:apps/d2zqif4mv6lhdb

@ihao8
Copy link
Contributor

ihao8 commented Feb 11, 2020

Hi @jhoffmcd , this is a known issue for us. We are still investigating a fix to pass custom parameters when creates backend env. The current workaround is here: #206 (comment)

@jhoffmcd
Copy link
Author

jhoffmcd commented Feb 12, 2020

Thanks for the update @Joycehao19, I'm glad to hear the team is on it. I can probably wait of a true fix to this, the work around looks to be a bit bulky and we are able to survive with out it for a while longer I think.

Also, we are not using social federation, would this fix still apply if we wanted to look into it? Is there a specific part of this shell script that provides the workaround that you can point out?

@ihao8
Copy link
Contributor

ihao8 commented Feb 12, 2020

@jhoffmcd what version of the CLI are you using?

@jhoffmcd
Copy link
Author

Looks like 4.13.1

@jhoffmcd
Copy link
Author

An update on this, I added a 3rd env, "staging" and that did show up in the console, but the other two environments are still lost to the ether... :(

Screen Shot 2020-02-27 at 11 09 12 AM

@ihao8
Copy link
Contributor

ihao8 commented Feb 27, 2020

@jhoffmcd To clarify your issue, do you mean that: you created 2 env by amplify cli, then amplify push, but didn't see any backend env. Then you added 3rd env, "staging", then amplify push. The app only has 1 backend "staging". In your team-provider-info.json, it contains all 3 env.

If you re-create a new project, add env (amplify init + your custom setting), do amplify push, do you have the same issue?

I can't reproduce your issue. I did amplify init (create env abc) + amplify add auth + amplify auth update + amplify init (create env prod) + amplify push, I got 2 backend env on my console..

@jhoffmcd
Copy link
Author

@Joycehao19 correct, we had 2 for a long time, which never showed up in the console, we just added a third one (which did add to the team-provider-info.json).

I can try to do this in a brand new project. It should be worth noting that the first two environments were created around 10 months ago, and this new one was created a few days ago. Maybe older environments are not setup to show in the console?

@ihao8
Copy link
Contributor

ihao8 commented Feb 27, 2020

@jhoffmcd That might be the reason. We launched the front-end and back-end list in recent 4 months. The new back-end environments would be showed on console.

@ihao8 ihao8 added the pending-prioritization Added to the backlog. Pending prioritization. label Feb 27, 2020
@jhoffmcd
Copy link
Author

jhoffmcd commented Mar 3, 2020

So for these old environments, is there nothing we can do to get the console to read those correctly? We don't want to reset everything because we would have to migrate users to the new user pools created by the CF template.

@jhoffmcd
Copy link
Author

jhoffmcd commented Mar 5, 2020

Just an update, I ran aws amplify list-branches to see the output of what I have in this project. The older dev and master branches do not have the following property set:

"backendEnvironmentArn"

However, my new staging env branch does have that property set to what looks like some internal env ARN

Not sure if that is the missing piece or not as to why these older environments aren't showing up in the tabs in the console. I hope that helps give a little more info on this issue.

@H6
Copy link

H6 commented May 13, 2020

That might be the reason. We launched the front-end and back-end list in recent 4 months. The new back-end environments would be showed on console.

Hi @Joycehao19 . And old ones will never be visible here?

I have an old amplify project. And I just migrated to the current CLI and was also wondering, that the backend tab was empty.

@swaminator
Copy link
Contributor

@jhoffmcd @H6 are you still facing this issue?

@H6
Copy link

H6 commented Sep 15, 2020

@jhoffmcd @H6 are you still facing this issue?

Yes, my backend tab is still empty in the console.

@jhoffmcd
Copy link
Author

@swaminator I don't work on that project anymore so I can't say for sure.

@RossWilliams
Copy link

I still have the issues with multiple apps. They became duplicated in the console, and the “active” app has an empty backend tab.

@dylan-westbury
Copy link

dylan-westbury commented Oct 1, 2020

I am facing this issue for a next.js frontend, for a react native and reactjs frontend it is fine.

Even after running amplify init --appId xxxxx and pushing

@lucafronterotta
Copy link

Hello all,I'm having the same problem, my backend console is empty even if the services I configured (analytics, notifications, pinpoint) are working well.

The strange thing I see is that:

  • if I create everything from my personal AWS account with administration rights everything is ok and I can see the backend in the Amplify console;
  • if I create everything from my Company account where I have limited rights services works well but backend in Amplify is missing, but I get no errors while doing all the configurations.

What I do is:

  • create a react native app
  • amplify init (creating a single environment)
  • amplify add notifications
  • amplify add analytics
  • amplify push

Could it be a rights problem (missing policies?!?) on my Company account?
Is it possible to have a list of rights mandatory to use Amplify CLI and push everything to the cloud?

Thanks in advance.

@lucafronterotta
Copy link

I solved the problem requesting amplify:* permissions on my AWS Company account; it seems that the Amplify web console, when permissions are missing, simply tells that you have no backend instead of saying something like "You have no right to do this task"

@ganipcanot
Copy link

Resolving this issue based on the update to permissions on your end.

Feel free to re-open if 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. bug Something isn't working pending-prioritization Added to the backlog. Pending prioritization.
Projects
None yet
Development

No branches or pull requests

8 participants