AWS:
Amazon Web Services is one of the most popular Cloud Provider that has free tier too for students and Cloud enthutiasts for their Handson while learning (Create your free account today to explore more on it).
Read from here
• What is region , availability zone , local zone ?
Region: A region is a geographical area that contains multiple, isolated locations (3 or more than 3 Availability Zone known as Region)known as Availability Zones. AWS has multiple regions worldwide, each designed to be completely isolated from the others to achieve the greatest possible fault tolerance and stability. Each region is a separate geographic area, and AWS customers can choose the region that best suits their needs, whether for compliance, latency, or other reasons.
Availability Zone (AZ): An Availability Zone is one or more discrete data centers with redundant power, networking, and connectivity in an AWS region. Each AZ is isolated from failures in other AZs and provides inexpensive, low-latency network connectivity to other zones in the same region. The Mumbai region has three Availability Zones, which are typically identified as ap-south-1a
, ap-south-1b
, and ap-south-1c
.
Local Zone: A Local Zone is an extension of an AWS region that is geographically close to your end-users. Local Zones place compute, storage, database, and other select AWS services closer to end-users to provide them with single-digit millisecond latency. In India, AWS has launched Local Zones in cities like Delhi and Kolkata, and plans to launch more in Chennai and Bangalore by the end of 2023 [3].
Example:
Region: Asia Pacific (Mumbai) (
ap-south-1
)Availability Zones:
ap-south-1a
,ap-south-1b
,ap-south-1c
Local Zones: Delhi, Kolkata (with upcoming Local Zones in Chennai and Bangalore)
By using the Mumbai region with its three Availability Zones and additional Local Zones in nearby cities, AWS customers can design their applications to be highly available, fault-tolerant, and responsive to end-user needs in India.
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 username of your own wish and grant EC2 Access. Launch your Linux instance through the IAM user that you created now and install jenkins and docker on your machine via single Shell Script.
Task2:
In this task you need to prepare a devops team of avengers. Create 3 IAM users of avengers and assign them in devops groups with IAM policy.
Let’s Begin Task 1:
Steps to Create an IAM User
Login to AWS Console as a root user.
Search for IAM in the search bar and go to the IAM dashboard.
Create a New User:
Click on "Users" in the left menu.
Click on Right side upper "Create user".
Enter a username of your choice.
Select “AWS Management Console access" and .
Select “I want to create an IAM user” and then create password
Attach the policy "AmazonEC2FullAccess".
Complete the process and download the user credentials.
Launch an EC2 Instance
Sign in as the IAM user created above.
Go to the EC2 service and click on "Launch instance".
Choose a Ubuntu AMI.
Select instance type t3.micro and create a new key-pair.
Launch the instance and connect using SSH Client.
Install Jenkins and Docker
Create a Shell Script name as
pkginstall.sh
:#!/bin/bash sudo apt update sudo apt install openjdk-11-jre -y curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt-get update sudo apt-get install jenkins -y sudo systemctl enable jenkins sudo systemctl start jenkins sudo apt-get update sudo apt-get install docker.io -y sudo systemctl start docker
Run the Shell Script:
chmod +x pkginstall.sh ./pkginstall.sh
Let’s Verify Installation
Check the status of Jenkins and Docker:
sudo systemctl status jenkins
sudo systemctl status docker
Let’s begin task 2
In this task, you will create three IAM users and assign them to a DevOps group with appropriate IAM policies.
Steps to Create IAM Users and Group
Create IAM Users:
Go to the IAM dashboard then click on "Add user".
Create users name as “anand-raval-dev“ "Aditya", "Vikas" and "Aryan" with console access and programmatic.
Create a User Group:
Click on "User Groups" and "Create New Group".
Name the group "Devops".
Attach policies "AmazonS3FullAccess", “AmazonEC2FullAccess” and "AmazonRDSFullAccess" then Add the four users to the group.
Thankyou For Reading !!!!