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

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
主站蜘蛛池模板: 镇安县| 宣武区| 万载县| 敦化市| 滦南县| 文昌市| 东城区| 张家港市| 阳朔县| 沽源县| 苍南县| 安化县| 宜宾市| 灵武市| 九龙城区| 苏尼特右旗| 太湖县| 绥芬河市| 贵德县| 奇台县| 五峰| 雅江县| 应城市| 长垣县| 吉首市| 长宁县| 六安市| 永登县| 瑞金市| 丽江市| 长乐市| 甘肃省| 沁阳市| 凭祥市| 福州市| 博湖县| 宜州市| 锡林浩特市| 阳原县| 东兴市| 延边|