graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Redeploying an appsync API disconnects any existing connected resolvers

Open hypexr opened this issue 4 years ago • 2 comments

When an appsync api is deployed and then extended with additional graphql components that reference it's appId the resolvers they attached are disconnected.

To fix each component that references the appId need to be removed and deployed.

hypexr avatar Aug 25 '20 17:08 hypexr

yeah right now when you do deploy, we try to match the aws environment to exactly what you have defined in the yaml file. So we remove everything that is not defined, even if it's deployed by another component.

I think we need to have some sort of ownership concept where each instance could only deploy/remove the routes they own/created.

eahefnawy avatar Aug 26 '20 06:08 eahefnawy

@eahefnawy Any updates on this? I've been using a cloned component in my org that gets around the problem by not removing anything on deploy/delete. I'd love to switch back to the official component and have some PRs to put in for lambda versioning and provisioned concurrency that will be easier once I don't have to work around this.

hypexr avatar Dec 29 '20 01:12 hypexr