Code Monkey home page Code Monkey logo

doc-pipeline-node's Introduction

How to Deploy a Node Project to AWS using Pipeline, Github, and Elastic Beanstalk

Step 1: Write a Node App

Make sure it runs locally, and deploy it to Github.

Step 2: Create an Elastic Beanstalk App

It's okay to initialize with sample code for now. We will be overwriting it with the Pipeline later.

Step 3: Create a Pipeline

Go to the AWS console and click the "Create Pipeline" button.

Important fields to fill out:

Pipeline name:

Pick something that makes sense. You will be living with it.

Service Role:

This will determine the permissions and access for your Pipeline.

Pick a role that makes sense for your project.

For our purposes, we created a new role which automatically grants default privileges.

Pipeline Settings Screenshot

Source

Your Github repo.

You can log in with your Github credentials and select your repo. You can also customize which branch you want Pipeline to deploy.

We recommend using your master branch.

Code Detection Options

Go with Github webhooks.

Source Screenshot

Build

Create build using AWS Code Build

Config section

CodeBuild Config Screenshot

Source section

CodeBuild Source Screenshot

Environment section

CodeBuild Environment Screenshot CodeBuild Environment Screenshot

Specification section

CodeBuild Specification Screenshot

Artifacts section

CodeBuild Artifact Screenshot

Logs section

CodeBuild Artifact Screenshot

Create

CodeBuild Artifact Screenshot

Add Build Stage to Pipeline

Add Stage

Add StageScreenshot

Name Your Stage

Add StageScreenshot

Add Action Group

Add StageScreenshot

Name Your Action

Add StageScreenshot

Enter Action Parameters

Add StageScreenshot

Click Done

Add StageScreenshot

Your Done

Add StageScreenshot

Provider

We are going to choose Elastic Beanstalk and the EB app we made in step 2.

Deploy Screenshot

Step 4: Create Pipeline

Click the Create Pipeline button. You're done!

Need proof? Here's a link to our deployed "app."

Success

Build Success One Build Success Two

Troubleshooting

For most issues, you can find out where it went wrong by checking the checkmarks on the right. If the error is on the source, the first checkmark will be red. If it's on the deployment, the second checkmark will be red.

In those situations, you can either click the "Details" link in that pane for more info on the error, or you can go to the original logs at the respective service.

Team

Jhia Turner Roger Huba David Marchante Kent Ketter

doc-pipeline-node's People

Contributors

paula9t9 avatar dmarchante avatar

Watchers

James Cloos 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.