Containers revolutionized the approach to software evelopment in modern times. They are key component of microservices - software development technique. In this tutorial, I’m going to demonstrate to you in a brief on how to build, manage and operate containers in the AWS cloud.
Finally, it’s time to demonstrate our CI/CD environment in a practice. If you successfully configured the CodePipeline from the last post, you can see that it automatically build the RPM package and deploy it on our server. This is the very simplified scenario because in the real world you will add more stages mainly for testing purposes. Tests are very important in CI/CD and are probably the most challenging part of this configuration. However, for the purpose of our demo, the current setup is sufficient and should demonstrate to you the overall idea and workflow.
When our code is ready, the EC2 instance is up and running… The code is automatically built by CodeCommit - It’s a time to get our hands dirty and configure CodePipeline!
It’s time to complete our CI/CD environment. So far we created our build repository with source code and build the project. Now it’s time to automatically deploy our software into the server. There are many products available on the market for Continous Delivery (for example Ansible, Puppet, Chef etc.). I’d like to show you another one, CodeDeploy from AWS services suite. At first glance, you can think that it’s too much complicated to simply deploy our RPM using CodeDeploy. However, I’d like to demonstrate for you the overall idea and logic of this tool as well as some of the advantages, like good integration with CodePipeline. This last one will connect all of our build components into one project to automate our CI/CD environment. I hope, I interested you in this topic. So let’s get started!
In this post, I’m going to show you how to automate your build process using the fantastic tool called CodeBuild. It’s very easy to set up the new build process. It’s not needed to set up your whole infrastructure (like provision Linux server, install and configure Jenkins etc.). AWS is managing the whole infrastructure and you can focus solely on your tasks. Finally, you pay only per builds which are very cheap! I hope this convinces you to use CodeBuild, so let’s get started!