AWS: Getting started with Amazon Web Services Command Line Interface (CLI)
Amazon's command-line interface is an option to manage and administer AWS services. This is the same concept as how you control the AWS web management console but through the command line.
So why do we need the CLI interface? While there are many use cases to use AWS CLI, here are the high-level features that I like:
- You can use Windows command prompt or Powershell.
- Remotely run Amazon’s Elastic Compute Cloud (EC2) commands through Putty (Windows Terminal Program to access Linux shell), Linux Secure Shell (SSH), or AWS Systems Manager.
- MAC OSX’s shell.
- Application Programming Interface (API) to customize and manage AWS instances.
Getting started?
Installing in Windows
- Download AWS CLI MSI installer for Windows (64-bit) here or via Windows PowerShell or CMD prompt and run ‘msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi’ (ensure that you are running with administrator privilege on either CMD prompt or PowerShell)
- Accept End-User License Agreement
Check that Windows installation works
Installing in Linux x86 (64-bit)
Use curl to download the setup file curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o “awscliv2.zip”
Unzip the “awscliv2.zip” file
Then install
Check installation for any issues
And this is how we install AWS CLI on Windows and Linux. Stay tuned for the next part on configuring and administering AWS instances using AWS CLI.
References: