Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CLI): allow support for arbitrary resource hotswapping #18820

Open
1 of 2 tasks
skinny85 opened this issue Feb 3, 2022 · 0 comments
Open
1 of 2 tasks

(CLI): allow support for arbitrary resource hotswapping #18820

skinny85 opened this issue Feb 3, 2022 · 0 comments
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

Comments

@skinny85
Copy link
Contributor

skinny85 commented Feb 3, 2022

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change
@skinny85 skinny85 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 3, 2022
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Feb 3, 2022
@skinny85 skinny85 added 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. p2 and removed needs-triage This issue or PR still needs to be triaged. labels Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants