3 Answers
- Newest
- Most votes
- Most comments
0
I am pretty sure that this is related to running headless in Lambda. A PTY device is a pseudo-tty device which is part of an interactive session. When running from Lambda your process will not have a PTY device and as such is failing to fork a pty session.
0
Hi,
It seems that your runtime environment is failing on this Python package https://github.com/microsoft/node-pty bridging NodeJS to Python
Has this Python package already been imported in your container image?
Best,
Didier
0
Hey, Thank you for picking this up. I've added the npm package to the image and it made no difference. Would have expected this to be a dependency of cdktf but couldn't find it in the package-lock.json file. Regardless, I'm getting the same error.
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 8 months ago

This is my thinking as well, although I can run it locally (
docker run ...). I'll post it in the cdktf issue tracker and see if there's anything that can be done about it (I'm already using theCIflag which I'd expect disables UI interaction).