データエンジニア日記

データエンジニアの雑記

brewでawsのcliをインストール

ずっとWindowsを使っていたエンジニアがMacbookを支給されたので、開発環境構築中 以下でインストール可能でした。

brew install awscli

インストールしたあとはコマンド保管されるように以下のコマンドを打ちましょう。 (.bash_profileにも追記する事)

complete -C '/usr/local/bin/aws_completer' aws

コマンド補完 - AWS Command Line Interface

ログは以下

[~]$ brew install awscli
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
apm-server    bedtools      cling         ddgr          dnsdist       glslviewer    kubeless      mongodb@3.4   neal          raylib        vert
avimetaedit   chamber       clingo        dislocker     envconsul     joplin        libidn2       mrboom        node@8        sceptre
==> Updated Formulae
git ✔                           exploitdb                       imapfilter                      mujs                            rtv
openssl ✔                       faas-cli                        instead                         nano                            rust
pyenv ✔                         fabio                           iso-codes                       nasm                            rustup-init
abcm2ps                         fail2ban                        jenkins                         natalie                         s-nail
abcmidi                         fcitx-remote-for-osx            jenkins-lts                     nativefier                      s6
ace                             fd                              jhipster                        ndpi                            sbcl
ack                             fdroidserver                    jruby                           nghttp2                         sbt
acmetool                        ffmpeg                          just                            nmh                             scalariform
advancemame                     fibjs                           kibana@5.6                      node                            scamper
adwaita-icon-theme              filebeat                        knot                            node-build                      sdl2_mixer
agedu                           firebase-cli                    kompose                         node@4                          securefs
amazon-ecs-cli                  fish                            kontena                         node@6                          selenium-server-standalone
angular-cli                     flow                            kops                            nodebrew                        sfk
ansible                         fluent-bit                      kotlin                          notmuch                         shairport-sync
ansible-lint                    fn                              krb5                            nsd                             shellcheck
ansifilter                      folly                           kube-aws                        nss                             shfmt
aptly                           fonttools                       kubernetes-cli                  ntopng                          shpotify
arangodb                        fpc                             kvazaar                         nuget                           sile
armadillo                       freeling                        kyoto-tycoon                    nvm                             sip
artifactory                     freeswitch                      kyua                            ocamlbuild                      skinny
aspcud                          freetds                         lbdb                            octave                          slackcat
ats2-postiats                   fwup                            ldc                             ohcount                         spotbugs
aurora-cli                      fzf                             lgogdownloader                  oniguruma                       sql-translator
aws-sdk-cpp                     game-music-emu                  libassuan                       onscripter                      sqlmap
azure-cli                       gandi.cli                       libatomic_ops                   open-scene-graph                sslyze
azure-cli@1                     gauge                           libcddb                         opencbm                         stormlib
b2-tools                        gegl                            libcdio                         openshift-cli                   stunnel
bacula-fd                       geoserver                       libcdr                          optipng                         suite-sparse
bazaar                          get_iplayer                     libcouchbase                    osc                             sundials
bazel                           geth                            libdivecomputer                 osm2pgsql                       suricata
bench                           ghc                             libgit2-glib                    osquery                         swi-prolog
binaryen                        git-annex                       libgosu                         osrm-backend                    swift
bindfs                          git-ftp                         libgweather                     ott                             swift-protobuf
bit                             git-town                        libhttpseverywhere              packer                          swiftformat
blink1                          gitbucket                       liblcf                          packetbeat                      syncthing
blockhash                       gitlab-runner                   liblinear                       packmol                         sysbench
bluepill                        gjstest                         libmaxminddb                    paket                           tarantool
bmake                           glade                           libmicrohttpd                   pandoc                          tasksh
brotli                          glog                            libmspub                        parallel                        tectonic
btfs                            glpk                            libphonenumber                  passenger                       telegraf
bwfmetaedit                     gmic                            libqalculate                    payara                          termius
byobu                           gmime                           libquvi                         pazpar2                         terraform
bzt                             gnome-recipes                   libraw                          pdftoedn                        terragrunt
cabal-install                   gnuplot                         librdkafka                      pdftoipe                        tgui
carthage                        gnuplot@4                       librealsense                    pdns                            thefuck
cassandra@2.2                   goffice                         libsass                         pdnsrec                         thrift
ceres-solver                    gopass                          libswiften                      peco                            tidy-html5
certbot                         gosu                            libtcod                         pegtl                           tinyxml2
chakra                          gperftools                      libtensorflow                   percona-server@5.5              tippecanoe
charm                           gradle                          libtiff                         percona-server@5.6              tmuxinator-completion
checkstyle                      gradle-completion               libtins                         phoronix-test-suite             tor
chromedriver                    grails                          libunistring                    pilosa                          tracebox
citus                           grakn                           libuv                           pinentry                        traefik
clang-format                    graphicsmagick                  libvirt                         pioneer                         treefrog
clhep                           groonga                         libvisio                        planck                          twarc
clojure                         grpc                            libwps                          plzip                           uncrustify
cockroach                       gsoap                           libxc                           pngquant                        urh
coffeescript                    gst-editing-services            linkerd                         polyml                          vcdimager
commandbox                      gst-libav                       little-cms2                     poppler                         vim
conan                           gst-plugins-bad                 lldpd                           ppsspp                          vips
conjure-up                      gst-plugins-base                logstash                        pqiv                            vowpal-wabbit
corsixth                        gst-plugins-good                logstash@5.6                    pre-commit                      webp
couchdb                         gst-plugins-ugly                lsyncd                          presto                          webpack
couchdb-lucene                  gst-python                      lua                             protobuf                        weechat
cppad                           gst-rtsp-server                 lua@5.1                         pulledpork                      widelands
cromwell                        gst-validate                    lutok                           pygobject                       wireguard-tools
curl                            gstreamer                       macvim                          pyinvoke                        wireshark
dcm2niix                        gtk-doc                         mame                            pyqt                            wtf
dcos-cli                        gtksourceview3                  mapnik                          python-markdown                 x265
dialog                          gx                              mariadb                         pyvim                           xmoto
diff-pdf                        gx-go                           mediaconch                      q                               xmrig
digdag                          hadolint                        menhir                          qbs                             xonsh
direnv                          hana                            mercurial                       qca                             xtensor
dmd                             haproxy                         meson                           qscintilla2                     xxhash
dmtx-utils                      harfbuzz                        metricbeat                      qt                              yaz
docfx                           haskell-stack                   mgba                            r                               ydcv
docker-machine-nfs              heartbeat                       micro                           radare2                         yle-dl
druid                           heimdal                         midnight-commander              rancher-cli                     you-get
duck                            heroku                          mimic                           re2                             youtube-dl
dwdiff                          hfstospell                      minio                           rebar@3                         zanata-client
efl                             highlight                       miniupnpc                       redis                           zbar
ejabberd                        html-xml-utils                  mockserver                      remake                          zebra
elasticsearch                   httest                          mongodb                         reminiscence                    zimg
elasticsearch@5.6               huexpress                       mono                            restic                          zorba
emscripten                      hugo                            mono-libgdiplus                 rocksdb                         zsh-autosuggestions
erlang                          ibex                            monotone                        rom-tools
etcd                            icu4c                           mpd                             roswell
etsh                            imagemagick                     mpg123                          rpm
exim                            imagemagick@6                   mpv                             rtags
==> Deleted Formulae
clasp                                   geogit                                  gringo                                  lua@5.3

==> Installing dependencies for awscli: sqlite, gdbm, openssl, xz, python3
==> Installing awscli dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.21.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.21.0.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/sqlite/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/sqlite/3.21.0: 11 files, 3.0MB
==> Installing awscli dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.13.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.13.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gdbm/1.13: 19 files, 554.4KB
==> Installing awscli dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2n.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2n.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2n: 1,792 files, 12.3MB
==> Installing awscli dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.3.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.2.3: 92 files, 1.4MB
==> Installing awscli dependency: python3
==> Downloading https://homebrew.bintray.com/bottles/python3-3.6.3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring python3-3.6.3.sierra.bottle.tar.gz
==> /usr/local/Cellar/python3/3.6.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.6.3/bin --in
==> /usr/local/Cellar/python3/3.6.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.6.3/bin --in
==> /usr/local/Cellar/python3/3.6.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.6.3/bin --in
==> Caveats
Pip, setuptools, and wheel have been installed. To update them
  pip3 install --upgrade pip setuptools wheel

You can install Python packages with
  pip3 install <package>

They will install into the site-package directory
  /usr/local/lib/python3.6/site-packages

See: https://docs.brew.sh/Homebrew-and-Python.html
==> Summary
🍺  /usr/local/Cellar/python3/3.6.3: 3,588 files, 56.1MB
==> Installing awscli
==> Downloading https://homebrew.bintray.com/bottles/awscli-1.11.190.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring awscli-1.11.190.sierra.bottle.tar.gz
==> Caveats
The "examples" directory has been installed to:
  /usr/local/share/awscli/examples

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/awscli/1.11.190: 4,124 files, 36.1MB