-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(cli): I think cdk watch should deploy first #17776
Copy link
Copy link
Closed
Labels
effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Description
Description
cdk watch should start with a cdk deploy to make sure my account and my source code are in sync before watching for changes.
Use Case
The point of cdk watch is to keep a developer account in sync with your source code as you develop. To that end, I expected that the CLI will first deploy the current version to my account before beginning to monitor files.
This surprising behavior is emphasized when running cdk deploy --watch (which even sends a stronger semantic signal that I want to deploy).
Proposed Solution
Just kick off a cdk deploy before watching.
Other information
No response
Acknowledge
- I may be able to implement this feature request
- This feature might incur a breaking change
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI