• 16 Mar 2019

    Using S3 bucket as Terraform Remote Backend

    If you are familiar with IaC then you must have heard about terraform, right? Terraform is an awesome tool letting you to create, destroy, provision and configure your infrastructure as code. When terraform is instructed to run against some of its configuration then it creates a state file in the developer machine. This state file contains infrastructure configuration as applied by Terraform. But if you want to work on the terraform codebase as a team allowing terraform to create state file locally then every member will be in a great dilemma.

  • 19 Aug 2018

    Securing Wordpress Application Secret and Managing Jenkins Pipeline with EC2 Parameter Store

    After installing Wordpress when you setup application it will create a file named wp-config.php in the root of the source code. This file contains sensitive informations like database url, username, password and database name. We need mask those values with fake one and replace them with original one before build process. In this post, I will discuss on keeping these values secret with EC2 parameter store and using them in Jenkins pipeline.

  • 27 Jul 2018

    Infrastructure provisioning and configuration management with AWS, Terraform and Ansible

    Regularly a DevOps has to perform different types of server provisioning, configuration with different architectures for deployment testing, applying and testing IaaC modules or for building dev/stage environment. Terraform is such a tool which helps us to build & manage infrastructure using different cloud vendor API. Ansible is another tool to automate infrastructure configuration changes. In this post, I will discuss on using Terraform and Ansible together to bring infrastructure in desired state quickly.

  • 21 Jul 2018

    Managing Docker Secret with AWS Parameter Store

    We write Dockerfile for packaging our application into Docker images. Dockerfile is a set of plaintext instructions with predeclared environment variables. These environment variable contains sensitive information such as username, password, remote database URL, bastion host IP etc. When secret variables will be visible in source code repository then code repository members can see them easily. Obviosuly, we need to tackle this situation! In this post, I will discuss on keeping these values secret in AWS, fetching and using them in docker runtime.

  • 05 Jul 2018

    Integrating Jenkins Pipeline with AWS CodeBuild

    Jenkins is a task server which is highly used in performing CI/CD jobs. AWS CodeBuild is a service for performing source code compilation, build, testing and artifact generation for deployment. We can integrate these two services to scale our build, reduce build time, minimize billing and exploit the combined power of CodeBuild and Jenkins.

  • 07 Jun 2018

    Performing application build and remote deployment with Travis CI

    Travis CI is another popular CI/CD service which is free for open source projects with limited functionalities. In the free version, unlike Jenkins, Travis CI builds application in a dockerized environment whose underlying architecture can be seen in Travis build log. Travis CI comes with single YAML configuration file where we need specify parameters and configure them to perform successful build and remote deployment. In this topic I will be focusing only on writing Travis CI/CD configuration not signing up Travis CI and integrating it with github source code repository.

  • 22 Apr 2018

    Sending AWS RDS log files to S3 bucket

    Using AWS RDS has added ease of database infrastructure setup and administration. Still as an Ops engineer you need to manage the database log files and archive them to storage. In this post I will discuss backing up RDS logfile to S3 bucket. This post is written not focusing on tight AWS security principles (such as not using AWS CLI key in EC2 instances) rather focused on general ideas to make the backup process succeed.

  • 14 Apr 2018

    Building Automated Docker Image in Docker Hub with Jenkins and Packer

    Docker is a tool for building application image and packer is a tool for creating golden image from single source configuration. So docker images can be built from both docker and packer. If you bake them with Jenkins then application image creation and uploading process to docker image repository (e.g. Docker Hub, ECR) will be automated. In this article, I have provided an infrastructure-as-code example to demonstrate the idea.

  • 10 Mar 2018

    Continuous Integration with Jenkins Pipeline - Part 4

    In previous post, I have discussed on running target app in local machine and setting up Jenkins slave SSH key in GitHub. In this post I will discuss on creating Jenkins pipeline and GitHub webhook to automate the CI/CD process.

  • 04 Mar 2018

    Automated Tomcat Installation with Ansible

    In this post, I will discuss on setting up tomcat application server in automated way using ansible. Ansible makes it easier for us to remotely manage configuration of different servers.

  • Older articles