aws / aws/aws-cdk-cli

(hotswap): allow support for arbitrary resource hotswapping

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

Description

Please add your 👍 to this issue - that helps us prioritize!

### Description

Today, the set of resources that can be hotswapped (se the current list here: https://github.com/aws/aws-cdk/blob/master/packages/aws-cdk/README.md#hotswap-deployments-for-faster-development) is hard-coded by the code in the CDK CLI.

We should make this extensible, so that customers can add support for hotswapping new resources themselves, without having to wait for the CDK team to implement it.

### Use Case

There are many possible resources that can be hotswapped; right now, customers have no way of adding more, short of contributing changes to the `aws-cdk` package.

### Proposed Solution

We probably need to design some sort of plugin architecture that can load additional "hotswap plugins" when the CLI runs, similarly like we do for auth plugins.

I think it's fine to make this JavaScript/TypeScript only, since the CLI is written in that language. Making it JSII-enabled for multi-language support would most likely add a lot of complexity (and this task is already pretty tricky 😛).

### Other information

_No response_

### Acknowledge

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

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.