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

Amplify build unable to clone CodeCommit repo #1334

Closed danielvasas closed 3 years ago

danielvasas commented 3 years ago

Hi,

I have a CodeCommit repo: Repository ID 042e1b2d-65f9-407e-81a7-13d1956c5cbd Repository ARN arn:aws:codecommit:eu-central-1:035570781852:ddady-frontend

which I'm trying to deploy to AWS Amplify App. I created this app through the Amplify CLI: App ARN arn:aws:amplify:eu-central-1:035570781852:apps/d2l5jmllbeznlf

The build fails though: image

The error message suggests to 'click "Re-authenticate app" in General Settings, and then try your build again.' however I can see no such button. I tried the "Reconnect repository" on the General settings page, but it didn't help. Also tried to remove/add the branch.

What's interesting, is that I have another Amplify app connected to the same repo, in which the deployment is working: App ARN arn:aws:amplify:eu-central-1:035570781852:apps/d1x1fk420g162

I created this app first through the Amplify Console, and never had any issues with the build cloning the repo.

Need help! Cheers

danielvasas commented 3 years ago

Was solved by adding a missing role as described here: https://docs.aws.amazon.com/amplify/latest/userguide/how-to-service-role-amplify-console.html

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.