AWSTools.Powershell\tools\chocolateyInstall.ps1 uses deprecated commands #261
-
Describe the bugUnable to install AWSPowershell due to C:\ProgramData\chocolatey\lib\AWSTools.Powershell\tools\chocolateyInstall.ps1 trying to call deprecated commands (Write-ChocolateySuccess) Expected BehaviorRunning the following command results in a successful installation of AWsPowershell without any errors:
Current BehaviorRunning
Reproduction StepsRun 'Install-Module -Name AWSPowerShell -Force' Possible SolutionNo response Additional Information/ContextI raised an issue on the Choco GitHub page, and I they said the problem sits with AWS as they should be updating their choco package to not use the deprecated commands it is currently using. AWS Tools for PowerShell version usedI cannot install the tools at all, but I imagine 'Install-Module -Name AWSPowerShell -Force' is trying to install the latest version PowerShell version usedPowerShell v5.1.14409.20180811 Operating System and versionWindows Server 2016 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @campanellaf, Good morning. Thanks for opening the issue. AWS Tools for PowerShell does not use For testing purposes,
So looks like the community submitted AWSPowerShell The recommended and supported way to install AWS Tools for PowerShell is to use official AWS sources (refer Installing the AWS Tools for PowerShell on Windows). I'm unsure how your systems are configured and how Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @campanellaf,
Good morning.
Thanks for opening the issue. AWS Tools for PowerShell does not use
chocolatey
which appears to be 3rd party package manager for Windows. By default, the AWS Tools for PowerShell gets installed under<<UserDirectory>>\Documents\PowerShell\
orC:\Program Files\WindowsPowerShell\Modules
, without any trace forchocolatey
. If you look at your installation path, it isC:\ProgramData\chocolatey
, which appears to be managed bychocolatey
package manager. I'm unsure howchocolatey
package manager works and howlib\AWSTools.Powershell\tools\chocolateyInstall.ps1
was generated. This is not the result of the default AWS Tools for PowerShell install, may be managed by t…