Day 39 AWS and IAM Basics

Day 39 AWS and IAM Basics

AWS:

Amazon Web Services is one of the most popular Cloud Provider that has free tier too for students and Cloud enthusiasts for their Hands-on while learning

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

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.

Task1:

Launch EC2 instance with already installed Jenkins on it. Once server shows up in console, hit the IP address in browser and you Jenkins page should be visible.

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

Log in to the AWS Management Console and navigate to the EC2 dashboard.

Click on the "Launch Instance" button to start the process of launching a new EC2 instance.

Choose an Amazon Machine Image (AMI)

No alt text provided for this image

Select an instance type, configure your instance details (such as the number of instances, network settings, and storage),

No alt text provided for this image

Go to advance details and In the user data field, enter the following script to install Jenkins and its dependencies:

No alt text provided for this image

Create a security group that allows inbound traffic on port 8080 for Jenkins.

No alt text provided for this image

Copy public-ip address

No alt text provided for this image

Open your web browser and enter the IP address of the instance followed by port number 8080 (e.g., https://<public-ip>:8080). This will take you to the Jenkins login page

No alt text provided for this image

thanks for reading this article:-

要查看或添加评论,请登录

Kashi Diggi的更多文章

社区洞察

其他会员也浏览了