Giter Club home page Giter Club logo

eb-deploy's Introduction

eb-deploy

A script to deploy to AWS Elastic Beanstalk.

Usage

eb-deploy needs the following information:

  • WAR file location
  • Build number
  • Elastic Beanstalk IAM profile
  • Elastic Beanstalk Application
  • Elastic Beanstalk Environment
  • AWS key
  • AWS secret

Each one of them can be passed either as options to the command line or be present as environment variables.

eb-deploy options
  
Deploy a war file to AWS Elastic Beanstalk. You can pass params as options or 
have them be present as environment variables mentioned under the name specified for that option.
  
   -w      $APP_WAR                    | war file location of the form /var/app/target/scala-2.10/app_2.10-0.1
   -v      $CI_BUILD_NUMBER            | used to create full war file : $APP_WAR.$CI_BUILD_NUMBER.war
   -k      $APP_AWS_ACCESS_KEY         | AWS Key
   -s      $APP_AWS_SECRET_KEY         | AWS Secret
   -p      $APP_EB_InstanceProfileName | Elastic Beanstalk IAM Profile
   -a      $APP_EB_ApplicationName     | Elastic Beanstalk Application name
   -e      $APP_EB_EnvironmentName     | Elastic Beanstalk Environment name
   

Please note that that the WAR file location and Build Number are passed as such: if the war file is at /var/app/target/scala-2.10/app_2.10-0.1.213.war then "WAR file location" should be /var/app/target/scala-2.10/app_2.10-0.1 and "build number" should be 213. eb-deploy will then combine the two and suffix it with .war to create the far file name. This is a bit clunky and should be improved :(

Got something other than a war file?

Although eb-deploy deploys war files, it can be adapted to deploy any other kind of archive. If there is interest, file an issue and I'll get to it. Or better still, the code should be pretty readable, improve it and send in a pull request.

eb-deploy's People

Contributors

ayush avatar

Watchers

James Cloos avatar Tim Khoury avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.