Image for post
Image for post
High availability architecture

In this article, we will discuss how to :

Create High Availability Architecture with AWS CLI.

The architecture includes-

  • Webserver configured on EC2 Instance
  • Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
  • Static objects used in code such as pictures stored in S3
  • Setting up a Content Delivery Network using CloudFront and using the origin domain as an S3 bucket.
  • Finally, place the Cloud Front URL on the web app code for security and low latency.

Assuming that we already have a key pair called taskKey and security group with id sg-02acd13d993724f96

To know how it is done, feel free to check out this article:

So let's begin ✨

Step1:Creating an EC2 instance

aws ec2 run-instances --image-id ami-03cfb5e1fb4fac428 --count 1 --instance-type t2.micro …

Image for post
Image for post

Alphabet Inc. CEO Sundar Pichai said in an interview at the World Economic Forum in Davos, Switzerland —

AI is one of the most profound things we’re working on as humanity. It’s more profound than fire or electricity

Let me tell you some of the mind-boggling things google has developed using AI/ML:

🎵Song stuck in your head? Just hum to search

Starting today, you can hum, whistle, or sing a melody to Google to solve your earworm. After you’re finished humming, our machine learning algorithm helps identify potential song matches. And don’t worry, you don’t need a perfect pitch to use this feature. Google shows us the most likely options based on the tune. …


Image for post
Image for post
AWS CLI: A Beginners Guide

A quick introduction about AWS:

Amazon Web Services are shortly known as AWS. It is a subsidiary of Amazon providing on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered pay-as-you-go basis.

Three ways by which we can use AWS:

  1. AWS GUI Dashboard — It provides a graphical interface but it is limited to only certain functions. It can be accessed from here. Therefore we need to use the 2nd option.
  2. AWS CLI — It is the command-line interface. It provides us with a lot of flexibility.
  3. Automation tools like Terraform or Ansible.

Here in this article, we will discuss how to use AWS CLI. For that, we will have to download the software and install it. To know how to install it, refer to the below-given…


Image for post
Image for post
AWS-RDS | Minikube | Terraform | WordPress

Let’s start by knowing what will we be doing?

Deploying a WordPress website on local Kubernetes using Minikube and storing the data of WordPress inside Amazon RDS (Amazon Relational Database Service) by using Terraform as Infrastructure-as-a-Code.

Steps to perform the above task:

  • Create an AWS RDS Instance and all required dependencies.
  • Configure WordPress on local Kubernetes via Minikube.
  • Put the data of WordPress into AWS RDS (MySQL).
  • Then finally expose the WordPress pod/deployment to be accessible to the outside public.
  • All these steps should be done using Terraform as IaaC.

Let us start by setting up our environment:

Assuming that AWS CLI is installed and configured:

aws configure --profile  myprofile

The profile is set so that the Terraform code automatically picks up credentials from the local system without passing it through code. …


Image for post
Image for post
Kubernetes | Docker | Google Kubernetes Engine

Let's start by understanding what do we want:

  • Use GKE(Google Kubernetes Service) to deploy our WordPress site.
  • For the WordPress site, we will be using MySQL as our database. This will be provided by GCP.

Now what we should do to achieve the same:

  1. Create 2 different projects one for dev & other for Prod environment
  2. Create 2 VPC’s in 2 different regions, one in the Singapore region & other one in the US region.
  3. Establish VPC peering between the 2 VPC’s created above
  4. Create a multi-node Kubernetes cluster in Singapore VPC.
  5. Launch WordPress instance using docker image in above cluster’
  6. Create a LoadBalancer & expose it to port 80 to access WordPress.
  7. Launch MySQL DB instance in Prod VPC (US…


Image for post
Image for post
NETFLIX

Before:

Netflix was originally a DVD shipping business where they would send out DVDs of your chosen programs to you. This was going well until 2008 where they experienced a major database loss and for 3 days could not ship out any DVDs to their customers. That was when the senior management at Netflix realized that they had to shift from continuous vertical scaling which leads to single points of failure to a more reliable and scalable horizontal scaling system. They chose Amazon Web Services despite having Amazon as a competitor (Amazon has their own streaming service known as Amazon Prime) because AWS provided them with the greatest scaling capabilities and the biggest set of available features.


Image for post
Image for post

So what is BigData?

The term “big data” refers to data that is so large, fast, or complex. But this is a problem in the real-world, as to how to store such enormous data.

Ever wondered how does Facebook manages the number of users and provides a customized feed for each and every one. 🤔

Can you guess the number of Facebook users?

The app counts 2.45 billion users, as of Q3 2019.

So here it is. Let me give you some more facts about Facebook:

  • India is the single biggest Facebook market, with 269 million users (Q2 2019), followed by the US (183 million), and Indonesia (123…


Image for post
Image for post
Groovy | Jenkins | K8S | Docker GIF credits: Daksh Jain

Everybody is well aware of the SILOS between the Developer and Operations team. But I am here to present the solution to bridge the gap between the Developer and the Operations team. Let me break this complex line into simple terms for better understanding.

When the developer pushes code, they have to wait for the operations team for testing,monitoring and deployment. The the best way so as to not to depend upon the Operations team is to writes these jobs in his own way i.e.


Image for post
Image for post
The overview

The main motive of this article is to solve real-world problems. Can you imagine the loss of Instagram, not only loss but also hate of a million users it receives if it is even down by a few seconds, so nobody would want that, right?

It can be solved by using automatic rollout of updates using Kubernetes and managing the build triggers by Jenkins.

So let us get going, on how to solve this major issue in this easy way.

Our system requirements:

  • 2 RHEL 8 VM’s (1 as docker server with Jenkins configured and the other as docker client)
  • Jenkins(it should be updated as some plugins might not work with the outdated version)should have the following plugins…


Image for post
Image for post

One of the most needed requirement nowadays is to deploy your application in docker containers. But for that one needs to know docker and launch their application every time. So this becomes cumbersome. So in order to automate the process, we use Ansible as our automation tool.

So let us start with what is ansible:

Ansible: Ansible is the simplest solution for configuration management available. It’s designed to be minimal in nature, consistent, secure and highly reliable. Ansible relies on the most secure remote configuration management system available as its default transport layer: OpenSSH.

Tools and software required:

  1. 2 RHEL8 as our…

About

Shirsha Datta

I am a DevOps Enthusiast and recently taken to Cloud Computing. Learning Flutter App Development currently. In my free time I engage in competitive coding.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store