circleci-beanstalk-example
circleci-beanstalk-example copied to clipboard
CircleCI 2.0 AWS Beanstalk example to deploy Node app
CircleCI 2.0 Elastic Beanstalk Example
This example shows how to deploy to AWS Elastic Beanstalk (EBS) using CircleCI 2.0.
Overview
- Continuous Integration of Node app to Beanstalk using CircleCI 2.0
- Multiple Environment deployment:
master
anddevelop
to deploy to production and staging Beanstalk environment - Easily appliable for other platforms/languages
- Support Bitbucket or Github
Requirements
- The environments in Beanstalk need to be setup already, please follow this guide provided by AWS on Creating an AWS Elastic Beanstalk Environment
- API credentials for your AWS account, see Creating an AWS Elastic Beanstalk Environment
- Github or Bitbucket account
- CircleCI linked to Github or Bitbucket
Usage
- Connect CircleCI to your Git
- Spin up your Beanstalk environment either using the AWS Management Console or the AWS CLI
- Replace the environment name in
.circleci/config.yml
with your Beanstalk environment name - Replace the environment and application name in
.elasticbeanstalk/config.yml
- Change the platform (Node, PHP, ...) and AWS Region in
.elasticbeanstalk/config.yml
if needed - Push to your master branch to trigger the CircleCI build
For more details see the tutorial below.
Tutorial
KevinGoedecke.me - How to deploy to Beanstalk using CircleCI 2.0