Install AWS CLICài AWS CLI

Quick reference for installing, configuring and verifying the AWS CLI on any platform.Tra cứu nhanh lệnh cài đặt, cấu hình và kiểm tra AWS CLI trên mọi nền tảng.

⬇️InstallCài Đặt 6
  • brew install awscli

    Install on macOS via HomebrewCài trên macOS qua Homebrew

    Fastest on macOSCách nhanh nhất trên macOS

  • curl https://awscli.amazonaws.com/AWSCLIV2.pkg -o AWSCLIV2.pkg

    Download the macOS installer (.pkg)Tải bộ cài macOS (.pkg)

  • sudo installer -pkg AWSCLIV2.pkg -target /

    Install the downloaded .pkgCài file .pkg vừa tải

  • curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip

    Download the Linux installer (x86_64)Tải bộ cài Linux (x86_64)

  • unzip awscliv2.zip && sudo ./aws/install

    Unzip and install on LinuxGiải nén và cài trên Linux

  • msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

    Install on Windows (PowerShell/CMD)Cài trên Windows (PowerShell/CMD)

⚙️ConfigureCấu Hình 3
  • aws configure

    Enter Access Key, Secret Key, region, outputNhập Access Key, Secret Key, region, output mặc định

  • aws configure list

    Show the current configurationXem cấu hình hiện tại

  • aws configure sso

    Set up login via IAM Identity Center (SSO)Cấu hình đăng nhập qua IAM Identity Center (SSO)

VerifyKiểm Tra 2
  • aws --version

    Check the installed versionKiểm tra phiên bản đã cài

  • aws sts get-caller-identity

    Show the current identity (account, user/role)Xem danh tính đang dùng (account, user/role)

    The surest way to know who you areCách chắc chắn nhất để biết bạn đang là ai