aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
456 stars 115 forks source link

Deployment process does not finish "Provision" step #376

Closed TLaue closed 4 years ago

TLaue commented 4 years ago

Since this morning I am facing a very strange problem. I am pushing code to CodeCommit but the connected Amplify Console branches do not run anymore. All of them keep pending in the "Provision" step for hours. There seems to be no process at all:

Screenshot from 2020-01-21 14-03-33

I have even created a new CodeCommit repository and a new Amplify Console app with ID "doqnjn36rcxp7" - but no success. I would be very thankful if someone could point me to a possible reason fo this problem.

Thank you very much in advance.

swaminator commented 4 years ago

@TLaue we are investigating this with priority

ihao8 commented 4 years ago

Hi @TLaue , did you try re-deploying your app? Would you mind to provide the region as well?

TLaue commented 4 years ago

Hello @Joycehao19, I am working in "eu-central-1". I have tried to re-deploy the app serveral times as the problem happened for different branches and on different apps. I cancelled the deployments several times and tried to re-deploy them but all pipelines kept running the provision step forever.

ihao8 commented 4 years ago

@TLaue Sorry that you are facing this issue. Did you delete your app? Would you mind to connect and deploy it again? Thank you!

TLaue commented 4 years ago

@Joycehao19: I have just deleted the app and created a new one for the same CodeCommit branch but the result is the same. It is still not progressing. New appID; d26clkjd3gqprk

TLaue commented 4 years ago

@Joycehao19: as additional info: the same project runs successfully in another account. It seems that the problem is somehow related to this specific AWS account. I have just created a new default React project using create-react-app (without any amplify integration), pushed the code to a new codecommit repo and created a new Amplify Console app. Unfortunatelly, the result is still the same. The provision step do not finish.

ihao8 commented 4 years ago

@TLaue Thank you for your additional info. I can't reproduce this issue. I did the same thing, create a default react project --> push to codecommit --> create a new Amplify Console app. It worked fine on my console. I think this is a known issue for us that the build getting periodically stuck in provisioning. We are still investigating a fix. Can you double check if the aws account you use has codecommit permission? (IAM-Users-Permissions-Add permissions -> add AWSCodeCommitFullAccess)

TLaue commented 4 years ago

@Joycehao19 The service role used by Amplify Console has administrator access permissons and the role used by my account user has power user permissons (we are accessing this account by an assumed role from another account). However I am assuming that this is not the reason of this problem as the same project works without any problems in another account whose assumed role has access rights which are much more limited.

I have just tried to deploy one of the full stack example applications provided by Amplify. No success. Are there any logs available which might get an indication what might be causing this problem? The strange this is that everything was working correctly till two days ago (until everything stopped suddenly in the provision step).

JoshuaTruscott commented 4 years ago

I'm also having this issue. No changes to permissions made, yesterday was deploying fine.

swaminator commented 4 years ago

@JoshuaTruscott what region is your app in

TLaue commented 4 years ago

@Joycehao19 I have just switched to another region (eu-west-1) to check if the amplify console app is running correctly there. No problem. This issue is in our case only related to (eu-central-1). Any ideas how to solve it?

ihao8 commented 4 years ago

@TLaue It seems like you have deleted the previous application. Would you mind create a new one and post the appID? Because we are not able to find the build info of deleted application. Thank you!

TLaue commented 4 years ago

@Joycehao19 There is another app (det3qgey9p43n) showing the same problem in the same region.

ihao8 commented 4 years ago

@TLaue Could you please add AWSCodeCommitFullAccess permission and try again? (Console:IAM-Users-Permissions-Add permissions -> add AWSCodeCommitFullAccess)

TLaue commented 4 years ago

@Joycehao19 I will try tomorrow as I do not have the necessary permissions to upgrade my IAM permssions at the moment. Is the arn:aws:iam::aws:policy/PowerUserAccess policy not powerfull enough to run Amplify console? Especially as I can deploy my app with the same assumed policy within another region successfully.

ihao8 commented 4 years ago

@TLaue Hi, could you please try to create a new app again without set AWSCodeCommitFullAccess permission?

TLaue commented 4 years ago

@Joycehao19 Everything is working again - without any permission changes or any other action conducted by myself. I do not know what you have done respectively what was the solution to this problem but thank you very much for your support!

github-actions[bot] commented 1 year ago

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.