Day38 ----> 90DaysOfDevOps Challenge @TWS

Day38 ----> 90DaysOfDevOps Challenge @TWS

Day 38 Getting Started with AWS Basics☁

AWS

AWS:

Amazon Web Services is one of the most popular Cloud Providers that has a free tier too for students and Cloud enthusiasts for their Hands-on while learning (Create your free account today to explore more on it).

Read from here

IAM:

AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources. With IAM, you can centrally manage permissions that control which AWS resources users can access. You use IAM to control who is authenticated (signed in) and authorized (has permissions) to use resources.

Read from here Get to know IAM more deeply Click Here!!

Task1:

  • Create an IAM user with the username of your wish and grant EC2 Access.

image

image

image

image

image

image

image

  • Launch your Linux instance through the IAM user that you created now and install Jenkins and Docker on your machine via a single Shell Script.

image

image

image

image

# SHELL SCRIPT TO INSTALL DOCKER AND JENKINS

# Install Docker
sudo yum update
sudo yum install docker -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER

# Install Jenkins
# Jenkins requires Java to run, so first install Java
sudo yum update
sudo yum install java-11-openjdk -y

# Long-Term Support release of Jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo \
    https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
sudo yum upgrade

# Add required dependencies for the jenkins package
sudo yum install java-11-openjdk -y 
sudo yum install jenkins -y
sudo systemctl daemon-reload
sudo systemctl enable jenkins
sudo systemctl start jenkins

# Verify installations
docker --version
java -version
jenkins --version
sudo systemctl status jenkins

image

image

image

Task2:

  • In this task, you need to prepare a DevOps team of Avengers. Create 3 IAM users of Avengers and assign them to devops groups with IAM policy.

image

image

image

image

image

image

image

image

image

image

image

That's all about the task!

Happy Learning :)

Day 38 task is completed!

90DaysOfDevOps Tasks👇

github.com/Chaitannyaa/90DaysOfDevOps.git

Chaitannyaa Gaikwad | LinkedIn