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.

2 thoughts on “Elastic Beanstalk – Setting up ‘eb’ Command Line Tools

  1. saranjeet singh says:

    Hi,

    I was using below link to install eb.
    http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-getting-set-up.html

    But I am getting below error while type eb –help
    Traceback (most recent call last):
    File “/usr/local/bin/eb”, line 9, in
    load_entry_point(‘awsebcli==3.2.2’, ‘console_scripts’, ‘eb’)()
    File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 2472, in load_entry_point
    return ep.load()
    File “/usr/lib/python2.6/site-packages/pkg_resources.py”, line 2186, in load
    [‘__name__’])
    File “/usr/local/lib/python2.6/site-packages/ebcli/core/ebcore.py”, line 58, in
    from ..controllers.setenv import SetEnvController
    File “/usr/local/lib/python2.6/site-packages/ebcli/controllers/setenv.py”, line 17, in
    from ..operations import envvarops, commonops
    File “/usr/local/lib/python2.6/site-packages/ebcli/operations/envvarops.py”, line 30
    vars = {n[‘OptionName’]: n[‘Value’] for n in settings
    ^
    SyntaxError: invalid syntax

    Could you please assist me.

    • That looks like something you might want to post on the Amazon Web Services support boards. I really can’t dig into debugging that for you right now. Good luck!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s