Search code examples
gitamazon-web-servicesnitrousioamazon-elastic-beanstalk

How do I configure git on a nitrous io box to deploy to AWS Elastic Beanstalk?


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?


Solution

  • 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