Skip to content

Instantly share code, notes, and snippets.

@sujaypillai
Created August 16, 2022 14:52
Show Gist options
  • Save sujaypillai/ebe16f9c2112beec15232c4274a1068c to your computer and use it in GitHub Desktop.
Save sujaypillai/ebe16f9c2112beec15232c4274a1068c to your computer and use it in GitHub Desktop.
# https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-windows.html
$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\AWSCLI\bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment