Skip to content

2025

AWS CLI Kung Fu

Guide: Installing the AWS CLI on your device

  • Use the official AWS install page at:
  • Verify installtion by running:
aws --version

AWS commands auto-complete (Optional)

  • If using zshrc shell, run the below commands:
echo -e '\nexport PATH=/usr/local/bin/:$PATH\nautoload bashcompinit \
&& bashcompinit\nautoload -Uz compinit && compinit\ncomplete \
-C "/usr/local/bin/aws_completer" aws' >> ~/.zshrc
  • If using Bash shell, run:
echo "complete -C '/usr/local/bin/aws_completer' aws" >> ~/.bashrc && source ~/.bashrc
  • If using Windows: Follow the process below.
# Open your $PROFILE file
Notepad $PROFILE

# If you don't have a $PROFILE, you can create one using;
if (!(Test-Path -Path $PROFILE ))
{ New-Item -Type File -Path $PROFILE -Force }

# Add the below code block to the $PROFILE and save.
Register-ArgumentCompleter -Native -CommandName aws -ScriptBlock {
    param($commandName, $wordToComplete, $cursorPosition)
        $env:COMP_LINE=$wordToComplete
        if ($env:COMP_LINE.Length -lt $cursorPosition){
            $env:COMP_LINE=$env:COMP_LINE + " "
        }
        $env:COMP_POINT=$cursorPosition
        aws_completer.exe | ForEach-Object {
            [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
        }
        Remove-Item Env:\COMP_LINE     
        Remove-Item Env:\COMP_POINT  
}