-
Notifications
You must be signed in to change notification settings - Fork 115
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
How can I change repository of the existing app? #288
Comments
@jimmyn there's no way of changing the repo for an app. A workaround is to duplicate the app using |
Seems odd that |
This is kind of infuriating btw |
Would be great if this were possible. Has caused a lot of issues with domain management — constantly having to recreate apps is not a good UX. Netlify does this better. |
disappointing |
@swaminator I'm not sure why this issue was closed and no explanation has been given on why it's impossible to support such seemingly simple functionality. |
this doesn't allow you to change to a different git provider/account. is there a way to do that? |
The AWS CLI command outlined above will change an Amplify app's source repository provider/account along with the URL:
Please keep in mind that the --access-token expectations are different for each of the providers as they handle authentication differently. |
Umm, nope, it is still showing the old one |
... worked for me, transferring from one github account to another github account and repo. I know it's not quite what the OP was doing, but thought it may be worth noting that:
|
Did anyone managed this with Bitbucket Cloud where you cannot generate access token? I tried to get a token when connecting another app but getting an error:
|
You need to grant org access to OAuth Apps: Also you might need to delete old webhooks from the repository. |
Well i now did it a really easy way. You just need to delete all your frontend enviroments. Then you can change the Repo and add them again with the existing backend. |
The current behavior is extremely buggy. I transferred my repository from my personal account to an organization, when I wanted to do this using the Amplify UI, the Reconnect repository button just kept spinning without allowing me to do any change. I don't know what exactly did the trick but here's what I tried and end up working allowing me to modify the repository. Remove any manual environment created on the Amplify UI |
I just migrated my repo from a private account to an organization account and it worked, the only hang-up was not paying more attention to the popup in Amplify when reconnecting. This is what I did.
|
This made it work for me in the AWS Amplify Console, thanks @mcbergsma ! |
Hi everyone, |
In my case, I needed to update the repository name, for which Amplify doesn't yet provide a GUI. But this CLI command worked like a charm, even on an org (which I admin). Thanks @jamesjessian! |
@hsspain comment solved the problem - though AWS should be allowing us to configure apps to new repositories. |
Anyone know how I can migrate or update (without deleting branches) from Gitlab to CodeCommit? The update gives me the error below.
|
I just deleted the app and re-built it. The issue I had is that I renamed the repository and GitHub does destructive renames. That is, they change the name, url, everything when you change the name of the repo. This causes references to the old repo not to work including the hard coded value in AWS amplify. |
@seantcanavan I ended up removing all the hosting environments but keeping the app and backend environments. Then when I chose Connect Branch I was able to use the new provider. |
In "General" , scroll down there is a Branches section with a "Connect a branch" button. |
When I am trying to change my repository provider from Gitlab to Github, I get the following error.
I am trying with a personal access token. It's a private repo in an organization of which I am an owner. Any help is appreciated! |
@Jupdi I am not being able to make it work the way that you have mentioned. When I am trying to connect to Bitbucket it won't allow me to connect to the repo |
I updated my repos name, which "orphaned" my Amplify app with no straightforward way of reconnecting. So instead I went to "General" and under Branches I disconnected the branch, which in return deleted the application but kept the shell to the app (keeping its domain management settings etc) and then connected the new repo. Existing settings remain but had to delete and recreate. Hope this helps. |
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. |
** Please describe which feature you have a question about? **
We have an app connected to Bitbucket repo. We are migrating to GitHub private repo. If it possible to update a source repo of the existing app?
I've tried to update the app using aws cli
But I get this error:
The text was updated successfully, but these errors were encountered: