What is GitOps & How it Works | Practical GitOps Demo with Terraform + AWS Infra + CI/CD With AWS CodePipeline + AWS CodeCommit (Git Source) + AWS CodeBuild (CI/CD)
Learn:
What is GitOps?
What is Infrastructure as Code?
How Infrastructure as Code Works?
How GitOps is Useful for Infrastructure as Code?
How does GitOps merge request Flow work?
Continuous Integration and Continuous Deployment (CI/CD) for GitOps
Benefits of GitOps
How to achieve GitOps goal via Terraform in AWS Infra
(Detailed Terraform code explanation and full end-to-end practical hands-on tutorial)

#gitops #devops #learnwithsandip

▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
0:00 – Intro
0:09 – What is GitOps?
0:28 – What is Infrastructure as Code?
1:08 – What are the Benefits of Infrastructure as Code?
1:42 – How does infrastructure as Code Works?
2:17 – Why use GitOps for Infrastructure As Code?
2:47 – GitOps Merge Request Flow
3:22 – CI Pipeline
3:43 – CD Pipeline
4:07 – Push Based Deployment & Pull Based Deployment
4:47 – Benefits of GitOps
5:51 – Practical GitOps
6:00 – Terraform Source Code Explanation
8:23 – Buildspec.yml file explanation
9:45 – Terraform init, validate, plan and apply
15:09 – GitOps Merge Request Flow Demo
22:27 – Wrap up

GitOps is an operational framework that takes DevOps best practices used for application development such as version control, collaboration, compliance, and CI/CD, and applies them to infrastructure automation.

It is a way of implementing Continuous Deployment for cloud-native applications. It focuses on a developer-centric experience when operating infrastructure, by using tools developers are already familiar with, including Git and Continuous Deployment tools.

The core idea of GitOps is having a Git repository that always contains declarative descriptions of the infrastructure currently desired in the production environment and an automated process to make the production environment match the described state in the repository. If you want to deploy a new application or update an existing one, you only need to update the repository – the automated process handles everything else. It’s like having cruise control for managing your applications in production.

GitOps = IaC + MRs + CI/CD

Infrastructure as Code(IaC): GitOps uses a Git repository as the single source of truth for infrastructure definitions. Git is an open-source version control system that tracks code management changes, and a Git repository is a .git folder in a project that tracks all changes made to files in a project over time. Infrastructure as code (IaC) is the practice of keeping all infrastructure configurations stored as code. The actual desired state may or maybe not be stored as code (e.g., number of replicas or pods).

Merge Requests (MRs): GitOps uses merge requests (MRs) as the change mechanism for all infrastructure updates. The MR is where teams can collaborate via reviews and comments and where formal approvals take place. A merge commits to your main (or trunk) branch and serves as an audit log.

Continuous Integration & Continuous Deployment(CI/CD): GitOps automates infrastructure updates using a Git workflow with continuous integration and continuous delivery (CI/CD). When new code is merged, the CI/CD pipeline enacts the change in the environment. Any configuration drift, such as manual changes or errors, is overwritten by GitOps automation so the environment converges on the desired state defined in Git. GitLab uses CI/CD pipelines to manage and implement GitOps automation, but other forms of automation, such as definitions operators, can be used as well.

▬▬▬▬▬▬ Useful Links 🔗🚀 ▬▬▬▬▬▬
Terraform Full Course: ► https://youtu.be/EJ3N-hhiWv0
AWS CodeBuild Full Course: ► https://youtu.be/rxZniDstaa4
AWS CodeCommit: ► https://youtu.be/0649R_Fk9_E
CI/CD With Terraform ► https://youtu.be/CjjSBWMwOzA


▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
MY SITE ► https://bit.ly/3rz82SQ
INSTAGRAM ► https://bit.ly/3iFWfy8
TWITTER ► https://bit.ly/3i6lkDs
LINKEDIN ► https://bit.ly/3rAeCsm


Join this channel to get access to perks:
https://www.youtube.com/channel/UClA0CospcdBGppfVUx99WwQ/join

Legal Notice:
AWS, GitLab, Jenkins, Terraform logos, etc are trademarks or registered trademarks of respective companies in the United States and/or other countries. These companies and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by AWS, GitLab, Terraform, or HashiCorp, etc.

Sandip Das

Teaching People Simplified Cloud & DevOps topics 😇

I create new video tutorials every week, which mainly includes Cloud, DevOps, Programming Topics.
Subscribe and activate bell notification so that you don't miss new videos 🔔

I am an AWS Hero 🦸‍♂️ and have 6x AWS Certification 💪
Visit ► https://learn.sandipdas.in

Tutorials Covered:
- Python
- Ansible
- Terraform
- Docker
- Kubernetes
- Shell Scripting
- AWS Fundamentals
- AWS ECS
- AWS EKS
- AWS VPC
- AWS CodeCommit
- AWS CodeBuild
- AWS CodeDeploy
- AWS CodePipeline
- AWS LightSail
- & more!

Upcoming:
⦿ Python With Cloud SDKs (boto3) & IAC (Pulumi)
⦿ DevOps With Python
⦿ Go Basics
⦿ Go Advance
⦿ Go with Cloud SDKs
⦿ DevOps With GO
⦿ Kubernetes Full Course
⦿ Terraform + EKS
⦿ Pulumi + Kubernetes
⦿ Pulumi + EKS
⦿ All Kind of Container Engines

View all posts

Add comment

Your email address will not be published. Required fields are marked *

Sandip Das

Teaching People Simplified Cloud & DevOps topics 😇

I create new video tutorials every week, which mainly includes Cloud, DevOps, Programming Topics.
Subscribe and activate bell notification so that you don't miss new videos 🔔

I am an AWS Hero 🦸‍♂️ and have 6x AWS Certification 💪
Visit ► https://learn.sandipdas.in

Tutorials Covered:
- Python
- Ansible
- Terraform
- Docker
- Kubernetes
- Shell Scripting
- AWS Fundamentals
- AWS ECS
- AWS EKS
- AWS VPC
- AWS CodeCommit
- AWS CodeBuild
- AWS CodeDeploy
- AWS CodePipeline
- AWS LightSail
- & more!

Upcoming:
⦿ Python With Cloud SDKs (boto3) & IAC (Pulumi)
⦿ DevOps With Python
⦿ Go Basics
⦿ Go Advance
⦿ Go with Cloud SDKs
⦿ DevOps With GO
⦿ Kubernetes Full Course
⦿ Terraform + EKS
⦿ Pulumi + Kubernetes
⦿ Pulumi + EKS
⦿ All Kind of Container Engines