AWS:
Amazon Web Services is one of the most popular Cloud Providers that has a free tier 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
Task1:
Create an IAM user with the username of your 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.
Sign in to the AWS Management Console.
Navigate to IAM (Identity and Access Management).
In the IAM dashboard, click "Users" and "Add user."
Enter a username of your choice, and click "Next."
- Attach the "AmazonEC2FullAccess" policy to the user and click "Next."
- Review the settings and click "Create user."
- Note down the username and the password as they will be used to authenticate the IAM user.
- Sign in to the AWS account using the IAM user you just created.
- Reset the password
- Launch EC2 Instance with IAM User
- Connect to the instance you just created.
SSH into the EC2 Instance:
Wait for the instance to be in the "running" state.
SSH into the instance using the public IP and your private key:
ssh -i "YourKeyPair.pem" ubuntu@your-instance-ip
- Install Jenkins and Docker on your machine via a single Shell Script.
#!/bin/bash
# Update package list
sudo apt update
# Install OpenJDK 11
sudo apt install -y openjdk-11-jre
# Install Jenkins
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo gpg --dearmor -o /usr/share/keyrings/jenkins-keyring.gpg
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] 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 -y jenkins
# Start Jenkins
sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
# Install Docker
sudo snap install docker
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 the IAM policy.
Sign in to the AWS Management Console. Navigate to IAM. In the IAM dashboard, click "Users" and "Add user." Create 3 IAM users of Avengers and assign them to DevOps groups with the IAM policy.