- Newest
- Most votes
- Most comments
The error you're encountering is related to GitHub's API returning a "Moved Permanently" response, which typically occurs when GitHub is redirecting requests for a repository that has been moved to a new location. This suggests that Amplify is still attempting to interact with the old repository location using cached metadata.
Unfortunately, based on the available information about Amplify's webhook management, there isn't a documented self-service method to reset the GitHub repository binding without reconnecting. However, here are some approaches to consider:
Potential Solutions:
-
Manual Webhook Cleanup: Before attempting to reconnect, ensure that any residual webhooks from the old repository location have been completely removed. Check both the old organization (if you still have access) and the new organization for any lingering Amplify webhooks.
-
Regional Considerations: All Amplify operations, including webhook migrations and reconnections, are region-based. Ensure you're performing the reconnection in the same AWS region where your Amplify app was originally configured (eu-central-1 in your case, based on the GitHub App name).
-
Webhook Limit Check: Verify that you haven't reached the maximum number of webhooks allowed by GitHub in the new organization, as this can prevent successful reconnection.
-
AWS Support Intervention: Given that this appears to be an issue with stale internal metadata that cannot be resolved through standard reconnection procedures, you may need to contact AWS Support directly. They may have the ability to clear the cached repository metadata or webhook references at the backend level without requiring you to recreate your backend environments.
Since your backend environments (dev/staging/prod) are critical and you want to preserve them, AWS Support would be your best path forward to resolve this metadata issue without disrupting your existing infrastructure.
Sources
Simplifying Multi-App Management in AWS Amplify Hosting | Front-End Web & Mobile
Relevant content
asked 2 years ago
asked 6 months ago
- AWS OFFICIALUpdated 5 years ago
- AWS OFFICIALUpdated 5 years ago
