How to setup CD for AWS Elastic Beanstalk using CodePipeline?
As developers, we like to automate boring, repitative tasks like uploading your code to the server... So let's do it!

Search for a command to run...
As developers, we like to automate boring, repitative tasks like uploading your code to the server... So let's do it!

No comments yet. Be the first to comment.
In this series, we aim at understanding more about AWS, Elastic Beanstalk and Code Pipleline by deploying a server in the cheapest way possible. Most of the services we use will be free tier eligible.
A good way to get started without spending a lot of money by utilizing the free tier
and It's causing you frustration.

Embracing the Simplicity of All-Powerful JavaScript

Exploring the Pros and Cons of Monorepos, and introducing NX.dev

A Developer's Retrospective on a Year of Learning, Challenges

That programmer urge to never touch the mouse

So, Now you have your code running on AWS. It's secure and cheap, but you still have to upload your code in zip files. How archaic😱!! Let's fix this in this article using another awesome AWS Service called the CodePipeline. This is gonna be a short one guys.
This article is a sequel to the previous one called How to setup a https server in elastic beanstalk. It's not required to read the previous one, but I would recommend doing so before reading this.
It is an AWS Service that provides fully managed, continous devlivery that helps you automate the release pipelines for fast and reliable application and infrastructure. You can automate various phases like
It supports various source code sources, we'll be using github but there is very little difference in how to use any other service if you need to.
Go to code pipeline option in your console and press "Create New Pipeline".

Enter the name and leave everything as default. Click "Next"

In the source stage, select the provider and fill in the details. We'll be using Github (Version 2) here.

If you require a build stage, configure this step. We'll be skipping this stage.

In the deploy stage, select AWS Elastic Beanstalk and fill other details. Click "Next" and review everything.
Once you submit, your pipeline will be active. Now, as soon as you push code to github, it'll reflect in your deployment very soon.
If you need github readme badges, refer to [this article] (https://medium.com/swlh/aws-ci-cd-dynamic-build-badge-display-on-github-1e9a3b76db5a) for how to set it up. You can also use this npm library for monitoring the status.