Install AWS CLI V2
$ curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
$ sudo installer -pkg AWSCLIV2.pkg -target /
Verify the installation
To verify that the shell can find and run the aws
command in your $PATH
, use the following commands.
$ which aws
/usr/local/bin/aws
$ aws --version
aws-cli/2.0.36 Python/3.7.4 Darwin/18.7.0 botocore/2.0.0
Config
Configure the AWS CLI by running the following command:
aws configure
Enter your Access Keys (Access Key ID and Secret Access Key).
To create an access key when signed in as the root user
- Sign in to the AWS Management Console as the root user. For more information, see Sign in as the root user in the IAM User Guide.
- In the navigation bar on the upper right, choose your account name or number and then choose My Security Credentials.
- Expand the Access keys (access key ID and secret access key) section.
- Choose Create New Access Key. If you already have two access keys, this button is disabled.
- When prompted, choose Show Access Key or Download Key File. This is your only opportunity to save your secret access key.
- After you’ve saved your secret access key in a secure location, chose Close.
Reference
- https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html#cliv2-mac-install-confirm
- https://aws.amazon.com/premiumsupport/knowledge-center/move-objects-s3-bucket/
- https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys
FEATURED TAGS
algorithm
algorithmproblem
architecturalpattern
architecture
aws
c#
cachesystem
codis
compile
concurrentcontrol
database
dataformat
datastructure
debug
design
designpattern
distributedsystem
django
docker
domain
engineering
freebsd
git
golang
grafana
hackintosh
hadoop
hardware
hexo
http
hugo
ios
iot
java
javaee
javascript
kafka
kubernetes
linux
linuxcommand
linuxio
lock
macos
markdown
microservices
mysql
nas
network
networkprogramming
nginx
node.js
npm
oop
openwrt
operatingsystem
padavan
performance
programming
prometheus
protobuf
python
redis
router
security
shell
software testing
spring
sql
systemdesign
truenas
ubuntu
vmware
vpn
windows
wmware
wordpress
xml
zookeeper