Skip to content

Connecting my existing Amplify app to a different Git repository

1

Hi There,

This is an request for need assistance in connecting my existing Amplify app to a different Git repository. I have previously configured my app with one repository, but now I want to connect it to another repository.

I have attempted to disconnect the current repository and connect the new one following the steps outlined in the Amplify documentation, but I am encountering issues I would appreciate it if you could provide guidance on how to successfully connect my Amplify app to the new Git repository. Thank you for your time and assistance.

Sincerely, Sitaram

2 Answers
0

Hello.

I think you can change it by running the following command.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/update-app.html

aws amplify list-apps
aws amplify update-app --app-id {app-id}  --repository {github-repository-url} --access-token {github-access-token}
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • What are the least permissions needed for this access token?

0

Enter image description here In my case I had previously used my personal GitHub repository to create an application on AWS amplify. I needed to create a new app from the repo of the organization I was part of. The problem was that I could not find the organization repo when I click on 'select a repository' box under 'Add repository and branch'. The solution that worked for me was to click on 'update my GitHub permissions'. Then I selected my organization.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.