Open yeDor opened 2 years ago
I am also having this issue when trying to use the ContainerImage.fromTarball
method on Windows 11.
cdk --version 2.28.1 (build d035432)
npm --version 8.12.1
node --version v16.15.1
Looks like https://github.com/aws/aws-cdk/blob/76e0768f6d69b555925bb3c016861f517a01ecae/packages/%40aws-cdk/aws-ecr-assets/lib/tarball-asset.ts#L72 really wants to pass the output of "docker load" through sed and hence it is trying to launch sh. Really, that output manipulation needs to be done in code.
Describe the bug
command: cdk deploy *-dev under linux deploy process works fine, but the same project under windows ends with error. Looks like cdk tries to spawn a sh process and fails under windows.
Expected Behavior
same behavior on windows and linux machine. Probably not spawn "sh" during publishing docker image from Tarball.
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.27.0 (build 8e89048)
Framework Version
No response
Node.js Version
v16.5.0
OS
Windows 10
Language
Java
Language Version
8
Other information
No response