Tolga Talks Tech is a weekly video series in which Onica’s CTO Tolga Tarhan tackles technical topics related to AWS and cloud computing. This week Tolga talks about immutable infrastructure with Onica’s Lead DevOps Engineer, William Kray.  For more videos in this series, click here.

What is immutable infrastructure?

Immutable infrastructure is infrastructure defined by code. Typically, what you’ll see is that any virtual machine images that you use are pre-baked as virtual machine templates or AMIs.

How do we build those images and get them intro production?

The best way to get those kinds of things into production is by using a CI/CD pipeline. When you use CI/CD pipelines, your code is the driving factor in deployment. So, when you push code to a git repository, that push will trigger events that will cause a job to run that actually deploys resources, and then deploys your code on top of those resources into your different environments.

So when we want to patch these instances, we don’t patch them we just build them again?

Yes, you can rebuild the AMIs then just redeploy. This also makes it easy to update a version and rollback if there’s a change to the environment that was not expected. All you have to do is redeploy an older version of the artefacts that you’re deploying, or you just push out new changes. It makes streamlining the whole process faster and simpler to manage.

What are some of the tools we use to build these pipelines?

A lot of the tools we use revolve around AWS’ infrastructure. We use CloudFormation to deploy resources such as EC2 instances, load balancers etc. We like to leverage CodeDeploy a lot for deploying code artefacts. That’s a really handy tool because it can basically run any script that you throw at it; it can be used to deploy applications, or it to make configuration changes to a firewall or proxy you have. Other tools that we can use are AWS’ CodePipeline and CodeBuild to build the artefacts and push those artefacts through the various steps required to deploy them. And then of course everyone’s pretty familiar with Jenkins, there’s also Microsoft’s version which is VSTS and TFS, and all of those tools basically are the glue in between all those deployment steps to make it really flexible to do whatever you need to do to push out your code.

 

Ideal cloud environments are stateless and immutable — allowing the rebuilding of the production environment without harming existing environments and with nearly zero downtime. Want to learn more about immutable infrastructure and other cloud computing best practices? Read our 6 Principles that Drive Cloud Computing Success article.
Tolga Tarhan

About Tolga Tarhan

As Onica’s Chief Technology Officer, Tolga Tarhan leads the technological vision of the company by pushing innovation and driving strategy for our product development and service offerings. With nearly two decades of experience leading and hands-on software development, his cross-functional expertise across different technology areas gives him unique insight into the best approaches for building complex systems and applications. In addition to facilitating technology on the executive level, Tolga has also successfully led numerous deployments involving web-based, mobile, Internet of Things (IoT), and real-time telecommunications applications. His passion for IoT in particular has driven Onica’s achievement of the AWS IoT competency, and he continues to show thought leadership in the field through his extensive speaking engagements at AWS events and educational groups across North America. Tolga also holds an MBA from Pepperdine University and helps customers strategize beyond technology solutions to improve their businesses and grow their bottom line.