aws / aws/aws-cdk

cdk cli: cdk watch doesn't support CDK Pipelines

Open
#25,314 1 comment 12 reactions 0 assignees View on GitHub
effort/medium feature-request p1 package/tools
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
74

Description

### Describe the bug

I've built a set of functions behind an api gateway which works great. I could use the cdk cli to watch and makes changes on the fly.

But after I followed this documentation:
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines-readme.html

I can no longer watch local changes and make hot swap updates.

The command just hangs and does nothing. I've tried naming the stack the pipeline deploys but that also does nothing.

### Expected Behavior

To be able to use the cdk watch functionality.

### Current Behavior

The cli command runs then doesn't progress - the initial deploy also doesn't happen.

### Reproduction Steps

Create stack.
Put stack in stage in pipeline.
Deploy + test everything works.
Run cdk watch command locally.

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CDK CLI Version

2.76.0 (build 78c411b)

### Framework Version

_No response_

### Node.js Version

18

### OS

Mac OSX

### Language

Typescript

### Language Version

5

### Other information

There are no errors.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a CDK Pipeline containing a stack in a stage, using the reported CDK CLI 2.76.0 and Node.js 18 setup. Start with the documented cdk watch workflow and compare its behavior with the pipeline deployment; done means the command completes its initial deployment and supports local hot-swap updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cli, cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.