aws / aws/aws-cdk-cli

(hotswap): Support for Hotswapping AppSync Schemas

Open
#871 1 comment 2 reactions 0 assignees View on GitHub
effort/medium feature-request p2
Dominant language
TypeScript
Stars
105
Forks
122
Avg merge
1d 17h
Merged PRs (30d)
71

Description

### Describe the feature

Today, AppSync users have some limited hotswap capabilities in terms of updating Resolver and Function code, but they cannot update their GraphQL Schema, which I'd contend is the other most commonly iterated on part of an API.

I'd like to propose adding a new Hotswap for GraphQL Schema which will leverage the `StartSchemaCreationCommand`, and add a poller for the `GetSchemaCreationStatusCommand` with some upper-bound timeout (e.g. 30s).

This should allow iteration on more happy-case changes without needing to fallback to a full deploy, and hopefully take trivial schema changes (e.g. adding a field to a type) from ~100 seconds today to ~10 seconds as is seen w/ other hotswapped resources.

### Use Case

I've written up a series of feature requests which I think will add to a faster, more fluid experience for AppSync users:
* https://github.com/aws/aws-cdk/issues/24111
* https://github.com/aws/aws-cdk-cli/issues/872
* https://github.com/aws/aws-cdk-cli/issues/871

### Proposed Solution

Add Hotswap for AppSyncGraphQLSchema resources.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.64.0

### Environment details (OS name and version, etc.)

osx 13.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.