(CLI): allow support for arbitrary resource hotswapping #18820
Labels
effort/large
Large work item – several weeks of effort
feature/enhancement
A new API to make things easier or more intuitive. A catch-all for general feature requests.
feature-request
A feature should be added or improved.
hotswap
p2
package/tools
Related to AWS CDK Tools or CLI
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
The text was updated successfully, but these errors were encountered: