AppSync GraphQL Schema - regenerating

0

This is going to get quite a few eyerolls for good reason. We deployed an AppSync API with both DynamoDB and RDS data sources over a year ago. We've had some challenges with development coming and going and at some point, the schema has been modified likely due to development not really knowing what they were doing. This is all on me from a governance perspective but I am trying to get back to a last good known state as we are having quite a few issues where the schema just doesn't look right.

  1. Does the AWS toolkit have a function to regenerate schema based on previous versions (or is this Git/source code only)?
  2. I had the idea of creating an API from scratch and trying to piece it back together. Is that plausible?

Outside of the obvious, do better at software change management and governance, any other words of wisdom?

Thanks!

tdta
已提問 2 年前檢視次數 682 次
1 個回答
0
  1. AWS Toolkit is just a plug-in for various IDEs that lets you interact directly with AWS. It does not have the capability to regenerate an AppSync schema based on previous versions. I am guessing you are probably using AWS SAM or CloudFormation for deploying the AppSync API. Those tools don't have the ability to rollback to previous revision as it is expected that will be tracked and managed via your CI/CD processes.
  2. Yes, I would start by creating a working test API and making small incremental changes until you reach your desired state. Then deploy this API to replace the API that was, for lack of a better term, corrupted.

If you are correctly using a source control system such as git, you will be able to avoid problems like these as git will track the change history. With a source control system and CD pipeline, you can easily revert a non-working deployment to a previous version.

profile pictureAWS
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南