<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shubham Sawant on Medium]]></title>
        <description><![CDATA[Stories by Shubham Sawant on Medium]]></description>
        <link>https://medium.com/@shubhamsawant_48726?source=rss-99b9393faa38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YPEc_TP0ZB8Xgt0mNCYx9Q.jpeg</url>
            <title>Stories by Shubham Sawant on Medium</title>
            <link>https://medium.com/@shubhamsawant_48726?source=rss-99b9393faa38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:25:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shubhamsawant_48726/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hosting a website using AWS Lift & Shift]]></title>
            <link>https://medium.com/@shubhamsawant_48726/hosting-a-website-using-aws-lift-shift-c38a6f9ad158?source=rss-99b9393faa38------2</link>
            <guid isPermaLink="false">https://medium.com/p/c38a6f9ad158</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[auto-scaling-groups]]></category>
            <category><![CDATA[route-53]]></category>
            <category><![CDATA[load-balancer]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Shubham Sawant]]></dc:creator>
            <pubDate>Thu, 01 Aug 2024 20:34:21 GMT</pubDate>
            <atom:updated>2024-08-01T20:53:51.428Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>The cloud offers numerous advantages for hosting websites, including scalability, reliability, and cost-effectiveness. AWS provides a variety of services that make migrating and hosting a website straightforward. In this blog, I’ll walk you through the process of hosting a website using AWS Lift &amp; Shift, utilizing services such as EC2 and Route 53 .</p><h3>Prerequisites</h3><p>Before we start, ensure you have the following:</p><ul><li>An AWS account</li><li>Basic knowledge of AWS services</li><li>AWS CLI installed on your local machine</li><li>A <a href="https://github.com/hkhcoder/vprofile-project">website</a> ready to be hosted</li></ul><h3>Step-by-Step Guide</h3><h3>1. Setting Security Groups</h3><ul><li>We have to create 3 Security groups for Load balancer, Backend Services and the one for the App.</li><li>LB allowing traffic from HTTP and SSH</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVzlyYzDDzip5sQM9KkGcw.png" /><figcaption>Setting up ELB Security Group</figcaption></figure><ul><li>App allowing traffic from LB security group and PORT 8080</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAZIcfHJVcZb4Vd20d3wYg.png" /><figcaption>Setting up App Security Group</figcaption></figure><ul><li>Backend allowing traffic from PORT 3360, 11211 ,5672 and SSH</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OITthOoz7WXDYlXzgh-THA.png" /><figcaption>Setting up Backend Security Group</figcaption></figure><h3>2. Setting Up Instances</h3><ul><li>We have to launch 4 instances — 3 for backend(Ubuntu) and 1 for app(Centos).</li><li>So we have to clone the Repository folder from the Github.</li><li>Then select the branch as AWS Lift and Shift</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rcroyljeAEQznvX7OA-yQ.png" /><figcaption>Changing Main Branch</figcaption></figure><ul><li>Then go to the userdata folder which contains the scripts which we have to run while launching the instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyjbYi22ZWPnXH2yHcO0ng.png" /><figcaption>Script Files</figcaption></figure><ul><li>Launch the instances.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*W9QqKGOy-UDFTfsMjPiP7w.png" /><figcaption>Setting Up Database Instance — db01</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*1GH0C9KWcl-LeCrSXN5lIQ.png" /><figcaption>Setting Up Memcached Instance — mc01</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*8l4Bc4nstV3Cneqz2-_Y3Q.png" /><figcaption>Setting Up RabbitMQ Instance — rmq01</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*rknUF-EP94sDpdJbnUXx2g.png" /><figcaption>Setting Up App Instance — app01</figcaption></figure><ul><li>Login to each instance and check the services whether running or not.</li></ul><h3>3. Setting Up Route 53 for Domain Management</h3><p><strong>Register a Domain and Create a Hosted Zone</strong></p><ul><li>Navigate to the Route 53 service in the AWS Management Console.</li><li>Register a new domain or use an existing one.</li><li>Create a new hosted zone for your domain.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1txmXOXJe_OFIbyTMcqQQ.png" /><figcaption>Naming Hosting Zone</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUK-MYwVMpZGq-sTra-xuQ.png" /><figcaption>Selecting Default VPC</figcaption></figure><ul><li>Click on create record and create 3 new records for each backend service.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SxhCM6_Iub52ESlpj7ZxA.png" /><figcaption>Create new record</figcaption></figure><ul><li>Choose Simple Routing Policy for each.</li><li>Name each record and give the endpoint as the private IP of the instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-QJwO4qDwY1n1AlW718k_A.png" /><figcaption>db01 Record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxqJycxNWzo4yQPWSX1Q5Q.png" /><figcaption>mc01 Record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7n7Tkvv_kcVfLJ3XF9UShA.png" /><figcaption>rmq01 Record</figcaption></figure><h3>4. Setting Up IAM Roles and Users for S3 Full Access</h3><p><strong>Create an IAM User</strong></p><ul><li>Navigate to the IAM Dashboard in the AWS Management Console.</li><li>Click “Users” and then “Add user.”</li><li>Search for and select the policy <strong>AmazonS3FullAccess.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Zj9fHSKQOvnotUPclMU-w.png" /><figcaption>S3 Full access permission</figcaption></figure><ul><li>Go to Security Credentials and Create an Access key</li><li>Use the CLI Option</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFRf0xsouvMuryFY7FAS2w.png" /><figcaption>Access key</figcaption></figure><ul><li>Configure the aws using CLI.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*Q4Xe_eOQPYMUzOIIHbwOqw.png" /><figcaption>Configuring aws</figcaption></figure><p><strong>Create an IAM Role for EC2 with S3 Full Access</strong></p><ul><li>In the IAM Dashboard, click “Roles” and then “Create role.”</li><li>Select “AWS service” and then “EC2” as the use case.</li><li>Search for and select the policy <strong>AmazonS3FullAccess.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_XmD2nNfbZWn_ApOZqHBeA.png" /><figcaption>Setting permission</figcaption></figure><p><strong>Attach the IAM Role to Your EC2 Instance</strong></p><ol><li>Navigate to the EC2 Dashboard and select your instance.</li><li>Click “Actions,” then “Security,” and “Modify IAM role.”</li><li>Select the role and click &quot;Update IAM role.&quot;</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OteFujgNoalBPquH67E_Cw.png" /><figcaption>Modiy IAM role</figcaption></figure><h3>5. Build and Deploy Artifacts</h3><ul><li>Go to /src/main/resources/application.properties and edit the name according to the name of hosted zone in <strong>Route 53.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VARh4JKnKUSGl53MSMFNcQ.png" /><figcaption>Changing the routes</figcaption></figure><ul><li>Then Run the command mvn install</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGogxyrPgOyCSTL99cx5dw.png" /><figcaption>mvn install</figcaption></figure><ul><li>We can get the target file over there which we have to upload on S3.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*3j3WApczemsRbGAYFDaVeA.png" /><figcaption>Created target group</figcaption></figure><ul><li>Create a bucket using CLI and copy the target file into the bucket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMDXwm371haFhDSU63GtGg.png" /><figcaption>S3 bucket creation</figcaption></figure><ul><li>login to the tomcat instance and install aws cli.</li><li>Then copy the target filr from s3 to the ROOT location</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*kIziShEL-JNRgJnJsl8jbQ.png" /><figcaption>Copy the target file to Root</figcaption></figure><h3>5. Setting Up an Auto Scaling Group and Load Balancer</h3><p><strong>Create a Target Group</strong></p><ul><li>Create a target group for the load balancer.</li><li>Register your EC2 instances as targets.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ac1Bvv5rkur05rnNjyYKzw.png" /><figcaption>Selecting the VPC</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdioBQ4PqbStN7uf8aHK-w.png" /><figcaption>Setting health checks</figcaption></figure><p><strong>Create a Load Balancer</strong></p><ul><li>Navigate to the EC2 Dashboard and click on “Load Balancers” under the Load Balancing section.</li><li>Click “Create Load Balancer.”</li><li>Choose the type of Application Load Balancer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GtZk_b4NA2ghHmJDJNRZ0w.png" /><figcaption>Basic Configuration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6cnPcEqawPbpwjO6gRJeg.png" /><figcaption>Select VPC and Availability zones</figcaption></figure><ul><li>Select the targe group created earlier</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8bakIp5DozCXa5gdADduQ.png" /></figure><ul><li>Using the instances private IP and Load balancer DNS we can access the site.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQ_OgHVP_s6Af5PMDOU68A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VkW0qsgGTpRvNns3V_SpNQ.png" /></figure><p><strong>Create an Image(AMI)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFfpUea7hetdspvFh5pZQA.png" /><figcaption>Creating AMI</figcaption></figure><p><strong>Create an Launch Template</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NTFqXYwInFfaWkrhEbdN4A.png" /><figcaption>Select the AMI created above</figcaption></figure><p><strong>Create an Auto Scaling Group</strong></p><ul><li>Navigate to the Auto Scaling Groups section under EC2 Dashboard.</li><li>Click “Create Auto Scaling group.”</li><li>Choose the launch template or configuration, which specifies the instance details.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXLoIdFmprvIb1febV5BBw.png" /><figcaption>Selecting Launch template</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6L8aXNJdiwb57XqDwpbjw.png" /><figcaption>Select the VPC and Availability Zone</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uCF5izf7h2oOF-Qj4DFIeg.png" /><figcaption>Select the Load balancer which was created</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfethznvNYjIosvfGhQskQ.png" /><figcaption>Health of instance type</figcaption></figure><ul><li>Configure the group size, scaling policies, and target group.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYtBCMCU2wDu58RYkWM-cQ.png" /><figcaption>Selecting Group Size</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAATcQEmgOxTrFl0ccoyaw.png" /><figcaption>Selecting Scaling Policy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RokOatN3YBTAvu5SvRvKOg.png" /><figcaption>Maintenance Policy</figcaption></figure><ul><li>Then create the Auto Scaling Group.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nlBw7YQFt6laR7zHXnFKQ.png" /><figcaption>Instances created by Auto Scaling Group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l25ZxzA9YJOZ4pEji1sAbA.png" /><figcaption>Registered Target</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c38a6f9ad158" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting a website using various AWS services]]></title>
            <link>https://medium.com/@shubhamsawant_48726/hosting-a-website-using-various-aws-services-645fb142ed40?source=rss-99b9393faa38------2</link>
            <guid isPermaLink="false">https://medium.com/p/645fb142ed40</guid>
            <category><![CDATA[aws-beanstalk]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[rds-mysql]]></category>
            <category><![CDATA[memcached]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <dc:creator><![CDATA[Shubham Sawant]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 22:07:25 GMT</pubDate>
            <atom:updated>2024-07-30T22:07:53.835Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Hosting an application on AWS can seem daunting, but with the right approach, it becomes manageable and efficient. In this blog, I’ll walk you through how I hosted my application using AWS Elastic Beanstalk, EC2, and S3, among other services. This guide will provide a comprehensive step-by-step process, ensuring you have everything you need to get started.</p><p><strong>Prerequisites</strong></p><p>Before diving into the steps, make sure you have the following:</p><ul><li>An AWS account.</li><li>Basic knowledge of AWS services.</li><li>Tools: AWS, Visual Studio Code, Gitbash .</li></ul><p><strong>Setting Up AWS Services</strong></p><h3><strong>RDS for Database</strong></h3><p>Before creating an <strong>RDS</strong> we need to create an Subnet group and parameter group for that RDS.</p><ol><li><strong>Creating an Subnet Group and Parameter group</strong></li></ol><ul><li>Navigate to the <strong>RDS</strong> service in the AWS Management Console.</li><li>Click on “Subnet groups” and create a subnet group with following settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XestXyc9lOFuPwCtsSEcCg.png" /><figcaption>Creating a subnet group</figcaption></figure><ul><li>Click on “Parameter groups” and create a Parameter group with following settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_40hPEw12MPDuz39r3TEg.png" /><figcaption>Creating a parameter group</figcaption></figure><p><strong>2. Creating an RDS</strong></p><ul><li>Click on “Create Database”.</li><li>Choose the MySQL database engine and follow the setup wizard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJHBDvpxYQ1V6Z3s9J_m9w.png" /><figcaption>Selecting the version and Template</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUAUZHDhdF53aihXnyV43g.png" /><figcaption>Basic settings like naming and username password</figcaption></figure><ul><li>Configure instance specifications, storage, and connectivity settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ROhO8SMxRUSYzD9JYTJoDw.png" /><figcaption>Instance Configuration and storage</figcaption></figure><p><strong>3. Configuring Security Groups and Connection Settings</strong></p><ul><li>Create this security group from EC2 which allows traffic from itself</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uH5FL26zT-RhoXb4h-7oTw.png" /><figcaption>Security group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hMcih2uNsFKEPlJ83pDGMw.png" /><figcaption>Connectivity configurations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kmaYgBX2Bbfi-0PYzAyPIg.png" /><figcaption>Connectivity configurations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bOL-W9gLnNk19SIJ6U_pnw.png" /><figcaption>Monitoring</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDfW27LCpK8J_Y2nG_1tHg.png" /><figcaption>Additional Configs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9hTXRwa1VVlQadiPbrofog.png" /><figcaption>Maintenance and final costing</figcaption></figure><ul><li>Note down the Username and password by clicking of view credentials</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*nA-0uF6ZgT9rqYqGRfToZA.png" /><figcaption>Username and password</figcaption></figure><h3><strong>ElastiCache for Caching</strong></h3><ol><li><strong>Creating an Subnet Group and Parameter group</strong></li></ol><ul><li>Navigate to the <strong>Elasticache</strong> service in the AWS Management Console.</li><li>Click on “Subnet groups” and create a subnet group with following settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53moU3wV1hSpQWEg_aSCIQ.png" /><figcaption>Subnet group</figcaption></figure><ul><li>Click on “Parameter groups” and create a Parameter group with following settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5n1v17BKxkN90ssSsw2P5w.png" /><figcaption>Parameter group</figcaption></figure><p><strong>2. Creating an ElastiCache Cluster</strong></p><ul><li>Navigate to the ElastiCache service in the AWS Management Console.</li><li>Click on “Create” and choose the Memcached engine.</li><li>Follow the setup wizard to configure the cluster settings.</li><li>Select to “<strong>Design your own cluster</strong>” using “<strong>Standard Creat</strong>e” and choose the location as “<strong>AWS Cloud</strong>”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZIQ17Xe0gfSLSWNLBQKrQ.png" /><figcaption>Configuring Cluster settings</figcaption></figure><p><strong>3. Configuring Cache Settings and Security</strong></p><ul><li>Ensure the ElastiCache cluster is in the same VPC as your application.</li><li>Update the security group to allow connections from your application instances.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o75Qsy_r--O3SyR8RxPyDw.png" /><figcaption>Select the subnet group which we created</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x46aK3YQVrN7BrrERSLbLg.png" /><figcaption>Select the security group which we have created</figcaption></figure><p><strong>Amazon MQ for Messaging</strong></p><ol><li><strong>Setting Up Amazon MQ</strong></li></ol><ul><li>Go to the Amazon MQ service in the AWS Management Console.</li><li>Click on “Create Broker” .</li><li>Choose the RabbitMQ broker engine and configure instance settings.</li><li>Choose the deployment method as “single-instance broker” and follow the setup wizard.</li></ul><p><strong>2. Configuring Security and Access</strong></p><ul><li>Set up users and permissions for accessing the message broker.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QQ80A-bjmashV18z6-IFWQ.png" /><figcaption>Configuring name username and password</figcaption></figure><ul><li>Ensure the security group allows access from your application instances.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECb3TtMAYWctWFGYwG-4Ag.png" /><figcaption>Select the security group which we have created</figcaption></figure><h3><strong>EC2 Instance</strong></h3><p>We have to launch an Ubuntu instance to setup the database of RDS(MySQL)</p><ol><li><strong>Launching an EC2 Instance</strong></li></ol><ul><li>Go to the EC2 Dashboard.</li><li>Click on “Launch Instance” and follow the wizard to configure your instance.</li></ul><p><strong>2. Security Group Configuration</strong></p><ul><li>Create or select an existing security group.</li><li>Add rules to allow RDS(port 3306) traffic.</li><li>Add an SSH rule (port 22) for remote access.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQXbL5Ue6EJghvOoxWVTJQ.png" /><figcaption>Add the RDS sg to the source</figcaption></figure><p>3. Installing my-sql on Instance</p><ul><li>sudo apt update &amp;&amp; sudo apt install mysql-client -y</li><li>Clone the github code from <a href="https://github.com/hkhcoder/vprofile-project">https://github.com/hkhcoder/vprofile-project</a></li><li>Copy the my-sql database file from src/main/resources/db_backup to RDS database.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*R66iCeP9cZI8wIvWPgbwMA.png" /></figure><ul><li>Then terminate the instance.</li></ul><h3><strong>Elastic Beanstalk</strong></h3><ol><li><strong>Creating an IAM role for Beanstalk</strong></li></ol><ul><li>Create a new IAM role and add these permissions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLVAN6x4vP8q1G3J7mtDIQ.png" /><figcaption>IAM Permissions</figcaption></figure><p><strong>2. Creating an Elastic Beanstalk Environment</strong></p><ul><li>Navigate to the Elastic Beanstalk service in the AWS Management Console.</li><li>Click on “Create New Application”.</li><li>Follow the prompts to set up your application environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mY2bsGBVYSG7htcJ3LdRaA.png" /><figcaption>Application name and environment</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FX4UcFD3ilMG8V8iU8q_Ow.png" /><figcaption>Selecting the platform and version for it</figcaption></figure><ul><li>Select the presets as “custom configurations”.</li><li>Create ans use new service role name and select the EC2 instance role which we have created earlier.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rg4KbEHJjvK5ivQdNVx2EQ.png" /><figcaption>Service role and instance role</figcaption></figure><p><strong>3. Configuring Environment Settings</strong></p><ul><li>Customize your environment by selecting the instance type, VPC, and other settings.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ReQfUM_rniyVyO2yzEEEPQ.png" /><figcaption>VPC</figcaption></figure><ul><li>Keep the rest as default and change the capacity i.e. autoscaling group.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwbEIbF3qOhRFVjuyZmbow.png" /><figcaption>Auto scaling</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SbS-Ir-GXYWJMr7j3V5Vw.png" /><figcaption>Set instance type</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P75Z-2au2ygEuj5fFCzHXw.png" /><figcaption>Settinng up scaling triggers</figcaption></figure><p><strong>4. Load Balancer settings</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cn8oAum3I8-dXvJsrsD0Qg.png" /><figcaption>Load balancer</figcaption></figure><ul><li>Change the processes health path to “/login”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkBoU_167WZmR5cr7tZI6Q.png" /></figure><ul><li>Keep the rest as default and change the Application Deployment policy to “rolling”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CszuNalvMobx9KzQb-C6-g.png" /><figcaption>Application Deployment policy</figcaption></figure><h3><strong>Modify the security group</strong></h3><ol><li>Add the Security group of Elastic Beanstalk to the Security group of backend.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U5gorycOkKt9ubcyOTvwPw.png" /><figcaption>Backend Security group</figcaption></figure><h3><strong>Build And Deploy Artifact</strong></h3><ol><li>Open the app file in visual studio code and go to the path /src/main/resources/application.properties</li><li>Paste all the end points of RDS, Elasticache and RabbitMQ at the specified location.</li><li>Then update the username and password which we have set in RDS and RabbitMQ.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqKwqzoKUnQuklKE9yxEEg.png" /></figure><p>4. Then run command <strong>mvn install</strong> in terminal.</p><p>5. We will get a target folder which contains the vprofile-ve.war file which we have to deploy on RDS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNpVTo_lgg61u7thhxP9kw.png" /><figcaption>Target file</figcaption></figure><p>6. Upload that file on RDS and Our webapp will be running within 15–20 mins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANiRna3R3JiRjzzVNGy9ZQ.png" /></figure><h3><strong>Final Hosted Webpage</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XV6cJ4xt5Jq8wWuEahImYQ.png" /><figcaption>login page</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645fb142ed40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importance and Benefits of using Semantic tags in Web Development]]></title>
            <link>https://medium.com/@shubhamsawant_48726/importance-and-benefits-of-using-semantic-tags-in-web-development-6903850d2245?source=rss-99b9393faa38------2</link>
            <guid isPermaLink="false">https://medium.com/p/6903850d2245</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[semantic-segmentation]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html-css]]></category>
            <dc:creator><![CDATA[Shubham Sawant]]></dc:creator>
            <pubDate>Sun, 16 Oct 2022 19:02:08 GMT</pubDate>
            <atom:updated>2022-10-16T19:02:08.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Want to know what are semantic HTML tags? Or what are the benefits of using these tags? then you have came across right blog.</p><p>The HTML tags which clearly gives an idea about its content to the browser and the developer are known as Semantic tags. Let&#39;s take an example -</p><p><strong>&lt;div&gt;</strong> is a HTML tag and it defines nothing about its content so it is a non-semantic tag. On the other hand<strong>,&lt;nav&gt;</strong> is a HTML tag and it gives ideas about its content so it is a semantic tag.</p><p>Now you think what is the importance of using Semantic tags? So the answer is given below -</p><p><strong>Specific Purpose and Easy to Understand-</strong><br>Semantic tags have their own purpose, it’s easier for both people and browsers to read and understand it. Let’s understand this with an example. If your brother handed you two lists and told you to buy all the fruits from any one of the list. Those two lists are as given below :</p><p>1) A fruit which is green outside, red inside, watery, and sweet to taste.<br>2) A fruit which is yellow outside, white inside, and sweet to taste.<br>Fruits list two -<br>1) Watermelon<br>2) Banana</p><p>The above two lists are the same but the second one is easy to understand. Similarly for non-semantic tags you need to refer to its styling to understand it, while one can easily understand the meaning of semantic tags without CSS.</p><p>Code with non semantic tags -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*Al0d0kV0PzwdsTDlTs0gYw.jpeg" /></figure><p>Code with semantic tags -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*jT-F_0usOCXAAwUmsiDvag.jpeg" /></figure><p>Among above code snippets the one with semantic tags gives clear idea about its components.</p><p><strong>Search Engine Optimization -</strong><br>Also using semantic tags helps you in SEO of your website so it will reach your target audience. Search engines set keyword importance by their placement in the HTML document. For example, keywords enclosed in an <strong>&lt;h1&gt;</strong> tag are given more importance than those enclosed in an <strong>&lt;div&gt;</strong>.</p><p><strong>Responsiveness -</strong><br>Using Semantic tags makes your website responsive without using @ media queries.</p><p><strong>Advantage in Coding Round-</strong><br>Big companies like Microsoft looks at this good coding practices in their machine coding round of hiring process.</p><p>These are some benefits of using Semantic HTML tags. Let me know your thoughts on this in comment section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6903850d2245" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>