<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sivaranjanibharath</title>
    <description>The latest articles on DEV Community by Sivaranjanibharath (@sivaranjanibharath).</description>
    <link>https://dev.to/sivaranjanibharath</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1060396%2F320e366f-c98d-4e66-91f1-2f291eb145c6.png</url>
      <title>DEV Community: Sivaranjanibharath</title>
      <link>https://dev.to/sivaranjanibharath</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sivaranjanibharath"/>
    <language>en</language>
    <item>
      <title>To modify your AWS Lambda entry point using AWS Console</title>
      <dc:creator>Sivaranjanibharath</dc:creator>
      <pubDate>Thu, 11 Jan 2024 00:16:56 +0000</pubDate>
      <link>https://dev.to/sivaranjanibharath/to-modify-your-aws-lambda-entry-point-using-aws-console-gje</link>
      <guid>https://dev.to/sivaranjanibharath/to-modify-your-aws-lambda-entry-point-using-aws-console-gje</guid>
      <description>&lt;p&gt;Lambda handler is the entry point to your code.When your function is invoked, Lambda runs the handler method. To modify the AWS Lambda entry point using console,follow the below steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to the &lt;strong&gt;Functions&lt;/strong&gt; page of the Lambda console and select 
your &lt;strong&gt;function&lt;/strong&gt;(ex:bd_register)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnw2djz3d7krndsxcefts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnw2djz3d7krndsxcefts.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the &lt;strong&gt;Code&lt;/strong&gt; tab.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2w657junz3vvxan0c0y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2w657junz3vvxan0c0y.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Go to the &lt;em&gt;Runtime settings&lt;/em&gt; where you can see default lambda 
handler function(i.e lambda_function). To change the handler function,select &lt;strong&gt;Edit&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi1k6jppe963ggzq8zmv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi1k6jppe963ggzq8zmv.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;you can see &lt;em&gt;Handler&lt;/em&gt; with default handler name.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmt1lcwy028ivuoy7ok4j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmt1lcwy028ivuoy7ok4j.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enter the new name(bd_register) for your function handler.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbkmla345roe9vyciybas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbkmla345roe9vyciybas.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click &lt;strong&gt;save&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Create a static S3 website</title>
      <dc:creator>Sivaranjanibharath</dc:creator>
      <pubDate>Fri, 05 Jan 2024 19:11:33 +0000</pubDate>
      <link>https://dev.to/sivaranjanibharath/create-a-static-s3-website-103l</link>
      <guid>https://dev.to/sivaranjanibharath/create-a-static-s3-website-103l</guid>
      <description>&lt;p&gt;Step 1: Create a bucket&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sign in to AWS console and open &lt;strong&gt;S3&lt;/strong&gt; service using the link (&lt;a href="https://console.aws.amazon.com/s3/"&gt;https://console.aws.amazon.com/s3/&lt;/a&gt;).
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_RmBrco6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6j0w643wnz3uqgswaj2.png" alt="Image description" width="800" height="349"&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;Create bucket&lt;/strong&gt;. Enter the &lt;strong&gt;bucket name&lt;/strong&gt;(Ex. Hello) and choose the &lt;strong&gt;region&lt;/strong&gt; where you want to create bucket.Leave the other settings as default.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6uR9OLUN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jb9ds5gnzzjunv4lxcgl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6uR9OLUN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jb9ds5gnzzjunv4lxcgl.png" alt="Image description" width="800" height="595"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then, choose &lt;strong&gt;Create&lt;/strong&gt; option to create the bucket.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: Enable static website hosting&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now, bucket is created. Under the bucket list select the bucket you have created.Then, To enable static web hosting go to &lt;strong&gt;Properties&lt;/strong&gt; tab of the selected bucket.&lt;/li&gt;
&lt;li&gt;Look for Static website hosting, choose &lt;strong&gt;Edit&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PVkPOAFB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jd050rd1cxc2r7pyrh4j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PVkPOAFB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jd050rd1cxc2r7pyrh4j.png" alt="Image description" width="800" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Then, under Static website hosting, choose &lt;strong&gt;Enable&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--smaZUgQ0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f9gyunglk868jc2tv1k2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--smaZUgQ0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f9gyunglk868jc2tv1k2.png" alt="Image description" width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In Index document, enter the index file name of the index document, 
typically &lt;strong&gt;index.html&lt;/strong&gt;(you have to create one for your 
website)&lt;/li&gt;
&lt;li&gt;In Error document, enter the error file name of the error document, typically &lt;strong&gt;error.html&lt;/strong&gt;(you have to create this one for returning when an error occurs)&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save changes&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Kv2lqJIH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gajzvh69pdtw2wrtxcbf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Kv2lqJIH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gajzvh69pdtw2wrtxcbf.png" alt="Image description" width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Edit Block Public Access settings&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click into your bucket and then select the ** Permissions** tab at the top&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Public access settings click &lt;strong&gt;edit&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now disable &lt;strong&gt;Block all public access&lt;/strong&gt; and click &lt;strong&gt;save changes&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gFCbkIhe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zs15yri11b3768fwg19w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gFCbkIhe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zs15yri11b3768fwg19w.png" alt="Image description" width="800" height="483"&gt;&lt;/a&gt;&lt;br&gt;
-It will ask for confirmation to unblock public access as shown below. Type confirm and click confirm .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bS_71c9V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/284f1cepeep9zyoe3qg3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bS_71c9V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/284f1cepeep9zyoe3qg3.png" alt="Image description" width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Add a bucket policy that makes your bucket content publicly available&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Under &lt;strong&gt;Permissions&lt;/strong&gt; tab you will find Bucket policy and click &lt;strong&gt;edit&lt;/strong&gt; to add bucket policy.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add the following policy and click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;{&lt;br&gt;
    "Version": "2012-10-17",&lt;br&gt;
    "Statement": [&lt;br&gt;
        {&lt;br&gt;
            "Sid": "PublicReadGetObject",&lt;br&gt;
            "Effect": "Allow",&lt;br&gt;
            "Principal": "&lt;em&gt;",&lt;br&gt;
            "Action": "s3:GetObject",&lt;br&gt;
            "Resource": "arn:aws:s3:::&lt;em&gt;Bucket-name&lt;/em&gt;/&lt;/em&gt;"&lt;br&gt;
        }&lt;br&gt;
    ]&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r52Eo5St--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/90flxb0k1gmjjhoc9vuv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r52Eo5St--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/90flxb0k1gmjjhoc9vuv.png" alt="Image description" width="800" height="566"&gt;&lt;/a&gt;&lt;br&gt;
Step 5: Configure an index document&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create an index.html file.Save it locally and the filename should match the index document name that you entered in step 2.Then upload the file in the bucket you created as shown below. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7Bqu9bAR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fn83503j4jvm6cyk26jp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Bqu9bAR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fn83503j4jvm6cyk26jp.png" alt="Image description" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9FDdd7kl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08ijlp255q6ujj0n1rny.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9FDdd7kl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08ijlp255q6ujj0n1rny.png" alt="Image description" width="800" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yr3InxTc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vy6nahxlbqzc1k0brchf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yr3InxTc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vy6nahxlbqzc1k0brchf.png" alt="Image description" width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 6: Configure an error document&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create an error.html file.Save it locally and the filename should match the error document name that you entered in step 2.Then upload the error.html file in the bucket you created as shown in above screen shot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 7: Test your website endpoint&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To check your website Go to &lt;strong&gt;Buckets&lt;/strong&gt; and select &lt;strong&gt;Properties&lt;/strong&gt;.At the bottom of the page,under Static website hosting, choose your &lt;strong&gt;endpoint&lt;/strong&gt; below to see your website as shown in above screen shot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--f1VI4GJm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4cvqusxomxl1ole8wh9s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--f1VI4GJm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4cvqusxomxl1ole8wh9s.png" alt="Image description" width="800" height="333"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b8kqMAzf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bm7m6oob4gd3vc8fz49l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b8kqMAzf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bm7m6oob4gd3vc8fz49l.png" alt="Image description" width="624" height="274"&gt;&lt;/a&gt;&lt;br&gt;
Step 8: Clean up&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete the resources if you created this website for learning purpose.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Installing Jenkins in EC2</title>
      <dc:creator>Sivaranjanibharath</dc:creator>
      <pubDate>Mon, 11 Dec 2023 19:28:09 +0000</pubDate>
      <link>https://dev.to/sivaranjanibharath/installing-jenkins-in-ec2-3e6a</link>
      <guid>https://dev.to/sivaranjanibharath/installing-jenkins-in-ec2-3e6a</guid>
      <description>&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;This post shows the steps we need to follow to install jenkins in an EC2 that has ubuntu OS&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;ssh into your ec2&lt;/li&gt;
&lt;li&gt;sudo apt-get update&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Java by default is not available in a EC2. However jenkins needs a java. Verify if java is available in your ec2 by invoking,&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java -version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you get the below message you need to install java before you proceed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command 'java' not found

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;*In case of missing java runtime environment (JRE) install by following the instructions at &lt;a href="https://www.jenkins.io/doc/book/installing/linux/#installation-of-java"&gt;https://www.jenkins.io/doc/book/installing/linux/#installation-of-java&lt;/a&gt; .You can test your installation by executing the below command,&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;java -version&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;You'd get a message something like,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ubuntu@ip-172-31-40-141:~$ java -version
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-122.04)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-122.04, mixed mode, sharing)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;This doc installs jenkins LTS version(Long Term Support version). Follow install script in &lt;a href="https://www.jenkins.io/doc/book/installing/linux/#long-term-support-release"&gt;https://www.jenkins.io/doc/book/installing/linux/#long-term-support-release&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Jenkins should start the background service. Alternatively you can also start the service by executing service start command&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo systemctl start jenkins&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Jenkins Admin UI Access
&lt;/h2&gt;

&lt;h3&gt;
  
  
  UI verification
&lt;/h3&gt;

&lt;p&gt;Jenkins comes with a web application archive (aka .war) deployed. This webapp helps you access, customize and execute a jenkins pipeline using an graphical user interface (GUI). However you cannot access the ui from your ssh terminal. But it is worth checking the webapp is up and running by using curl against port 8080 which is the default port that runs jenkins.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl http://localhost:8080&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;In the terminal you should see a basic html code that the server's home page sends back. With that you can confirm that jenkins is running and the admin web app is properly installed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Access through web browser
&lt;/h3&gt;

&lt;p&gt;Given that the application is running on an EC2, you have to manually open port 8080 to be accessed over the internet in the EC2 security group.&lt;/p&gt;

&lt;h4&gt;
  
  
  Security group changes
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Login to your AWS console and navigate to EC2 home page.&lt;br&gt;
&lt;br&gt;
&lt;code&gt;AWS Console -&amp;gt; in Navbar search ec2 -&amp;gt; choose EC2&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose your instance where you installed jenkins and in the bottom half of your screen choose the&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Security Tab&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
that lists the security groups associated with this instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On the Inbound rules tab, Choose&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Edit inbound rules -&amp;gt; Add rule&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For Type choose Custom TCP, For port type in&lt;br&gt;
&lt;br&gt;
&lt;code&gt;8080&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
, For Source, choose My IP&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Save and exit&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This allows 8080 port to be accessed from your computer alone using HTTP protocol&lt;/p&gt;

&lt;h3&gt;
  
  
  Last step
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Open browser and using your ec2's public IP or DNS to open the jenkins admin page
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;http://ec2_DNS:8080/&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You'd be greeted with a nice UI interface that asks for the password&lt;/li&gt;
&lt;li&gt;The default password is protected and securely stored in a file in the jenks server.&lt;/li&gt;
&lt;li&gt;You can access the password by ssh into the ec2 again and view the file with command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo cat /var/lib/jenkins/secrets/initialAdminPassword
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Copy that password and provided it in the browser's password box&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We are all set!!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
