Table of contents
๐ Introduction:
In this blog, we will explore AWS basics AWS & IAM
AWS :
Amazon Web Services (AWS) is a cloud computing platform by Amazon offering various services like storage, computing power, databases, and more. It allows businesses to use these services without needing physical hardware, making it flexible and cost-effective. It's popular for creating, deploying, and managing applications online.
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.
๐ผ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 single Shell Script.
To create an IAM user with EC2 access, follow these steps:
Log in to the AWS Management Console.
Go to the IAM service and click on "Users" in the left menu.
Click on "Add user" and enter a username
Click on the checkbox Provide user access to the AWS Management Console and create a custom password.
Select Programmatic access and click Next.
Select Attach policies directly and select the policy AmazonEC2FullAccess.
- Click Next until you reach the end, and then click Create user.
To launch a Linux instance using your IAM user, follow these steps:
- Sign in AWS account as IAM user which we created above.
- Go to the EC2 service and Launch instance.
- Now connect to the EC2 instance & we will create a Shell Script file to Install Jenkins and Docker on this machine.
- Run the Shell Script file
- Check the docker and Jenkins version
๐ผTask: 2
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.
Create 3 IAM users of Avengers.
Create Avengers DevOps group by clicking on the User Groups and clicking on the Create New Group button & Click on the box the user we want to add to the group
In the Attach Policy step, search for and select the AmazonEC2FullAccess & AmazonS3FullAccess policies.
Click on the Create Group button. below Group Avengers-DevOps is created with 3 users.
You can add more users by clicking Add users or we can change the policy by adding or removing policy.
๐ Conclusion :
In this blog, we have covered some of the basic AWS operations & IAM user groups, in the next blog we will cover AWS Advanced Topics.
Thank you for reading!
Contact me on Linkedin
Check out my GitHub for more resources ๐