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

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
主站蜘蛛池模板: 腾冲县| 鹤峰县| 集贤县| 江华| 新和县| 隆德县| 海林市| 内丘县| 介休市| 临沧市| 洞口县| 勐海县| 同江市| 平利县| 朝阳市| 南丹县| 威海市| 东城区| 布拖县| 饶河县| 岑巩县| 汽车| 调兵山市| 扶余县| 建湖县| 施秉县| 曲周县| 洛隆县| 山西省| 德江县| 台南县| 遵化市| 侯马市| 尉犁县| 科尔| 巍山| 雷州市| 湘西| 十堰市| 酒泉市| 深泽县|