Steps to use the AWS command line interface (Python / awscli) on Mac OS X

The Mac environment wasn't ready on my company machine yet.

http://aws.amazon.com/jp/cli/

The way Python pip commands are installed has changed. As you can see from the brew guide, it seems that sudo is required because Mavericks does pass the path where python's easy_install did not pass before.

Is that so. Do you need sudo? Sorry.

command


# install python
brew install python
# install pip command
sudo easy_install pip
# install aws cli
sudo pip install awscli
# set completer
complete -C aws_completer aws

Installation is OK with just this. Set environment variables.

.bash_profile


export AWS_ACCESS_KEY_ID="Your access key"
export AWS_SECRET_ACCESS_KEY="Your secret access key"

Reload

command


source $HOME/.bash_profile

I will try using it.

command


aws s3 ls

If you see a list of buckets, it's working fine. The command line tools are much richer than before, so it's convenient, but I can't deny that it's difficult to use unless there are too many options and suggestions on tabs.

It's nice to see more s3 commands compared to java command line tools. Basic commands such as ls, cp, rm, mv can be used, and mb (make bucket) and rb (remove bucket) can be used. You can also use sync to sync the files in the folder.

command


# create bucket
aws s3 mb --region=ap-northeast-1 s3://testcreatebucketforpcli
# ls
aws s3 ls s3://testcreatebucketforpcli
# sync local to s3
aws s3 --region=ap-northeast-1 sync . s3://testcreatebucketforpcli/tmp

You can do more than java command line tools. It's nice to have an s3 command, but it's still difficult to use because it feels like it's still there.

Personally, I would like to think about what kind of interface is easy to use in the future.

Recommended Posts

Steps to use the AWS command line interface (Python / awscli) on Mac OS X
Preparing to use aws cli on Mac OS X
Steps to get KeePassX key on OS X with one command line
Steps to install the latest Python on your Mac
Steps to install python3 on mac
Get started with the Python framework Django on Mac OS X
Continuation ・ Notes on preparing the Python development environment on Mac OS X
Installed aws-cli On Mac OS X Lion
How to erase Python 2.x on Mac.
Easy way to use Python 2.7 on Cent OS 6
Run Zookeeper x python (kazoo) on Mac OS X
Convert XLSX to CSV on the command line
Operate Route53 on the command line using AWS-CLI.
Shpinx (Python documentation builder) on Mac OS X
Think about the selective interface on the command line
Use AWS lambda to scrape the news and notify LINE of updates on a regular basis [python]
Very easy to install SciPy on Mac OS X
(Remember quickly) How to use the LINUX command line
How to pass arguments when invoking python script from blender on the command line
Memo on Mac OS X
Using multiple versions of Python on Mac OS X (2) Usage
Using NAOqi 2.4.2 Python SDK on Mac OS X El Capitan
Use Python 3 introduced with command line tools on macOS Catalina
[Hyperledger Iroha] Notes on how to use the Python SDK
How to install Theano on Mac OS X with homebrew
Procedure memo to put AWS command line interface in CentOS6
Use Python to monitor Windows and Mac and collect information on the apps you are working on
Steps to install the latest version of OpenCV on OS X El Capitan without Homebrew
Using multiple versions of Python on Mac OS X (1) Multiple Ver installation
Steps to install matplotlib on Mac
Install Sphinx on Mac OS X
In the python command python points to python3.8
Quickly install OpenCV 2.4 (+ python) on OS X and try the sample
Use python on Raspberry Pi 3 to illuminate the LED (Hello World)
Install mitmproxy on Mac OS X
[Python] I tried to make a simple program that works on the command line using argparse.
Install lp_solve on Mac OS X and call it with python.
Steps to get Caffe into Mac OS X 10.10 in CPU Mode
Python standard module that can be used on the command line
Sakura Use Python on the Internet
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
Update Python on Mac from 2 to 3
Install pgmagick on Mac OS X 10.9
Use python on Raspberry Pi 3 to light the LED with switch control!
Introduction to Graph Database Neo4j in Python for Beginners (for Mac OS X)
Keep getting RSS on the command line
[Linux] How to use the echo command
I want to use Linux on mac
How to use the Linux grep command
Steps to install Python environment on Ubuntu
Memorandum on how to use gremlin python
Use without installing python 2.x on Windows
Install python on xserver to use pip
You search commandlinefu on the command line
[Blender x Python] How to use modifiers
3 best ways to use the less command
Run NASA CEA on Mac OS X
What to do if you installed pyenv on Mac OS using Homebrew but the python version doesn't switch
[2015/11/19] How to register a service locally using the python SDK on naoqi os
I want to use Python in the environment of pyenv + pipenv on Windows 10
I installed Pygame with Python 3.5.1 in the environment of pyenv on OS X