LoginSignup
0
0

More than 3 years have passed since last update.

AWS SAM CLIをLinux、macOSにインストールする

Last updated at Posted at 2020-11-28

AWS SAM CLI

準備

※参考:Installing the AWS SAM CLI on macOS
※参考:AWS CLIをmacOSにインストールする

  1. AWSアカウントを用意する。
  2. Administrator権限を持つIAMユーザーを用意する。
  3. IAMユーザーのアクセスキー、シークレットアクセスキーを払い出す。
  4. credentialsファイル、configファイルを作成する。
  5. Dockerをインストールする。
  6. Homebrewをインストールする。
  7. SAM CLIをインストールする。

共通

  1. Linux、WSL2、macOSで次のコマンドを実行し、brewをインストールする。

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    

Linux、WSL2にインストール

  1. Ubuntu on WSL2`では、4行目のechoコマンドを実行すれば良い。

    test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
    test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
    test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
    echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
    

共通

  1. brewコマンドがインストールされていることを確認する。

    brew --version
    
  2. 次のコマンドを実行する。

    % brew tap aws/tap
    % brew install aws-sam-cli
    
  3. インストールされたことを確認する。

    % sam --version
    
    SAM CLI, version 0.47.0
    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0