Monday, June 17, 2024

Linux Troubleshooting

 

 https://github.com/mismailzz/Linux-Troubleshooting-Scenarios-with-solutions

 

Section 1 - System Access Troubleshooting

•        Server is Not Reachable

•        Cannot Connect to a Website or an Application

•        Cannot SSH as root or a Specific User

•        Firewall Issue

•        Terminal Client is not working

•        Cannot Connect using Putty to a VirutalBox VM

 

Section 2 - FileSystem Troubleshooting

•        Cannot cd into a Directory

•        Cannot Open a File or Run a Script

•        Having Trouble Finding Files and Directories

•        Cannot Create Links

•        Cannot Write to a File

•        Cannot Delete, Copy, Move or Rename a File

•        Cannot Change File Permissions or View Other Users Files

•        Disk Space Full or Add More Disk Space

•        Add Disk and Create Standard Partition

•        Add Disk and Create Standard Partition

•        Add Disk and Create LVM Partition

•        Extend Disk with LVM

•        How to Delete Old Files

•        FileSystem is Corruption

•        Corruption in /etc/fstab

•        Script to Delete Old Files

•        Handouts

 

Section 3- System Administration Troubleshooting

•        Running Out of Memory

•        Add Swap Space

•        System Rebooted or Process Restarted

•        Unable to get IP Address

•        IP Assigned but not Reachable

•        Having Trouble using vi Editor

•        Cannot Run Certain Commands

•        Cannot Change Password

•        User Account has no Home Directory

•        How to Change Every Instance of a Word in a File

•        How to Use sed Command

•        How to Kill a User Terminal or Process

•        Recover Root Password

•        SOS Report

•        List of Users Logged in by Date

•        System is Running Slow

 

 

 

Thursday, June 13, 2024

Ansible Playbooks Practise

 https://github.com/do-community/ansible-practice/blob/main/playbook-01.yml

Sunday, June 9, 2024

Important Link for Terraform Project

 https://www.linkedin.com/pulse/create-vpcsubnetsec2-instance-using-terraform-srini-b-dcjuc/


https://www.linkedin.com/pulse/day-66-terraform-hands-on-project-build-your-own-aws-sayali-shewale/


https://medium.com/@saurabhdahibhate50/terraform-hands-on-project-d2105bbc0c62


https://helenchukwukelu.hashnode.dev/terraform-project-for-bbeginners



https://blog.softup.co/how-we-structure-our-terraform-code/


https://blog.devops.dev/devops-project-12-infrastructure-as-code-with-terraform-in-aws-407165d3d801



=========

Important Project:

https://medium.com/@e-miguel/project-1-host-a-dynamic-ecommerce-website-on-aws-with-terraform-ea93ef2ba15f


https://medium.com/@faisalkuzhan/day-55-90-terraform-interview-questions-e8ff859220d5



==========

Manual AWS PRoject:

https://medium.com/@e-miguel/host-a-dynamic-car-rental-web-application-on-aws-f4f5ed700feb


Wednesday, June 5, 2024

Terraform S3 Backend Configuration

#provider.tf

provider "aws" {
  region = "us-east-1"
  access_key = "my-access-key"
  secret_key = "my-secret-key"

}

main.tf:


resource "aws_instance" "ec2web3" {
  ami           = "ami-0d191299f2822b1fa"
  instance_type = "t2.micro"
}

terraform {

  backend "s3" {

    access_key = "xxxxxxxxxxxxxxx"
    secret_key = "xxxxxxxxxxxxxxxxxxxxxxx"
    region     = "us-east-1"
    bucket     = "kishor-tf-state"
    key        = "terraform.tfstate"
  }
}

#command
terraform init -backend-config="access_key=xxxxxxxxxxxxxxxx"
-backend-config="secret_key=xxxxxxxxxxxxxxxxxx"




Saturday, June 1, 2024

Create S3 Bucket Using Terraform

 resource "aws_s3_bucket" "my-bucket1" {

  bucket = "my-tf-test-bucket-kaa"

  tags = {
    Name        = "My bucket"
    Environment = "Dev"
  }
}



============

provider "aws" {

  region     = "ap-south-1"
  access_key = "XXXXXXXXXXXX"
  secret_key = "XXXXXXXX+yLQRZk01cw1EXNKqNXLKeNTiT"

}

Create EC2 Instance , SG, KEY Using Terraform

 resource "aws_key_pair" "key-tf" {

  key_name   = "tf-key"
  public_key = file("${path.module}/id_rsa.pub")

}

output "keyname" {
  value = aws_key_pair.key-tf.key_name

}


resource "aws_instance" "web" {
  ami                         = "ami-067aaeea6813afbde"
  instance_type               = "t3.micro"
  vpc_security_group_ids      = [aws_security_group.instance.id]
  associate_public_ip_address = true


  key_name = aws_key_pair.key-tf.key_name

  tags = {
    Name = "tf-instance"
  }
}

resource "aws_security_group" "instance" {

  name = "terraform-SG"
  ingress {
    from_port   = 22
    to_port     = 22
    protocol    = "tcp"
    cidr_blocks = ["0.0.0.0/0"]
  }

  egress {
    from_port   = 0
    to_port     = 0
    protocol    = "-1"
    cidr_blocks = ["0.0.0.0/0"]

  }
}

provider "aws" {
  region     = "ap-south-1"
  access_key = "XXXXXXXXXXXXXXXXXXXX"
  secret_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

}


Tuesday, May 21, 2024

K8 All Topics Details

 https://github.com/devopsproin/certified-kubernetes-administrator/tree/main

Sample Game App Deployment on EKS cluster

 https://padmakshi.medium.com/setting-up-an-eks-cluster-and-deploying-a-game-application-a-step-by-step-guide-08790e0be117