View/modify amplify CLI published apps in the AWS console?

0

Hi there,

I've created an app with amplify init, amplify add storage, amplify add storage, amplify add hosting, etc., using the CLI.

Now I want to add a custom domain, but the app doesn't show up in the Amplify console.

What's the best way forward? Do I need to tear down the site and publish from a repo (e.g. git) via the Amplify console? Is there a way to perform custom domain configuration via the cli?

I've scoured the docs and Googled, but couldn't seem to find a good lead.

Any advice would be appreciated.

Thanks,

Kim

Edited by: kimford on Jun 26, 2019 3:04 AM

Edited by: kimford on Jun 26, 2019 3:04 AM

Edited by: kimford on Jun 26, 2019 3:05 AM

kimford
질문됨 5년 전453회 조회
4개 답변
0

Hi,

Sorry for the confusion.
Init a project with amplify CLI will not create a AWS Amplify Console. What I would recommend is that push your project to GitHub and Connect your project to AWS Amplify Console. You will be able to set custom domain in AWS Amplify console.

Thanks,
Gary

답변함 5년 전
0

Hi Gary,

Thanks for the quick reply.

I'm gonna add some more info here, in case anyone come across the same issue and could use the help.

In short, I backed out of the cli hosting by using "amplify remove hosting". I then followed that up with a amplify push, which (I hope) removed all of the cloud elements. In fact, it did not remove the s3 hosing bucket, so I removed that manually.

That done, I used the AWS Amplify Console to connect a Bit Bucket repo with my app code.

On the first build attempt, it failed, as it could not find the src/aws-exports.js file, which was added to the .gitignore file automatically at some point during the setup of the site.

That particular file has what seems to be a lot of sensitive information, so I was hesitant to exclude it from .gitignore.

Tired and bored, and knowing that my bb-repo was private, I added and committed the file and waited.... and viola!

Publishing this way allowed me to add a custom domain.

If anyone has a better way, le me no....

kimford
답변함 5년 전
0

@kimford. You do not need to commit the exports file. This tutorial shows you how to deploy a fullstack Amplify app: https://docs.aws.amazon.com/amplify/latest/userguide/deploy-backend.html

답변함 5년 전
0

I have the same problem right now.
I build an Angular (Ionic) app with amplify.
When i first deployed the app with the amplify console everything worked fine.
Then my API-Key expired after 7 days. Now, after creating a new API-Key and setting the "APIKeyExpirationEpoch" = "-1" in parameters.json my app throws an error that the API-Key could not be found.

I already deleted my app from the amplify console and creating a new one like in the the link @nikhil1986 posted but still the same problem.
Removing the aws-exports.js from my gitignore solves the problem. But that can't be the long term solution right?

Maybe someone else already solved the problem and can help me?

Thanks so much
Jan

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인