- AWS Tools for PowerShell 6
- Ramesh Waghmare
- 194字
- 2025-04-04 18:40:43
Updating AWS Tools for PowerShell
AWS keeps releasing a new version of the AWS Tools module both on Windows and PowerShell Core. As discussed earlier, you can determine the current version of AWS Tool by running the Get-AWSPowerShellVersion cmdlet. Currently, you can install Windows-based AWS Tools from https://aws.amazon.com/powershell/. For PowerShell Core, check the available version in the PowerShell Gallery. I think AWS Tool releases are too frequent, and they are targeting new releases every other 2 weeks. So, there is a need for you to understand the update process so that you know how to do or automate by writing your own script.
In case you have AWS Tools for PowerShell Core installed, plan to uninstall it before you attempt re-installation of the module. To uninstall, you can use this:
PS C:\> Uninstall-Package -Name AWSPowerShell.NetCore -AllVersions
When uninstallation is finished, install the updated package by running the following command. By default, this command installs the latest version of the AWS Tools for PowerShell Core. This package is available from the PowerShell Gallery, but the easiest method of installation is to run Install-Package:
PS C:\> Install-Package -Name AWSPowerShell.NetCore -Source https://www.powershellgallery.com/api/v2/ -ProviderName NuGet -ExcludeVersion -Destination $PSHOME/Modules