Elastic Beanstalk – Setting up ‘eb’ Command Line Tools

  1. Download the command line tools.
  2. Unzip/tar and place the directory in a location that you want to keep the tools in. Usually something like etc/AWStools.
  3. Open the .bash_profile and add the following line to it.

    export PATH=$PATH:/Users/adronhall/Coderz/AWS-ElasticBeanstalk-CLI-2.5.1/eb/macosx/python2.7/
    
  4. Restart the terminal/bash and type eb, eb –help or eb status. You’ll see these results based on what you’ve typed.

    $ eb
    Error: too few arguments
    usage: eb {COMMAND} [options]
    Try eb --help for more information.
    
    $ eb status
    The configuration file, "config", cannot be found. Use the "init" command to create it.
    
    $ eb --help
    usage: eb {COMMAND} [options]
    
    AWS Elastic Beanstalk Command Line Interface v2.5.1
    
    positional arguments:
      COMMAND               init, branch, start, status, update, stop, delete,
                            logs, events, push
      SUBCOMMAND
    

    …etc., etc., etc., etc

  5. Now enjoy the use of the Amazon Web Services Elastic Beanstalk CLI Tool.