What is AWS
Amazon Web Services (AWS) is a cloud computing platform and API provider that operates as a subsidiary of Amazon. It offers a range of on-demand services, including computing power, storage, databases, machine learning, analytics, content delivery, Internet of Things (IoT), and security.
AWS operates on a metered pay-as-you-go basis, making it an affordable option for individuals, companies, and governments.
Some of its key services include Amazon EC2, Amazon S3, Amazon RDS, AWS Lambda, Amazon DynamoDB, Amazon SNS, Amazon CloudFront, Amazon Elastic Beanstalk, Amazon Machine Learning, and Amazon SageMaker.
AWS is renowned for its reliability, scalability, and flexibility, and has a global network of data centers that enable users to deploy applications and services worldwide. It caters to a diverse range of industries, from startups to large-scale enterprises.
I AM
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 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 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 "Create 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".
To launch a Linux instance using your IAM user, follow these steps:
Sign in AWS account as an IAM user which we created above.
Go to the EC2 service and click on "Launch instance".
Choose a Linux AMI.
After launching the instance let's connect to the server.
Install Jenkins and Docker on your machine via a single Shell Script.
#!/bin/bash
sudo apt update
sudo apt install openjdk-8-jdk
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt update
sudo apt install jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
sudo apt update
sudo apt install docker.io
sudo systemctl start docker
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.
Go to Home ----> User-group ----> Create a user group. then add the Created user to the group.
In the "Attach Policy" step, search for and select the "AmazonEC2FullAccess", "AmazonS3FullAccess", and "AmazonRDSFullAccess" policies.