Skip to content

AWSTools.Powershell\tools\chocolateyInstall.ps1 uses deprecated commands #260

Closed
@ghost

Description

Describe the bug

Unable to install AWSPowershell due to C:\ProgramData\chocolatey\lib\AWSTools.Powershell\tools\chocolateyInstall.ps1 trying to call deprecated commands (Write-ChocolateySuccess)

Expected Behavior

Running the following command results in a successful installation of AWsPowershell without any errors:

Install-Module -Name AWSPowerShell -Force

Current Behavior

Running Install-Module -Name AWSPowerShell -Force results in the following error:

ERROR: The term 'Write-ChocolateyFailure' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

The install of awstools.powershell was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\AWSTools.Powershell\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 1/2 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - awstools.powershell (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\AWSTools.Powershell\tools\chocolateyInstall.ps1'.

Reproduction Steps

Run 'Install-Module -Name AWSPowerShell -Force'

Possible Solution

No response

Additional Information/Context

I 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 used

I cannot install the tools at all, but I imagine 'Install-Module -Name AWSPowerShell -Force' is trying to install the latest version

PowerShell version used

PowerShell v5.1.14409.20180811

Operating System and version

Windows Server 2016

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions