Table of contents
Congratulations!!!! you have come so far. Don't let your excuses break your consistency. Let's begin our new Journey with Cloud☁. By this time you have created multiple EC2 instances, if not let's begin the journey:
AWS:
Amazon Web Services is one of the most popular Cloud Providers that has a free tier for students and Cloud enthusiasts for their Hands-on while learning (Create your free account today to explore more on it).
Cloud computing with AWS
Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud, offering over 200 fully featured services from data centers globally. Millions of customers—including the fastest-growing startups, largest enterprises, and leading government agencies—are using AWS to lower costs, become more agile, and innovate faster. (you can refer this link:aws.amazon.com/what-is-aws)
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.
When you create an AWS account, you begin with one sign-in identity that has complete access to all AWS services and resources in the account. This identity is called the AWS account root user and is accessed by signing in with the email address and password that you used to create the account. We strongly recommend that you don't use the root user for your everyday tasks. Safeguard your root user credentials and use them to perform the tasks that only the root user can perform. For the complete list of tasks that require you to sign in as the root user, see Tasks that require root user credentials.
Task1:
Create an IAM user with EC2 access and launch a Linux instance with Jenkins and Docker using a Shell Script
- Step 1: Create an IAM User
Go to the AWS Management Console (https://aws.amazon.com/).
Sign in to your AWS account or create one if you haven't already.
Go to the IAM dashboard.
Example: Let's create an IAM user named "myDevOpsUser" with EC2 access. Follow the on-screen instructions to create the user. After creation, you will get an access key and secret key for this user.
Step 2: Launch an EC2 Instance
Go to the EC2 dashboard.
Click "Launch Instance" to create a new EC2 instance.
Example:
Select an Amazon Linux 2 AMI.
Choose an instance type based on your needs.
Configure instance details as needed.
Add storage and configure additional options.
Add tags (optional).
Configure security groups to allow SSH access (port 22).
Review and launch the instance.