-
-
Save dansmith65/79275f15fe25550e65ccd4d6bf1448cf to your computer and use it in GitHub Desktop.
# 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" |
Awesome. thanks
Thank you brocoli
Great Thanks. Maybe add
$env:Path += ";C:\Program Files\Amazon\AWSCLI\bin"
Great Thanks. Maybe add
$env:Path += ";C:\Program Files\Amazon\AWSCLI\bin"
@lomungo Thanks, I just added it.
Adding $ProgressPreference = 'SilentlyContinue'
to the beginning of the script can help download times a LOT if you are accessing the host through RDP etc
V2
$dlurl = "https://awscli.amazonaws.com/AWSCLIV2.msi"
$installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf)
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"
Awesome, thanks :)
Adding
$ProgressPreference = 'SilentlyContinue'
to the beginning of the script can help download times a LOT if you are accessing the host through RDP etc
@tylergohl Sorry I overlooked this enhancement until now, but I just added it; thanks for the suggestion.
V2
$dlurl = "https://awscli.amazonaws.com/AWSCLIV2.msi" $installerPath = Join-Path $env:TEMP (Split-Path $dlurl -Leaf) 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"
Thanks @fabiopaiva I created another Gist for version 2: https://gist.github.com/dansmith65/1691f9f0145194ce067323a5787b71bd
Nice