All Projects → EvidentSolutions → gradle-beanstalk-plugin

EvidentSolutions / gradle-beanstalk-plugin

Licence: MIT license
Gradle plugin for deploying WARs to AWS Elastic Beanstalk.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to gradle-beanstalk-plugin

django-eb-sqs-worker
Django Background Tasks for Amazon Elastic Beanstalk
Stars: ✭ 27 (-22.86%)
Mutual labels:  elasticbeanstalk
django-aws-template
Opinionated Django Project Template for AWS deployment
Stars: ✭ 36 (+2.86%)
Mutual labels:  elasticbeanstalk
phoenix-webpack-docker-elastic
Simple templates for Phoenix/Webpack/Docker/Elastic Beanstalk setup
Stars: ✭ 33 (-5.71%)
Mutual labels:  elasticbeanstalk
aws-elastic-beanstalk-cli
The EB CLI is a command line interface for Elastic Beanstalk that provides interactive commands that simplify creating, updating and monitoring environments from a local repository.
Stars: ✭ 102 (+191.43%)
Mutual labels:  elasticbeanstalk
circleci-beanstalk-example
CircleCI 2.0 AWS Beanstalk example to deploy Node app
Stars: ✭ 34 (-2.86%)
Mutual labels:  elasticbeanstalk
keynote-react-ssr
[AWS Community Day 2020] React.js SSR on AWS Demo
Stars: ✭ 54 (+54.29%)
Mutual labels:  elasticbeanstalk
django-boilerplate-3.6.1
Django served by Gunicorn running behind Nginx reverse proxy. Deploy to AWS Elastic Beanstalk with Fabric3!
Stars: ✭ 13 (-62.86%)
Mutual labels:  elasticbeanstalk
elastic-beanstalk-nginx-uwsgi-django
A Django sample app running with uWSGI and Nginx on AWS Elastic Beanstalk.
Stars: ✭ 87 (+148.57%)
Mutual labels:  elasticbeanstalk
laravel-elasticbeanstalk-cron
Ensure one instance within an EB environment is running Laravel's Scheduler
Stars: ✭ 55 (+57.14%)
Mutual labels:  elasticbeanstalk
actions-aws-eb
Elastic beanstalk cli custom action
Stars: ✭ 39 (+11.43%)
Mutual labels:  elasticbeanstalk

gradle-beanstalk-plugin

Gradle plugin for deploying applications to AWS Elastic Beanstalk.

Usage

First, create ~/.aws/credentials with a profile for your app:

[my-profile]
aws_access_key_id=YOUR_ACCESS_KEY_ID
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY

Or set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.

Next, configure some deployments in your build.gradle:

plugins {
    id "fi.evident.beanstalk" version "0.3.2"
}

// beanstalk requires unique version number for each uploaded archive
// SNAPSHOT will be replaced with 'yyyyMMdd.HHmms' label
version = '0.1-SNAPSHOT'

beanstalk {
    profile = 'my-profile' // Only required if using .aws/credentials
    s3Endpoint = "s3-eu-west-1.amazonaws.com"
    beanstalkEndpoint = "elasticbeanstalk.eu-west-1.amazonaws.com"

    deployments {
        // Example to deploy to the same env
        staging {
            file = tasks.war
            application = 'my-app'
            environment = 'my-app-staging'
        }
        // Example to create a new env for each version (to use URL swapping for blue/green deployment)
        production {
            file = tasks.productionWar
            application = 'my-app'
            environment = "my-app-${project.version.replaceAll('\\.', '-')}"
            template = 'default' // Saved configuration name to use to create each env
        }
        // Example to upload a new version to an application without deploying it (to be able to
        //  manually pick which environment to use)
        upload {
            file = tasks.war
            application = 'my-app'
        }
    }
}

Finally, deploy by running gradle deploy<deployment-name>, e.g. gradle deployStaging.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].