官术网_书友最值得收藏!

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
主站蜘蛛池模板: 北票市| 平江县| 陕西省| 水富县| 全南县| 纳雍县| 石台县| 蒙阴县| 扶风县| 临洮县| 徐州市| 新化县| 南木林县| 扎兰屯市| 铜陵市| 南漳县| 盈江县| 沈阳市| 固镇县| 寿阳县| 分宜县| 会东县| 盐源县| 漯河市| 井冈山市| 简阳市| 凭祥市| 久治县| 察雅县| 公安县| 广南县| 巨野县| 尚志市| 西丰县| 精河县| 鲁山县| 科尔| 宜都市| 远安县| 周至县| 高邑县|