Skip to content

cdk synth: no progress output when using aws-lambda-python-alpha #20390

@jamescrowley

Description

@jamescrowley

Describe the bug

when running cdk synth for the first time with a stack using aws-lambda-python-alpha, there is no output and a long wait. When sending a exit signal, you then see output like the below. It would be helpful to see this so we know the command is actually doing something while downloading large assets for docker...

^C#1 [internal] load build definition from Dockerfile
#1 sha256:f4ba181a71739a9474221bb7c17e360db8ec7a5501545770c43b39669ab8c47d
#1 transferring dockerfile: 559B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:c5ffb195cbc141d5ad2461015be91ea1fa4adc0faca951160bb4dd50efcf8a49
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load metadata for public.ecr.aws/sam/build-python3.7:latest
#3 sha256:736fd2cbbd177322a8d9f59207aa567bd7c5e6b8a53ccbfcabedb9b542a72676
#3 DONE 2.1s

#4 [1/3] FROM public.ecr.aws/sam/build-python3.7@sha256:a5a2b3c90c2717bef8b6a72c01c4683fa671cd4b9366e73f727879dd026dfbde
#4 sha256:a662cd0e0b277b051d5be9cc47dc2b77d815ff1ea2b55f18d3182bbe7aa833c3
#4 resolve public.ecr.aws/sam/build-python3.7@sha256:a5a2b3c90c2717bef8b6a72c01c4683fa671cd4b9366e73f727879dd026dfbde done
#4 sha256:4d51ba39d68e89682829ee861016f78bc3f570f41d59a6a8c65efe717d5bc525 6.27kB / 6.27kB done
#4 sha256:677629673abbdab4759ce38e9b2bd346d65864fe603f5932bb21d9c221150afc 0B / 326.84MB 0.1s
#4 sha256:463d3a5fe45fa1aa2792d3e31b4510d2920664e68b138777f3943fb0beb1897e 0B / 50.35MB 0.1s
#4 sha256:a5a2b3c90c2717bef8b6a72c01c4683fa671cd4b9366e73f727879dd026dfbde 2.22kB / 2.22kB done
#4 sha256:c5a26d51260828843491086a150852a9a5b10e5ef6cad06b2f9c5f913a2712ea 0B / 93.99kB 0.2s
#4 sha256:c5a26d51260828843491086a150852a9a5b10e5ef6cad06b2f9c5f913a2712ea 93.99kB / 93.99kB 1.9s done
#4 sha256:552377ed6f5147097fe2f5230859c7c93caaf1e3bc0dd4a1de5f4e5aac6775dd 0B / 11.51MB 1.9s
#4 sha256:552377ed6f5147097fe2f5230859c7c93caaf1e3bc0dd4a1de5f4e5aac6775dd 1.05MB / 11.51MB 3.8s
#4 sha256:677629673abbdab4759ce38e9b2bd346d65864fe603f5932bb21d9c221150afc 2.10MB / 326.84MB 5.2s
#4 sha256:463d3a5fe45fa1aa2792d3e31b4510d2920664e68b138777f3943fb0beb1897e 1.05MB / 50.35MB 5.2s
#4 sha256:552377ed6f5147097fe2f5230859c7c93caaf1e3bc0dd4a1de5f4e5aac6775dd 2.10MB / 11.51MB 5.3s
#4 sha256:552377ed6f5147097fe2f5230859c7c93caaf1e3bc0dd4a1de5f4e5aac6775dd 3.15MB / 11.51MB 7.0s
#4 sha256:552377ed6f5147097fe2f5230859c7c93caaf1e3bc0dd4a1de5f4e5aac6775dd 4.19MB / 11.51MB 9.0s
#4 sha256:677629673abbdab4759ce38e9b2bd346d65864fe603f5932bb21d9c221150afc 3.15MB / 326.84MB 10.2s
#4 sha256:463d3a5fe45fa1aa2792d3e31b4510d2920664e68b138777f3943fb0beb1897e 3.15MB / 50.35MB 10.2s

Expected Behavior

Should see some kind of progress/output from cdk synth when the job may take > 10 minutes to run!

Current Behavior

No output until you cancel the command

Reproduction Steps

https://github.com/youngsoul/api-lambda-example does the same

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.24.1 (build 585f9ca)

Framework Version

No response

Node.js Version

v18.2.0

OS

macOS

Language

Python

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.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