<?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 Mohan Medisetti on Medium]]></title>
        <description><![CDATA[Stories by Mohan Medisetti on Medium]]></description>
        <link>https://medium.com/@mohanmedisetti?source=rss-3e36bdca609a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CqJCoNbB1wq2IJ0j7Rjomw.jpeg</url>
            <title>Stories by Mohan Medisetti on Medium</title>
            <link>https://medium.com/@mohanmedisetti?source=rss-3e36bdca609a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 19:39:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohanmedisetti/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[Consumer VPC to Provider VPC Connectivity with AWS PrivateLink]]></title>
            <link>https://medium.com/@mohanmedisetti/consumer-vpc-to-provider-vpc-connectivity-with-aws-privatelink-d704aae37476?source=rss-3e36bdca609a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d704aae37476</guid>
            <category><![CDATA[aws-privatelink]]></category>
            <category><![CDATA[aws-networking]]></category>
            <dc:creator><![CDATA[Mohan Medisetti]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 20:12:10 GMT</pubDate>
            <atom:updated>2025-01-03T20:12:10.206Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypv4vlgadfdPZeOMmvUFAA.png" /></figure><blockquote>Connecting two VPCs (Virtual Private Clouds) securely and efficiently is a common requirement in cloud architecture. AWS PrivateLink is a powerful feature for enabling secure connectivity between a consumer VPC and a provider VPC while avoiding exposure to the public internet. In this article, we’ll explore how to connect a consumer VPC and a provider VPC using AWS PrivateLink, with specific configurations for private and public subnets in each VPC.</blockquote><p><strong>Architectural Overview:</strong></p><p><strong>Consumer VPC Configuration</strong></p><ul><li><strong>Private Subnet:</strong> Contains an Amazon EKS cluster for deploying containerized applications.</li><li><strong>Public Subnet:</strong> Hosts a Bastion Server to enable secure access to resources in the private subnet. It also includes a NAT Gateway for outbound internet traffic.</li></ul><p><strong>Provider VPC Configuration</strong></p><ul><li><strong>Private Subnet:</strong> Hosts a private EC2 instance providing backend services.</li><li><strong>Public Subnet:</strong> Hosts a Bastion Server to facilitate secure access to the private EC2 instance.</li></ul><p>Using AWS PrivateLink, we will connect these VPCs securely. The private EC2 instance in the provider VPC will expose its services to the consumer VPC through an endpoint service. This architecture ensures that the traffic remains private and avoids traversal over the public internet.</p><p><strong>Key Components</strong></p><ol><li><strong>Endpoint Service (Provider):<br></strong>Configured in the provider VPC.<br>Exposes the private EC2 instance’s services securely.</li><li><strong>VPC Endpoint (Consumer):<br></strong>Configured in the consumer VPC.<br>Enables private connectivity to the provider VPC’s endpoint service.</li><li><strong>IAM Roles and Policies:<br></strong>Control access to the endpoint and restrict unnecessary permissions.</li><li><strong>Security Groups:<br></strong>Allow traffic between the consumer VPC’s private subnet and the provider VPC’s private EC2 instance.</li></ol><p><strong>Step-by-Step Implementation</strong></p><p><strong>1. Setting up the Provider VPC</strong></p><p><strong><em>Create an Endpoint Service</em></strong></p><ol><li>Launch a private EC2 instance in the provider VPC’s private subnet.</li><li>Ensure the private EC2 instance is running a service (e.g., an HTTP server).</li><li>Create an NLB (Network Load Balancer) in the provider VPC.<br>- Attach the private EC2 instance to the NLB as a target.</li><li>Create an Endpoint Service for the NLB:<br>- Enable acceptance of connection requests.<br>- Specify allowed principals (e.g., the consumer account ID).</li></ol><p><strong><em>Configure Security Groups</em></strong></p><ul><li>Allow traffic from the consumer VPC’s private subnet to the NLB.</li></ul><p><strong>2. Setting up the Consumer VPC</strong></p><p><strong><em>Create a VPC Endpoint</em></strong></p><ol><li>Navigate to the <strong>VPC Console</strong> in the AWS Management Console.</li><li>Create a VPC Endpoint:<br>Select the endpoint service created in the provider VPC.</li><li>Specify the private subnet in the consumer VPC for the endpoint.</li></ol><p><strong><em>Update Routing</em></strong></p><ul><li>Modify the route table for the consumer VPC’s private subnet to include the VPC endpoint.</li></ul><p><strong><em>Configure Security Groups</em></strong></p><ul><li>Allow traffic from the private subnet to the provider’s endpoint service.</li></ul><p><strong>3. Testing the Connectivity</strong></p><ol><li>Use the Bastion Server in the consumer VPC to connect to the private EKS cluster.</li><li>From the EKS cluster, initiate a connection to the private EC2 instance in the provider VPC using the service URL.</li><li>Verify connectivity and data transfer.</li></ol><p><strong>Benefits of AWS PrivateLink</strong></p><ol><li><strong>Enhanced Security:</strong> Traffic remains within the AWS network and does not traverse the public internet.</li><li><strong>Simplified Network Configuration:</strong> No need for complex peering or VPN setups.</li><li><strong>Reduced Latency:</strong> Direct connectivity improves performance.</li></ol><p><strong>Best Practices</strong></p><ol><li>Use <strong>IAM Policies</strong> to restrict access to the VPC Endpoint.</li><li>Implement <strong>logging and monitoring</strong> using AWS CloudWatch for the NLB and Endpoint Service.</li><li>Regularly review <strong>security group rules</strong> to minimize exposure.</li><li>Automate the setup using AWS CloudFormation or Terraform for consistent and repeatable deployments.</li></ol><p>By leveraging AWS PrivateLink, you can achieve secure, scalable, and efficient connectivity between consumer and provider VPCs. This setup is ideal for use cases like SaaS applications, cross-VPC service consumption, and more, ensuring a robust and secure cloud architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d704aae37476" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building and Deploying a Java Web Application on a Tomcat Server Using Jenkins]]></title>
            <link>https://medium.com/@mohanmedisetti/building-and-deploying-a-java-web-application-on-a-tomcat-server-using-jenkins-83c8d1aef161?source=rss-3e36bdca609a------2</link>
            <guid isPermaLink="false">https://medium.com/p/83c8d1aef161</guid>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[jenkins-pipeline]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[tomcat]]></category>
            <dc:creator><![CDATA[Mohan Medisetti]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 13:52:31 GMT</pubDate>
            <atom:updated>2024-06-20T13:52:31.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4jZ87GbAfBpLzpOs7vFVA.jpeg" /></figure><blockquote><strong><em>Introduction:</em></strong> In this guide, we’ll walk through setting up a Jenkins pipeline to build and deploy a Java web application to an Apache Tomcat server. Automating your deployment process with Jenkins helps streamline development workflows, ensuring that code changes are continuously integrated, tested, and deployed. We’ll cover everything from setting up your server to configuring Jenkins and Tomcat, with all the necessary commands and configurations explained in detail.</blockquote><h3><strong>Prerequisites:</strong></h3><blockquote>AWS EC2 Instance:<br> — Minimum instance type: `t2.medium`<br> — Minimum volume: 20 GiB</blockquote><blockquote>Software:<br> — Jenkins: Version 2.452.2<br> — Apache Tomcat: Version 9.0.65<br> — Java Development Kit (JDK): OpenJDK 11 or later<br> — Maven: Apache Maven 3.6.3 or later</blockquote><blockquote><strong>Step 1: Setting Up the EC2 Instance</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Z-gayn0OGaf7DHFi_deBQ.png" /></figure><ol><li>Launch an EC2 Instance:<br> — Open the AWS Management Console and navigate to the EC2 Dashboard.<br> — Click “Launch Instance.”<br> — Choose an Amazon Machine Image (AMI) with Ubuntu.<br> — Select the instance type `t2.medium`.<br> — Configure instance details and add storage with at least 20 GiB.<br> — Review and launch the instance.</li><li>Connect to the EC2 Instance:<br> — Use SSH to connect to your instance:<br> <strong><em>ssh -i your-key-pair.pem ubuntu@your-ec2-instance-public-dns</em></strong></li></ol><blockquote><strong>Step 2: Installing and Configuring Jenkins</strong></blockquote><p>1. Install Java:<br> — Jenkins requires Java to run. Install OpenJDK:<br> <strong><em>sudo apt update<br> sudo apt install openjdk-11-jdk -y</em></strong></p><p>2. Download and Run Jenkins:<br> — Download Jenkins WAR file:<br> <strong><em>wget </em></strong><a href="https://get.jenkins.io/war-stable/2.452.2/jenkins.war"><strong><em>https://get.jenkins.io/war-stable/2.452.2/jenkins.war</em></strong></a></p><p>Run Jenkins on port 8083:<br> <strong><em>java -jar jenkins.war — httpPort=8083</em></strong></p><p>3. Access Jenkins:<br> — Open your web browser and navigate to `http://your-ec2-instance-public-dns:8083`.<br> — Follow the instructions to unlock Jenkins and install the recommended plugins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*DzniNe3czAGHuSmkws8_jw.png" /></figure><blockquote><strong>Step 3: Installing Maven<br> </strong>Maven is a build automation tool used for Java projects.</blockquote><p>1. Install Maven:<br> <strong><em>sudo apt update<br> sudo apt install maven -y</em></strong></p><blockquote><strong>Step 4: Installing and Configuring Tomcat</strong><br> Apache Tomcat is an application server used to run Java web applications.</blockquote><p>1. Install Tomcat:<br> <strong><em>cd /opt<br> sudo wget </em></strong><a href="https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65.tar.gz"><strong><em>https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65.tar.gz</em></strong></a><strong><em><br> sudo tar -xvf apache-tomcat-9.0.65.tar.gz</em></strong></p><p>2. Configure Tomcat Users:<br> <strong><em>cd /opt/apache-tomcat-9.0.65/conf<br> sudo vi tomcat-users.xml</em></strong></p><p>Add the following line before the last line:</p><p>xml<br> &lt;user username=”admin” password=”admin1234&quot; roles=”admin-gui,manager-gui,manager-script”/&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZ7UYiZxZozvIGi0RNJP7A.png" /></figure><p>3. Create Symlinks for Tomcat Scripts:<br> <strong><em>sudo ln -s /opt/apache-tomcat-9.0.65/bin/startup.sh /usr/bin/startTomcat<br> sudo ln -s /opt/apache-tomcat-9.0.65/bin/shutdown.sh /usr/bin/stopTomcat</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*OHEOnMZShX8bQecLlUqgjg.png" /></figure><p>4. Modify Tomcat Context Configuration:<br> — Comment out the `RemoteAddrValve` in the `manager` and `host-manager` context files:</p><p><strong><em>sudo vi /opt/apache-tomcat-9.0.65/webapps/manager/META-INF/context.xml</em></strong></p><p><strong><em>Comment:<br> xml<br> &lt;! — Valve className=”org.apache.catalina.valves.RemoteAddrValve”<br> allow=”127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1&quot; /&gt; →</em></strong></p><p>Repeat the same for `host-manager`:<br> <strong><em>sudo vi /opt/apache-tomcat-9.0.65/webapps/host-manager/META-INF/context.xml</em></strong></p><p>5. Start Tomcat:<br> startTomcat</p><blockquote><strong>Step 5: Configuring Jenkins</strong></blockquote><p>Install Required Plugins<br> 1. Maven Plugin:<br> — Go to `Manage Jenkins` &gt; `Manage Plugins` &gt; `Available` tab.<br> — Search for `Maven Integration` and install it.</p><p>2. Deploy to Container Plugin:<br> — Go to `Manage Jenkins` &gt; `Manage Plugins` &gt; `Available` tab.<br> — Search for `Deploy to Container` and install it.</p><p>Add Tomcat Credentials in Jenkins<br> 1. Add Credentials:<br> — Go to `Manage Jenkins` &gt; `Manage Credentials` &gt; `(global)` &gt; `Add Credentials`.<br> — Select `Username with password` and enter:<br> — Username: `admin`<br> — Password: `admin1234`</p><blockquote><strong>Step 6: Creating the Jenkins Pipeline</strong></blockquote><p>1. Create a New Jenkins Job:<br> — Go to the Jenkins dashboard, click `New Item`, enter a name, select `Pipeline`, and click `OK`.</p><p>2. Configure the Pipeline:<br> — In the pipeline configuration, scroll down to the `Pipeline` section and select `Pipeline script`.</p><p>Enter the following pipeline script:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SdMAnlUp2QlmejLVtlOlRQ.png" /></figure><p><strong>Step 7: Running the Pipeline</strong></p><p>1. Build the Jenkins Job:<br> — Save the pipeline configuration.<br> — Click on `Build Now` to start the pipeline.<br> — Monitor the build process through the console output.</p><p>By following these steps, you have successfully set up a Jenkins pipeline to build and deploy a Java web application on a Tomcat server. This automated process ensures that code changes are continuously integrated, tested, and deployed, which minimizes manual intervention and reduces errors. This setup is a powerful way to streamline your software development lifecycle and maintain a high level of efficiency and reliability in your deployments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83c8d1aef161" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering AWS: Networking and Content Delivery Basics]]></title>
            <link>https://medium.com/@mohanmedisetti/mastering-aws-networking-and-content-delivery-basics-f8970390dd6b?source=rss-3e36bdca609a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8970390dd6b</guid>
            <category><![CDATA[content-delivery]]></category>
            <category><![CDATA[aws-networking]]></category>
            <dc:creator><![CDATA[Mohan Medisetti]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 01:56:24 GMT</pubDate>
            <atom:updated>2024-06-12T01:56:24.495Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction:</p><p>In today’s digital age, where the internet serves as the backbone of countless applications and services, understanding how data travels across networks and reaches end-users is crucial. Amazon Web Services (AWS), one of the leading cloud service providers, offers a wealth of tools and services to manage networking and deliver content efficiently. In this beginner’s guide, we’ll embark on a journey to unravel the mysteries of AWS networking and content delivery, empowering you to navigate the cloud with confidence.</p><h4><strong>Section 1: Exploring the Basics of AWS Networking:</strong></h4><p>Before we delve into the complexities of AWS networking, let’s lay down the foundation by understanding some basic concepts.</p><p>Topics Covered:</p><p>1. <strong>Virtual Private Cloud (VPC):</strong> Imagine VPC as your own private space within AWS, where you can launch resources like virtual servers and databases.</p><p>2. <strong>Subnets and Routing:</strong> Think of subnets as different rooms within your VPC, each serving a specific purpose, and routing as the pathways that connect these rooms.</p><p>3. <strong>Internet Gateway and NAT Gateway:</strong> Just like a gateway allows you to access the outside world from your home, an Internet Gateway enables your resources within a VPC to communicate with the internet, while a NAT Gateway facilitates internet access for private resources.</p><p>4. <strong>Security Groups and NACLs:</strong> Picture security groups as digital bouncers that control who can enter and exit your virtual space, while Network Access Control Lists (NACLs) act as additional security measures to filter traffic.</p><h4><strong>Section 2: Speeding Up Content Delivery with AWS CloudFront</strong></h4><p>Imagine you’re sending a package to a friend. Instead of traveling all the way to their house yourself, you can enlist the help of a courier service like CloudFront to deliver it for you, faster and more efficiently.</p><p>Topics Covered:</p><p>1. What is a <strong>CDN</strong>?: CDN, or Content Delivery Network, is like a network of express lanes on the internet, designed to deliver content quickly by caching it closer to users.</p><p>2. Meet <strong>CloudFront:</strong> CloudFront is AWS’s own CDN service, equipped with features to accelerate content delivery, secure data, and provide real-time insights.</p><p>3. Integration with Other AWS Services: CloudFront seamlessly integrates with other AWS services like <strong>S3</strong> for storing content, <strong>EC2</strong> for hosting applications, and <strong>Lambda</strong> for executing serverless functions.</p><p>4. Real-World Scenario: Let’s imagine a video streaming service using CloudFront to deliver movies and shows to viewers worldwide, ensuring smooth playback and reducing buffering times.</p><h4><strong>Section 3: Building Secure and Scalable Networks on AWS</strong></h4><p>Just like building a sturdy house requires a solid foundation and sturdy walls, creating a secure and scalable network on AWS demands careful planning and implementation.</p><p>Topics Covered:</p><p>1. Deploying Across Multiple Zones: Imagine spreading your resources across multiple neighborhoods to minimize the impact of a power outage in one area — deploying resources across multiple <strong>Availability Zones </strong>achieves the same goal.</p><p>2. Connecting VPCs Securely: Sometimes, you might want to connect different virtual spaces within AWS securely — <strong>VPC peering </strong>and <strong>Transit Gateway</strong> allow you to do just that.</p><p>3. Protecting Against Cyber Threats: Cyber threats, like unwanted guests, can pose a risk to your network’s security — services like <strong>AWS Shield</strong> shield your applications from <strong>DDoS </strong>attacks and other malicious activities.</p><p>4. Real-World Scenario: Consider a popular e-commerce platform safeguarding its network against cyber threats and ensuring uninterrupted service for its customers, thanks to a <strong>resilient architecture</strong> built on AWS.</p><p>By demystifying AWS networking and content delivery, we’ve equipped you with the knowledge and tools to navigate the cloud landscape effectively. Whether you’re launching your first virtual server or streaming high-definition videos to millions of viewers, understanding these fundamental concepts will empower you to harness the full potential of AWS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8970390dd6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>