Created
August 23, 2022 01:33
-
-
Save dansmith65/1691f9f0145194ce067323a5787b71bd to your computer and use it in GitHub Desktop.
Install version 2 of AWS CLI via PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html | |
$dlurl = "https://awscli.amazonaws.com/AWSCLIV2.msi" | |
$installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf) | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-WebRequest $dlurl -OutFile $installerPath | |
Start-Process -FilePath msiexec -Args "/i $installerPath /passive" -Verb RunAs -Wait | |
Remove-Item $installerPath | |
$env:Path += ";C:\Program Files\Amazon\AWSCLIV2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Google sent me here. This failed with error
I added
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
and now it works: https://gist.github.com/sblack4/196e4bb143ce68726d85b545b9c4886d