Skip to main content

Week 7-8: Going the extra miles


Goals of the week

- Learn Infra as Code with Terraform.
- Learn Logging and monitoring
- Familiarize yourself with different logging tools Prometheus-Grafana, ELK Stack etc

Terraform

Terraform is an open-source infrastructure as code (IAC) tool that enables users to define, provision, and manage infrastructure resources as code. It can be used by DevOps engineers to automate the process of provisioning and managing infrastructure resources in different cloud environments, including AWS, Azure, and GCP.
Course: Basic: Terraform Basics Training, Advance: Terraform Deep Dive.
Course expectation: Learn infra as code with Terraform
Estimated time to complete this course: 3 days.

  • Learn: The basics of Terraform: The first step is to understand the basic concepts of Terraform, such as how it works, the syntax of its configuration files, and how to use its command-line interface.
  • Learn: How to use Terraform providers: Learn how to use Terraform providers to interact with various cloud providers.
  • Learn: How to use Terraform to provision AWS resources: Learn how to use Terraform to provision resources such as EC2 instances, VPCs, and RDS databases on AWS.
  • Learn: How to use Terraform with AWS IAM: Learn how to use Terraform to manage IAM policies and roles on AWS.
  • Learn: How to use Terraform with AWS S3: Learn how to use Terraform to manage S3 buckets and objects on AWS.
  • Learn: How to use Terraform with AWS EBS: Learn how to use Terraform to manage EBS volumes and snapshots on AWS.
  • Learn: How to use Terraform with AWS ELB: Learn how to use Terraform to manage ELBs on AWS.
  • Learn: How to use Terraform with AWS CloudFormation: Learn how to use Terraform to manage CloudFormation stacks on AWS.
  • Task: Create a VPC, subnets, and security groups using Terraform. This exercise will help you understand how to create and manage a VPC and its components using Terraform.
  • Task: Create two Amazon Web Services (AWS) Elastic Compute Cloud (EC2) Auto Scaling Group (ASG) instances using Terraform modules and variables. Configure workspaces and set up a backend state on Amazon Simple Storage Service (S3).
  • Task: Create an RDS database and set up automatic backups using Terraform. This exercise will help you understand how to create and manage a database and its settings using Terraform.
  • Task: Create an Auto Scaling group and a launch configuration using Terraform. This exercise will help you understand how to create and manage an Auto Scaling group and its settings using Terraform.
  • Task: Create an IAM role and policies and attach them to an EC2 instance using Terraform. This exercise will help you understand how to create and manage IAM roles and policies using Terraform.

Logging

Logging and monitoring are important practices in DevOps for understanding the health and performance of an application and the underlying infrastructure. They allow you to track and analyze system and application events, detect and diagnose issues, and take action to improve the overall performance and availability of your systems.

Course : ELK Stack, ELK with dockers
Course expectation: Learn Monitoring and Logging
Estimated time to complete this course: 2 days

  • Learn: The basics of logging and monitoring: The first step is to understand the basic concepts of logging and monitoring, such as what types of data to collect, how to collect that data, and how to analyze it.
  • Learn: How to use log analysis tools: Learn how to use log analysis tools such as Splunk, Elasticsearch, and Logstash to analyze and visualize log data.
  • Learn: How to use monitoring tools: Learn how to use monitoring tools such as Prometheus, Grafana, and Nagios to monitor the health and performance of your systems.
  • Learn: How to use cloud-native monitoring and logging: Learn how to use monitoring and logging services provided by cloud providers such as AWS CloudWatch, Azure Monitor and Google Cloud Stackdriver
  • Task: Create a Nginx Dashboard using Filebeat’s Nginx module.