Skip to content

(cli): I think cdk watch should deploy first #17776

@eladb

Description

@eladb

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

Metadata

Metadata

Assignees

Labels

effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions