πŸš€ DevOps Learning Week 2 – Mastering Git, AWS, Ansible & Terraform

Anurag PandaAnurag Panda
3 min read

πŸ› οΈ Strengthening my DevOps foundation with Git, AWS, Ansible, and Terraform!

Welcome back to my DevOps learning journey! This week, I took a deep dive into some fundamental DevOps concepts, focusing on version control, cloud services, configuration management, and infrastructure as code. Here’s a breakdown of what I learned and my key takeaways.


πŸ“Œ Git Essentials – Important Commands & Branching Strategies

Version control is the backbone of any DevOps workflow, and Git plays a crucial role in managing code efficiently. This week, I focused on:

πŸ”Ή Essential Git Commands:

  • git init – Initialize a new repository

  • git clone – Clone an existing repository

  • git add – Stage changes for commit

  • git commit -m "message" – Save changes to local repository

  • git push origin <branch> – Push changes to a remote repository

  • git pull origin <branch> – Fetch and merge changes from the remote repository

  • git merge <branch> – Merge another branch into the current branch

πŸ”Ή Branching Strategies:

  • Feature Branching: Developers create separate branches for each feature and merge them into the main branch after completion.

  • Git Flow: Uses develop and master branches along with feature, release, and hotfix branches.

  • Trunk-Based Development: Encourages frequent commits to the main branch, reducing long-lived feature branches.

Mastering Git is crucial for maintaining a smooth CI/CD pipeline and effective collaboration!


🌩️ AWS for DevOps – Key Services & Deploying an App

AWS is a game-changer for DevOps, offering a wide range of services for automation, scalability, and reliability. This week, I explored:

πŸ”Ή Key AWS Services for DevOps:

  • EC2 – Virtual servers for deploying applications.

  • S3 – Storage for static assets and backups.

  • IAM – Identity and Access Management for secure authentication.

  • EKS/ECS – Managed Kubernetes and container services.

  • CloudFormation – Infrastructure as Code (IaC) to automate infrastructure deployment.

  • CodePipeline – CI/CD pipeline for automating code deployments.

πŸ”Ή Deploying an App on AWS: I deployed a simple application using EC2 and S3, configuring security groups and IAM roles to ensure secure access. This hands-on experience helped me understand networking and deployment best practices on AWS.


πŸ”§ Configuration Management – Ansible Basics

Configuration management tools like Ansible simplify infrastructure automation. Some key concepts I learned:

πŸ”Ή Why Ansible?

  • Agentless (uses SSH for communication)

  • Declarative approach (idempotent configurations)

  • YAML-based playbooks

πŸ”Ή Ansible Components:

  • Inventory: List of hosts managed by Ansible

  • Playbooks: YAML files defining automation tasks

  • Modules: Predefined commands to perform tasks

  • Roles: Reusable automation templates

πŸ”Ή Basic Ansible Commands:

ansible all -m ping -i inventory.ini
ansible-playbook site.yml

Ansible is a powerful tool for automating configuration management across servers!


πŸ—οΈ Infrastructure as Code – Terraform Fundamentals

Terraform is a key tool for provisioning infrastructure using code. Here’s what I covered:

πŸ”Ή Terraform Basics:

  • Declarative Configuration: Uses .tf files to define infrastructure

  • Providers: AWS, Azure, GCP, Kubernetes, etc.

  • State Management: Keeps track of resources provisioned

πŸ”Ή Terraform Workflow:

terraform init  # Initialize Terraform
terraform plan  # Preview changes
terraform apply  # Deploy infrastructure
terraform destroy  # Remove resources

Terraform makes infrastructure deployment repeatable, scalable, and version-controlled!


πŸ”₯ Key Takeaways from Week 2

βœ… Mastering Git is essential for effective collaboration and CI/CD. βœ… AWS provides powerful tools for automating and scaling DevOps processes. βœ… Ansible simplifies server configuration management without requiring an agent. βœ… Terraform enables Infrastructure as Code, making provisioning infrastructure seamless.

Week 2 was packed with insights, and I’m excited to dive deeper into automation and CI/CD in the coming weeks. Stay tuned for my next update! πŸš€

Let me know your thoughts, and if you're also learning DevOps, feel free to share your experiences in the comments! 😊


0
Subscribe to my newsletter

Read articles from Anurag Panda directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Anurag Panda
Anurag Panda