mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
A failed stack update left AppSync entities changed or cleared by the update: the provisioner had no rollbackUpdate, so the stack ended in UPDATE_ROLLBACK_FAILED with "Rollback is not implemented". Before an in-place update of a GraphQL API, data source, function, resolver or API key, the provisioner records the members the update can change or clear. The service applies an update member by containsKey, so replaying them puts back both the changed and the cleared values. An update that fails part way undoes itself through CfnRollback.guarded, and a failed undo keeps the snapshot for ContinueUpdateRollback. GraphQLSchema and a replaced AppSync resource are not covered. tagResource, untagResource and putEnvironmentVariables change the stored API in place while updateGraphqlApi saves a copy, so a copy could overwrite a tag or variable written in between. Every method that writes a store now holds the service monitor, as startSchemaCreation does, and startSchemaCreation checks the API under it too. refreshGraphqlApiUris refreshes the stored API under the monitor instead of putting the instance it read earlier.