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): cdk ls should work even when cdk deploy is in progress #32477

Open
2 tasks
moltar opened this issue Dec 11, 2024 · 2 comments
Open
2 tasks

(cli): cdk ls should work even when cdk deploy is in progress #32477

moltar opened this issue Dec 11, 2024 · 2 comments
Labels
@aws-cdk/core Related to core CDK functionality feature-request A feature should be added or improved. p3 package/tools Related to AWS CDK Tools or CLI

Comments

@moltar
Copy link
Contributor

moltar commented Dec 11, 2024

Describe the feature

I think cdk ls should work, even when there's already a deployment in progress.

Use Case

It's pretty typical to work across tabs and sometimes I want to ls while another process is already busy doing a deploy.

Proposed Solution

When running ls change --output value to some /tmp/* dir.

Other Information

Get an error when doing an ls while deploy is running:

Other CLIs (PID=81799) are currently reading from cdk.out. Invoke the CLI in sequence, or use '--output' to synth into different directories.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.171.0

Environment details (OS name and version, etc.)

macOS

@moltar moltar added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 11, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Dec 11, 2024
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. p2 and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Dec 11, 2024
@khushail khushail self-assigned this Dec 11, 2024
@khushail khushail added @aws-cdk/core Related to core CDK functionality and removed needs-triage This issue or PR still needs to be triaged. labels Dec 11, 2024
@khushail
Copy link
Contributor

Hi @moltar , thanks for reaching out. AFAIK, cdk ls lists out the stacks which are deployed and when the deployment is going on, it might be incomplete information since you want to see the list in between of the process which is running. Same holds true in case of multiple stacks being deployed with cdk deploy.

I am not really sure if implementing this would be good idea as IMO, it would be better to wait and see complete information than half cooked resources.

cc: @ashishdhingra

@khushail khushail added p3 and removed p2 labels Dec 11, 2024
@khushail khushail removed their assignment Dec 11, 2024
@moltar
Copy link
Contributor Author

moltar commented Dec 11, 2024

ls most definitely doesn't list deployed stacks because it works without credentials and even offline.

It does synthesize everything thought, which is why it wants to use outdir. And which is why it fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality feature-request A feature should be added or improved. p3 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants