Day 39 Task: AWS and IAM Basics

Day 39 Task: AWS and IAM Basics

ยท

3 min read

AWS

๐Ÿ”ถ 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).

Read from here

๐Ÿ”ถ User Data in AWS:

  • When you launch an instance in Amazon EC2, you have the option of passing user data to the instance that can be used to perform common automated configuration tasks and even run scripts after the instance starts. You can pass two types of user data to Amazon EC2: shell scripts and cloud-init directives.

  • You can also pass this data into the launch instance wizard as plain text, as a file (this is useful for launching instances using the command line tools), or as base64-encoded text (for API calls).

  • This will save time and manual effort every time you launch an instance and want to install any application on it like Apache, docker, Jenkins etc

Read more here

๐Ÿ”ถ 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. Read from here

Get to know IAM more deeply๐ŸŠClick Here!!

๐Ÿ”ถ Task 1: Launch the EC2 instance with already installed Jenkins on it.

  • Launch the EC2 instance with already installed Jenkins on it. Once the server shows up in the console, hit the IP address in the browser and your Jenkins page should be visible.
    The steps to create an IAM user grant EC2 Access are as follows:
    1. Follow our Day38 Blog to create an IAM user and Grant EC2 Access.
    2. Unlock Jenkins by using sudo cat /var/lib/jenkins/secrets/initialAdminPassword

  • Take a screenshot of the Userdata and Jenkins page, this will verify the task completion.

๐Ÿ”ถ Task 2: Create three Roles named: DevOps-User, Test-User and Admin.

  • Read more on IAM Roles and explain the IAM Users, Groups and Roles in your terms.

  • To create three roles Login to AWS Console by root user and select IAM Roles.

  • Select a trusted entity.

  • Add Permission as per requements.

  • Add Role Name, review, and create and follow same step for other two user.

  • Verify all three Roles created.


Happy Learning :)

Stay in the loop with my latest insights and articles on cloud โ˜๏ธ and DevOps โ™พ๏ธ by following me on Hashnode, LinkedIn (https://www.linkedin.com/in/chandreshpatle28/), and GitHub (https://github.com/Chandreshpatle28).

Thank you for reading! Your support means the world to me. Let's keep learning, growing, and making a positive impact in the tech world together.

#Git #Linux Devops #Devopscommunity #90daysofdevopschallenge #python #docker #Jenkins #Kubernetes #AWS

Did you find this article valuable?

Support Chandresh Patle's Blog by becoming a sponsor. Any amount is appreciated!

ย