# curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6876k 100 6876k 0 0 30.2M 0 --:--:-- --:--:-- --:--:-- 30.3M
# ls
awscli-bundle.zip
# unzip awscli-bundle.zip
bash: unzip: command not found
# yum install unzip
# unzip awscli-bundle.zip
Archive: awscli-bundle.zip
# cd awscli-bundle
# ./install -i /usr/local/aws -b /usr/local/bin/aws
Running cmd: /bin/python virtualenv.py --python /bin/python /usr/local/aws
Running cmd: /usr/local/aws/bin/pip install --no-index --find-links file:///opt/software/awscli-bundle/packages awscli-1.10.45.tar.gz
You can now run: /usr/local/bin/aws --version
# /usr/local/bin/aws --version
aws-cli/1.10.45 Python/2.7.5 Linux/3.10.0-327.el7.x86_64 botocore/1.4.35
Add aws path to the /etc/profile
export PATH=$PATH:/usr/local/bin
# aws configure
AWS Access Key ID [None]: <access_key>
AWS Secret Access Key [None]: <secret_access_key>
Default region name [None]: us-east-1
Default output format [None]:
# aws s3 cp s3://apmsoftware/CNAR3ML_ipm_apm_advanced_8.1.3.tar .
The aws s3 cp command is similar to the Unix cp command (the syntax is: aws s3 cp
Dload Upload Total Spent Left Speed
100 6876k 100 6876k 0 0 30.2M 0 --:--:-- --:--:-- --:--:-- 30.3M
# ls
awscli-bundle.zip
# unzip awscli-bundle.zip
bash: unzip: command not found
# yum install unzip
# unzip awscli-bundle.zip
Archive: awscli-bundle.zip
# cd awscli-bundle
# ./install -i /usr/local/aws -b /usr/local/bin/aws
Running cmd: /bin/python virtualenv.py --python /bin/python /usr/local/aws
Running cmd: /usr/local/aws/bin/pip install --no-index --find-links file:///opt/software/awscli-bundle/packages awscli-1.10.45.tar.gz
You can now run: /usr/local/bin/aws --version
# /usr/local/bin/aws --version
aws-cli/1.10.45 Python/2.7.5 Linux/3.10.0-327.el7.x86_64 botocore/1.4.35
Add aws path to the /etc/profile
export PATH=$PATH:/usr/local/bin
# aws configure
AWS Access Key ID [None]: <access_key>
AWS Secret Access Key [None]: <secret_access_key>
Default region name [None]: us-east-1
Default output format [None]:
# aws s3 cp s3://apmsoftware/CNAR3ML_ipm_apm_advanced_8.1.3.tar .
The aws s3 cp command is similar to the Unix cp command (the syntax is: aws s3 cp
source
destination
).
No comments:
Post a Comment