2

I have a ruby application developed on a Nitrous IO box that I'm trying to deploy to an existing AWS Elastic Beanstalk application. Git is configured on my Nitrous box and running "git status" returns:

# On branch master
# Your branch is up-to-date with 'origin/master'.
#
nothing to commit, working directory clean

I also can run a "git push" and my code is pushed to github.

I've installed the Elastic Beanstalk Command Line Tool 2.6.2 package. Running "eb status" returns the proper information about my EB instance.

However running "git aws.push" returns:

git: 'aws.push' is not a git command.

Reading the AWS documentation it says I need to run AWSDevTools-RepositorySetup.sh but I can not locate this script on my Nitrous box. Where is this script located or is there some other way to configure git to push to AWS EB?

sz42
  • 23
  • 2

3 Answers3

1

AWSDevTools-RepositorySetup.sh is located in AWS Elastic Beanstalk Command Line Tool.

Just run this:

# I believe you remember where you placed the tool
$ find [PATH_TO_ELASTICBEANSTALK_CLI] -name AWSDevTools-RepositorySetup.sh
# If you don't remember
$ sudo find / -name AWSDevTools-RepositorySetup.sh

In my case it is in $HOME, so I got:

$ find ~/AWS-ElasticBeanstalk-CLI-2.6.3/ -name AWSDevTools-RepositorySetup.sh
AWS-ElasticBeanstalk-CLI-2.6.3/AWSDevTools/Linux/AWSDevTools-RepositorySetup.sh

Check this answer out too: setup AWSDevTools-RepositorySetup.sh in git repository on ubuntu

PS Don't forget to change to your repo directory before you run AWSDevTools-RepositorySetup.sh

Community
  • 1
  • 1
Roman Newaza
  • 11,405
  • 11
  • 58
  • 89
  • Sorry this did not help - I can not locate AWSDevTools-RepositorySetup.sh on my Nitrous box. I do not have root access so the find command you sent gets an error. I did find a directory called ~/.parts/packages/elasticbeanstalk/2.6.2 but it does not contain the script (the command find ~/.parts/packages/elasticbeanstalk/ -name AWSDevTools-RepositorySetup.sh returns nothing) – sz42 Jul 25 '14 at 16:30
  • But you said you installed Elastic Beanstalk Command Line Tool 2.6.2 package. Maybe you did that on your local machine? In this case you need to install it on your Server. – Roman Newaza Jul 29 '14 at 03:33
0

Please try this.

$ cd ~
$ wget "https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.6.3.zip"
$ unzip AWS-ElasticBeanstalk-CLI-2.6.3.zip
$ cd workspace/your_app
$ sh ~/AWS-ElasticBeanstalk-CLI-2.6.3/AWSDevTools/Linux/AWSDevTools-RepositorySetup.sh
$ git aws.push
kwgch
  • 1
  • 1
0

AWSDevTools-RepositorySetup.sh was not previously included in the 2.6.2 package of Autoparts, but it can now be found when installing the latest version (2.6.3).

Run $ parts update to ensure the package manager is updated, and $ parts install elasticbeakstalk to install the latest version.

Once you have AWS Elastic Beanstalk 2.6.3 installed, you will need to run the repository setup tool in each git repository:

$ AWSDevTools-RepositorySetup.sh

From there you can run the AWS git commands:

$ git aws.config
$ git aws.push
Greg
  • 1,589
  • 9
  • 14
  • 1
    Upgrading to the 2.6.2 package resolved this issue, however I also had to install the **boto** package in order to successfully run **git aws.push**. To install **boto** on Nitrous run the following: – sz42 Jul 31 '14 at 22:04
  • 1
    **pip install virtualenv**; **virtualenv venv**; **source venv/bin/activate**; **pip install boto** – sz42 Jul 31 '14 at 22:07