Skip to main content

Command Palette

Search for a command to run...

Day 38:Getting Started with AWS Basics

Updated
2 min read

From today, we will start our journey to AWS.

Let's start today's task.

Task:

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 complete the task of creating an IAM user, launching a Linux instance, and installing Jenkins and Docker via a shell script, follow these steps:

  1. Creating an IAM User:

    Go to the AWS Management Console and navigate to the IAM service.

Click on "Users" and then "Add user".

  • Enter a desired username for the IAM user.

you can select autogenerated password or custom password. The best practice is to check USERs must create a new password at next sign-in.

Then cleck Next

  • Attach the "AmazonEC2FullAccess" policy to grant EC2 access to the user.

Complete the user creation process and note down the access key and password

  1. Launching a Linux Instance:

Login with user you have just created.

Go to the EC2 service in the AWS Management Console.

Click on "Launch Instance" to start the instance creation wizard.
Choose a suitable Linux AMI (Linux Machine Image) for your instance.
Select the desired instance type and configuration options.
Now Go to advance setting and write below script into USER data option

Then create instance. Your instance will be ready with jenkins and docker in it.

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.

First we will create group then will create required users

Go to IAM and click User Groups and then click Create Group.

You can give desired name and you can attach the required permission with it.

Now we will create required users and while creating user, on the second step we can choose User groups for it so we do not need to attch policy to perticular user.

That's it .you can create no of users and can include into groups.

That was all for today. If you have any questions/suggestions please comment below. See you another day with another challenges.

More from this blog

Ajay Patel

116 posts