Day 38 Getting Started with AWS Basics?

Day 38 Getting Started with AWS Basics?

Congratulations on reaching Day 38 of your #90DaysofDevOps journey! Today, we dive into the world of AWS, focusing on IAM (Identity and Access Management).

AWS

Amazon Web Services (AWS) is a leading cloud provider offering a free tier for students and enthusiasts. If you haven't already, create your free account to start exploring its extensive services. Read more here.

IAM

AWS Identity and Access Management (IAM) allows you to securely control access to AWS resources. It helps you manage permissions centrally, ensuring the right users have the right access. Learn more about IAM here.

Tasks:

Task 1: Create an IAM User and Launch an EC2 Instance

  1. Create an IAM User:
  2. Launch an EC2 Instance:
  3. Install Jenkins and Docker:

#!/bin/bash
# Update the package repository
sudo apt-get update -y

# Install Java (required for Jenkins)
sudo apt-get install openjdk-11-jdk -y

# Install Jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update -y
sudo apt-get install jenkins -y
sudo systemctl start jenkins
sudo systemctl enable jenkins

# Install Docker
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update -y
sudo apt-get install docker-ce -y
sudo usermod -aG docker ${USER}
sudo systemctl start docker
sudo systemctl enable docker

echo "Jenkins and Docker installed successfully!"
        


Task 2: Prepare a DevOps Team of Avengers

  1. Create 3 IAM Users:Create three IAM users with names like IronMan, CaptainAmerica, and Thor.
  2. Assign Users to DevOps Group:Create a DevOps group in IAM.Attach an IAM policy to the DevOps group that grants necessary permissions.Add the three users to the DevOps group.

Post Your Progress

Share your progress and experience on LinkedIn to inspire others and track your journey.

Happy Learning! ?? #AWS #CloudComputing #IAM #DevOps #LearningJourney

Utsav Bayaskar

DevOps Engineer at Capgemini

9 个月

Happy Learning! ??

回复

要查看或添加评论,请登录

Utsav Bayaskar的更多文章

社区洞察

其他会员也浏览了