Day 38- 90DaysOfDevOps

Day 38- 90DaysOfDevOps

Getting Started with AWS Basics

Hey Learners! Welcome back. As we come so far with this challenge, it's time to dive deeper into the world of the cloud. Let's begin our DevOps journey with AWS Cloud.

AWS:-

Amazon Web Services(AWS) is a comprehensive cloud computing platform offered by Amazon. Launched in 2006, AWS has grown to become the world's most widely adopted cloud platform, serving millions of customers across the globe. AWS provides a vast array of cloud services, including computing power, storage, databases, machine learning, analytics, security, and many more. All are accessible through a user-friendly web interface.

IAM:-

Identity and Access Management(IAM) is a crucial service of AWS's security infrastructure. It enables us to control and manage access to our AWS resources securely.

It helps to manage users, groups, permissions, and roles, ensuring that only authorized entities can interact with your AWS environment.

IAM plays a central role in AWS security and compliance, making it a fundamental service for cloud administrators and organizations.

TASK 1- 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 a single Shell Script.

Log in to the AWS console with your AWS credentials and search for IAM in the search box.

Go to the IAM service and click on Users in the left menu as shown below.

Click on Add User and enter a username as you wish. Select Programmatic access and leave the password as default(Autogenerated password), and click Next.

Select Attach Policies directly search for AmazonEC2FullAccess select the policy and click Next.

Note:- Download the .csv file for the Password as this will allow you to download or view the password only once.

Review the details and click Create user

Click Return to user list and you will see your user cet created.

To Launch the EC2 instance using an IAM user we have to log in to our AWS console with the created IAM user.

Go to Account and copy Account ID. Open the Incognito window and get to the AWS console. Select login with IAM user and enter your Account ID.

Enter the credentials for the new user.

After signing in AWS will ask you for Password Change. Change the password and AWS will launch the console for the user automatically.

Create an EC2 instance of Ubuntu with t2.micro type.

Access the EC2 instance after running using SSH and install Jenkins and Docker.

Link to install Docker and Jenkins:- https://avp23.hashnode.dev/day7-90daysofdevops

If you try to create an S3 bucket it will not allow as the user only has EC2 access.

This demonstration states that the created user can launch EC2 as we only attach the AmazonEC2FullAccess policy.

Task 2- Create 3 IAM users of Avengers and assign them to devops groups with IAM policy.

Same as above create two more users named Captain_America and IronMan

Now we have to create a new group called DevOps-Avengers.

Select User groups and click Create group. You can see a list of present users available to add to the group. Select the three users we created earlier to add to the group select Policies for group and click Create group. View Group

Thank you so much for taking the time to read till the end! Hope you found this blog informative.

Feel free to explore more of my content, and don't hesitate to reach out if need any assistance from me or in case of you have any questions.

Find me on:- Hashnode LinkedIn Github

Happy Learning!