Skip to content

Instantly share code, notes, and snippets.

@brijesh-deb
Last active January 14, 2023 09:17
Show Gist options
  • Save brijesh-deb/92c38cc5fdec594a181bc181a25eef0e to your computer and use it in GitHub Desktop.
Save brijesh-deb/92c38cc5fdec594a181bc181a25eef0e to your computer and use it in GitHub Desktop.
#AWS #CLI

Install AWS CLI in windows

  • Download windows installer(msi) from aws.amazon.com/cli/
  • Install CLI using msi
  • Check if installation is done properly: aws --version
  • Generate access key for AWS account: My Security Credentails> Access Keys> Get access key Id and secret access key
  • Configure CLI
    • aws configure
    • enter access key id, secret access key, region (like us-east-1) and output format(json)
    • This stores these credentials in credentials file in .aws folder in home directory and use them for CLI commands
  • Try command
    • aws ec2 describe-instances [Get No of EC2 instances]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment