Last active
December 9, 2022 12:28
-
-
Save dansmith65/79275f15fe25550e65ccd4d6bf1448cf to your computer and use it in GitHub Desktop.
Install version 1 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/awscli-install-windows.html | |
$dlurl = "https://s3.amazonaws.com/aws-cli/AWSCLI64PY3.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\AWSCLI\bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @fabiopaiva I created another Gist for version 2: https://gist.github.com/dansmith65/1691f9f0145194ce067323a5787b71bd