Installing AWS CLI ver 2
MacOS
Easiest step:
Download and double tap to install
with command line:
use brew
~$ brew install aws cli
or
~$ curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
~$ sudo installer -pkg AWSCLIV2.pkg -target /
~$ aws version
Linux
No easiest step:
~$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
~$ unzip awscliv2.zip
~$ sudo ./aws/install
Make sure you have Access Key and Secret Key generated on AWS console
Configure.
run.
~$ aws configure
AWS Access Key ID [None]: AK-XXX-YYY-ZZZAWS
Secret Access Key [None]:
Default region name [None]: ap-southeast-1
Default output format [None]: json
Comments
Post a Comment