Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I connect an existing app in the AWS Amplify Console with the AWS Amplify CLI?

As described here I can host my app in AWS Amplify console from AWS Amplify CLI: https://aws.amazon.com/de/blogs/aws/host-your-apps-with-aws-amplify-console-from-the-aws-amplify-cli/

Is it also possible to connect an existing app to the CLI? When I try to it with amplify add hosting I get this message: "You have already connected branches to your Amplify Console app. Please visit the Amplify Console to manage your branches"

My goal is to have the status of the hosted app also in the CLI.

like image 674
Johannes Konings Avatar asked Mar 08 '20 14:03

Johannes Konings


People also ask

How do I deploy an application to amplify?

To manually deploy an app from Amazon S3 or a public URLSign in to the AWS Management Console and open the Amplify console . At the top of the page, choose Get started. In the Deliver section, choose Get started. On the Host your web app page, choose Deploy without Git provider.

How do I connect my AWS Amplify to GitHub?

To install and authorize the Amplify GitHub AppSign in to the AWS Management Console and open the Amplify console . From the All apps page, choose New app, then Host web app. On the Get started with Amplify Hosting page, choose GitHub, then choose Continue.


1 Answers

I managed it by deleting my app in the amplify console and recreating the hosting via the amplify CLI. The following error was displayed:

App <<appid>> not found.

But after I created a new amplify envirmoment amplify add hosting worked.

like image 176
Johannes Konings Avatar answered Oct 22 '22 11:10

Johannes Konings