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.[sourcecode language=”bash”]export PATH=$PATH:/Users/adronhall/Coderz/AWS-ElasticBeanstalk-CLI-2.5.1/eb/macosx/python2.7/[/sourcecode]
  4. Restart the terminal/bash and type eb, eb –help or eb status. You’ll see these results based on what you’ve typed.[sourcecode language=”bash”]$ 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[/sourcecode]

    …etc., etc., etc., etc

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

2 Comments

  1. 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.

This site uses Akismet to reduce spam. Learn how your comment data is processed.