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
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 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 :)
If you find my blog valuable, I invite you to like, share, and join the discussion. Your feedback is immensely cherished as it fuels continuous improvement. Let's embark on this transformative DevOps adventure together! 🚀 #devops #90daysofdevop #AWS