Segmentation fault for AWS CDK in Bun
Unfortunately testing AWS CDK with Bun failed using the image from the previous post:
1
2
3
4
5
6
7
8
.PHONY: demo
demo:
rm -rf demo
mkdir -p demo && cd demo \
&& bun x cdk init app --language typescript \
&& bun install \
&& perl -pi -e 's/npx ts-node --prefer-ts-exts/bun/g' cdk.json \
&& bun x cdk synth
1
2
3
4
Segmentation fault
Subprocess exited with error 139
make: *** [Makefile:4: demo] Error 1
and the following when running via bash within the container
1
2
3
Killed
Subprocess exited with error 137
Update 1.0.31
Still failing.
But to be fair, CDK does not like it from the start showing warning:
1
!! This software has not been tested with node v21.6.0.
This post is licensed under CC BY 4.0 by the author.