BUILDING A SIMPLE AND EASY PIPELINE USING AWS CODE PIPELINE.
CI/CD means continous integration and continous delivery. They can be referred to as the continous developement or continous software development. This is a practice that can be used to automate the software delivery process in the software development lifecycle.
CI/CD has become a very important aspect in the world of software development and the way we release new softwares into the world.
Understanding the software development lifecycle and its stages is very important as a cloud/devops engineer. This article will detail how to create a pipeline for the SDLC using aws tools.
AWS TOOLS USED TO CREATE THE PIPELINE.
- S3: Amazon S3 or simple storage service is a service that provides object storage through a web service interface. It is highly scalable and reliable. The versioning function will be used to save versions of the code another aws tool thatcan be used for this codecommit.
- ELASTIC BEANSTALK: Elastic beanstalk is a platform as service that creates an environment that you can use to deploy your code with everything the code needs built into it. It also provides capacity provisioning, autoscaling, load balancing.
- CODE PIPELINE: AWS Codepipeline is a continuous delivery service that can be used for fast and reliable application updates.
STEP1: CREATE A SOURCE USING S3 BUCKET.
Navigate into the aws management console and create an s3 bucket, set the bucket to provision versioning and upload your sample code into the bucket.
STEP2: Create an environment for your bucket using elastic beanstalk.
Navigate into the management console and create an enviroment using elastic beanstalk; select the type of environment and the name .
Using Elastic beanstalk you can either configure an already exisiting tech stack that is already launched or you can select the tech stack you will like to use in your enviroment.
You will need to create or use an existing service role that will provide your environment the necessary access and permissions needed for your Ec2 and the key pair you will like to use in order to ssh into the instance that elastic beanstalk will provison for you.
- Depending on what you will like to include in your enviornment at this next stage you can set up all the necessary details.
After creating the enviornment if successful the you will see an environment with a healthy status.
STEP3: Creating the pipeline using codepipeline.
Aws codepipeline is a continous delivery service that is used for fast and reliable application updates.
Select the pipeline name and the iam service role you would like to use for the pipeline.
Then you select the source, the build stage if you have one configured and then the deployment environment to deploy your pipeline.
ADDING THE SOURCE STAGE: This is where you are integrating your code into the pipeline.
ADDING THE DEPLOYEMENT STAGE:
DEPLOYING THE PIPELIN
Congratulations you have deployed your first pipeline!!!