Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created May 9, 2018 16:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolfeidau/081646956cc2a3347d56eaa806d2fe1e to your computer and use it in GitHub Desktop.
Save wolfeidau/081646956cc2a3347d56eaa806d2fe1e to your computer and use it in GitHub Desktop.
Install sam from scratch on osx with homebrew.

To setup sam local on an OSX system which is using homebrew.

Check if pip installed.

pip --version

If this returns.

$ pip --version
-bash: pip: command not found

Install python2, as this is currently required by sam-local.

$ brew install python@2

Install sam using pip2 which is the pip used by your homebrew python2 installation.

pip2 install aws-sam-cli

Now run sam.

$ sam --version
SAM CLI, version 0.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment