AWS CDK Issue on Windows 11
Nov 5, 2021
CDK CLI uses WMI (Windows Management Instrumentation) cmdlets that is deprecated since version 3 of Power Shell. Today the cmdlet used is CIM (Common Information Model).
If you are experiencing the issue below when using Windows 11:
Command failed: wmic path win32_computersystemproduct get uuid
‘wmic’ is not recognized as an internal or external command,
operable program or batch file.
Passing --no-ec2creds
for every CDK command should help you out until a new CDK fix is released.
cdk deploy --no-ec2creds
Reproduction steps
On Windows 11
Install cdk:
npm install -g aws-cdk
Try to initiate a cdk repo like this:
cdk init