New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(tools): use of deprecated wmic module windows #16419
Comments
I am getting a different but presumably related error on the same wmic module, also making it impossible to use
|
Correction: I cannot do anything with cdk, all commands fail with this error. |
Passing |
Apparently Microsoft stopped shipping `wmic.exe` in certain situations (modern systems?). We rely on this to detect whether we are on an EC2 instance, so that we do or do not configure the IMDS credential provider (we try to avoid the IMDS credential provider if unnecessary, because in certain network setups it may hang for a long time failing to connect to `169.254.169.254`). If calling `wmic` fails, just assume we're not on an EC2 instance and proceed. Fixes #16419.
Apparently Microsoft stopped shipping `wmic.exe` in certain situations (modern systems?). We rely on this to detect whether we are on an EC2 instance, so that we do or do not configure the IMDS credential provider (we try to avoid the IMDS credential provider if unnecessary, because in certain network setups it may hang for a long time failing to connect to `169.254.169.254`). If calling `wmic` fails, just assume we're not on an EC2 instance and proceed. Fixes #16419. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Apparently Microsoft stopped shipping `wmic.exe` in certain situations (modern systems?). We rely on this to detect whether we are on an EC2 instance, so that we do or do not configure the IMDS credential provider (we try to avoid the IMDS credential provider if unnecessary, because in certain network setups it may hang for a long time failing to connect to `169.254.169.254`). If calling `wmic` fails, just assume we're not on an EC2 instance and proceed. Fixes #16419. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Apparently Microsoft stopped shipping `wmic.exe` in certain situations (modern systems?). We rely on this to detect whether we are on an EC2 instance, so that we do or do not configure the IMDS credential provider (we try to avoid the IMDS credential provider if unnecessary, because in certain network setups it may hang for a long time failing to connect to `169.254.169.254`). If calling `wmic` fails, just assume we're not on an EC2 instance and proceed. Fixes aws#16419. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Cdk Cli uses WMI (Windows Management Instrumentation) cmdlets (docs) that is deprecated since version 3 of Power Shell. Today the cmdlet used is CIM (Common Information Model).
With the WMI the command to init a CDK folder cannot be executed.
Reproduction Steps
Install cdk:
npm install -g aws-cdk
Try to initiate a cdk repo like this:
cdk init
What did you expect to happen?
I expected the cdk prepare the first config files in folder.
What actually happened?
The mentioned error above.
Environment
Other
These links maybe useful:
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: