AWS:
Amazon Web Services (AWS) is a comprehensive cloud computing platform offered by Amazon that provides a wide range of services and tools for building and managing cloud-based applications and infrastructure. AWS offers a broad set of infrastructure services, such as computing power, storage options, and networking capabilities, as well as higher-level application services, such as databases, analytics, and machine learning. AWS enables organizations to quickly and easily deploy and manage their applications in a flexible, scalable, and cost-effective way, without having to invest in and maintain their own infrastructure. AWS is used by millions of customers worldwide, ranging from startups and small businesses to large enterprises and government agencies.
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.
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.
To create an IAM user with EC2 access, follow these steps:
Log in to the AWS Management Console. Login as root user and type “IAM” in the search box. Go to the IAM service and click on "Users" in the left menu.
Click on "Add user" and enter a username of your choice.
Select "Programmatic access" and click "Next".
Select "Attach existing policies directly" and select the policy "AmazonEC2FullAccess".
Click "Next" until you reach the end, and then click "Create user".
Take note of the username and password, as you will need these to authenticate your IAM user when launching instances.
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 click on "Launch instance".
Choose a Linux AMI.
Select an instance type t2.micro and create new key-pair.
click on Launch instance
Log in ec2 instance using SSH client. Go to command prompt and paste below command at the location where your public key is downloaded.
Install jenkins and docker on your machine via single Shell Script.
Check docker and jenkins version
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.
In the IAM dashboard, click on “Users” and then “Add user.” Create 3 IAM users of avengers. Enter the username for the first IAM user (e.g. “ironman”). Repeat this step to create two more IAM users with the usernames “captain America” and “thor”.
Create a avengers devops group by clicking on the "User Groups" link in the left-hand menu and clicking on the "Create New Group" button.
Enter a name for the group. add the three IAM users to the group by selecting the users.
In the "Attach Policy" step, search for and select the "AmazonEC2FullAccess", "AmazonS3FullAccess", and "AmazonRDSFullAccess" policies.
Click on the "Create Group" button. below Group devops-avengers is created with 3 users.
All the created users will be visible and You can add more users by clicking "Add users".
Thank You for reading!! I hope you find this article helpful!!
Happy Learning!!
Sayali✨