<?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 Savindu Amalka on Medium]]></title>
        <description><![CDATA[Stories by Savindu Amalka on Medium]]></description>
        <link>https://medium.com/@savinduamalka?source=rss-9874a578d0f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AIsQjXzLV9F3manW</url>
            <title>Stories by Savindu Amalka on Medium</title>
            <link>https://medium.com/@savinduamalka?source=rss-9874a578d0f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 12:50:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@savinduamalka/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[The Billion-Dollar Network Nobody Talks About: The Untold Story of Infor, TradeCard, GT Nexus, and…]]></title>
            <link>https://medium.com/@savinduamalka/the-billion-dollar-network-nobody-talks-about-the-untold-story-of-infor-tradecard-gt-nexus-and-fccbe90975e6?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fccbe90975e6</guid>
            <category><![CDATA[infor-sri-lanka]]></category>
            <category><![CDATA[infor-nexus]]></category>
            <category><![CDATA[koch-industries]]></category>
            <category><![CDATA[inforone]]></category>
            <category><![CDATA[infor]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 03:32:24 GMT</pubDate>
            <atom:updated>2026-06-06T03:32:24.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Billion-Dollar Network Nobody Talks About: The Untold Story of Infor, TradeCard, GT Nexus, and a Little Island Called Sri Lanka</h3><p>Behind every swoosh on a Nike shoe, behind every perfectly timed supply chain, behind the invisible rails of global trade — there’s a story most people have never heard. This is that story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgjrdFjdOcDAU3nfVb002A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36J1g7k66SBSariFm6oI2Q.jpeg" /></figure><h3>Prologue: The Invisible Infrastructure of the World</h3><p>The next time you hold a product in your hands — a pair of sneakers, a shirt, a laptop — pause for a second. That item traveled across oceans, moved through factories in multiple countries, passed through the hands of logistics companies, banks, and suppliers, before landing in yours.</p><p>Somewhere in the background, invisible but essential, a software network managed that journey. It tracked the shipment. It processed the payment. It told the factory what to make and told the ship where to go.</p><p>That network has a name. And the story of how it came to exist is one of the most fascinating, and least told, stories in the history of enterprise technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_rZN3ir1laGHtCd3CFOTQ.png" /></figure><h3>Chapter 2: TradeCard — Born at the World Trade Center (1999)</h3><p>In 1999, Kurt Cavano sat in an office at the World Trade Centers Association in New York City, surrounded by colleagues from American Management Systems and a handful of senior bankers from Bank of America. Their idea was audacious for its time: <em>deliver safe, secure, business-to-business international trade transactions over the internet.</em></p><p>No paper. No delays. No letters of credit.</p><p>Cavano founded TradeCard, one of the earliest fintech companies of the internet era. The platform connected buyers, suppliers, and financial institutions on a single cloud-based network — digitizing the entire procure-to-pay process. A brand could issue a purchase order, track its status through production, receive shipping documents, and authorize payment, all in one place.</p><p>TradeCard was solving a brutally specific problem: <strong>“How do companies pay and transact globally in a structured, digital way?”</strong></p><p>The company grew steadily. Backed by Warburg Pincus with over $80 million in funding across five rounds, TradeCard’s revenue grew 36% year over year by 2011, handling $25 billion in sourcing volume annually through its platform, used by 10,000 organizations and 45,000 individual users across more than 70 countries. Customers ranged from JCPenney to Columbia Sportswear.</p><p>But TradeCard could tell you that money moved. It couldn’t tell you where your goods were.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*cthPAPYHKmwI7i6hFbFzCA.png" /><figcaption><a href="https://en.wikipedia.org/wiki/TradeCard">https://en.wikipedia.org/wiki/TradeCard</a></figcaption></figure><h3>Chapter 3: GT Nexus — The Logistics Visionary (1998)</h3><p>A year earlier, in 1998, a different problem was being solved a continent away — in Oakland, California.</p><p>Aaron Sasson, John Urban, Greg Johnsen, and Anil Nair founded GT Nexus with a singular obsession: <strong>supply chain visibility</strong>. At a time when most companies still received shipping updates by fax, GT Nexus built one of the world’s first cloud-based platforms to connect manufacturers, logistics providers, and buyers in real time.</p><p>Where is my container ship? Has my order left the factory? What’s the customs status?</p><p>GT Nexus answered these questions at a time when nobody else could — and it did so by building a multi-enterprise network. Not software installed on one company’s server, but a shared digital platform that thousands of trading partners could plug into simultaneously.</p><p>By 2008, GT Nexus had acquired Metaship, expanding its logistics management capabilities. By 2013, it was the logistical nerve center for some of the world’s most complex supply chains.</p><p>But GT Nexus could tell you where your goods were. It couldn’t tell you that payment had been authorized.</p><p>Two platforms. Two halves of the same story. And the world’s biggest brands — including one very famous one — were using both of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFH-AQqbQBPa0mfa4vMfgg.avif" /></figure><h3>Chapter 4: The Nike Ultimatum — “Make Them One”</h3><p>Nike has one of the most complex supply chains on earth. Its products are designed in Oregon, made in factories across Vietnam, Indonesia, and China, shipped through dozens of ports, distributed to thousands of retailers, and sold in virtually every country in the world.</p><p>Nike was a customer of TradeCard. Nike was a customer of GT Nexus.</p><p>And Nike had a message for both companies that was simple, direct, and impossible to ignore:</p><p><em>“Why are these two systems separate? We need end-to-end. Make them one.”</em></p><p>Nike wasn’t alone. Other global apparel and retail brands were experiencing the same friction — toggling between two platforms, reconciling two data sets, paying two vendors, managing two support relationships, for processes that were fundamentally two halves of one workflow.</p><p>The financial side and the logistics side had to become one.</p><p>In the boardrooms of both companies, the logic was undeniable. Customers were already demanding it. The competitive window wouldn’t stay open forever. The question wasn’t <em>whether</em> to merge — it was <em>how fast</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcm0avVRx3dJT6jnLqIFAg.png" /></figure><h3>Chapter 5: The Merger of Equals (January 2013)</h3><p>On January 7, 2013, GT Nexus and TradeCard issued a joint announcement that sent ripples through the supply chain industry.</p><p>They were merging — a merger of equals — to create what would instantly become the world’s largest cloud supply chain network. The combined entity would serve over 20,000 businesses spanning every major industry: retail, apparel, high-tech, automotive, pharmaceuticals, and consumer products.</p><p>The combined company would operate under the GT Nexus name, headquartered in Oakland, California. TradeCard CEO Sean Feeney became CEO of the merged entity. GT Nexus CEO Aaron Sasson became Chairman. And TradeCard founder Kurt Cavano took the role of Vice Chairman and Chief Strategy Officer — the man who had started it all at a desk in the World Trade Centers Association, now helping to lead the world’s biggest cloud supply chain platform.</p><p>Employing around 1,000 people globally, the newly merged GT Nexus was something the industry had never seen before: a single platform managing <em>everything</em> from purchase order to final payment, with real-time visibility across every shipment, every factory, every bank transaction.</p><p>The Nike demand had been answered.</p><p>But the story was far from over. Because the most consequential chapter was about to begin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GWf8ZjPsG0fnDZOiiomw1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Rq4Y-bioA8NM0xd5q6YiA.png" /></figure><h3>Chapter 6: Meanwhile, a Company Called Agilisys Was Being Born (2002)</h3><p>To understand what happened next, we need to rewind to May 1, 2002 — to a modest office in Malvern, Pennsylvania, where a company called <strong>Agilisys</strong> was quietly being incorporated.</p><p>Agilisys wasn’t flashy. It wasn’t chasing the dot-com dream. It was focused, deliberately and specifically, on one thing: building deep, industry-specific enterprise software for manufacturing and food &amp; beverage companies — the unsexy, unglamorous backbone of real industry.</p><p>In 2004, Agilisys changed its name to <strong>Infor Global Solutions</strong>. The company grew steadily through acquisitions, assembling a portfolio of niche software products for specific industries: healthcare, distribution, fashion, hospitality. By design, it didn’t try to compete with SAP or Oracle on their own terms. It went deeper, not broader.</p><p>Infor’s early motto could have been: <em>“We build the software that the big guys ignore.”</em></p><p>It was a smart strategy. But Infor in 2009 was still a collection of products in need of a unifying vision. And then, in 2010, the man who would provide that vision walked in the door.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SP-EKeB7xMERZ3cp8ItHNw.png" /></figure><h3>Chapter 7: The Man Who Changed Everything — Charles Phillips (2010)</h3><p>Charles Edward Phillips Jr. was born in 1959 in Little Rock, Arkansas, the son of an Air Force man. He grew up moving — state to state, sometimes to Europe — the kind of childhood that teaches adaptability as a survival skill. He was building computers in high school when most teenagers were watching TV.</p><p>He enrolled at the United States Air Force Academy, earned a degree in computer science in 1981, and then — defying expectations — joined the U.S. Marine Corps, serving as a Captain in the 2nd Battalion, 10th Marines. From artillery fields, he went to Wall Street: a managing director at Morgan Stanley, then co-president of Oracle Corporation from 2003 to 2010, overseeing 70 acquisitions and helping triple the company’s size.</p><p>When Larry Ellison restructured Oracle’s leadership in late 2010, Phillips departed. His former boss reportedly said he was “proud to produce another CEO in the industry.”</p><p>That CEO landed at Infor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJK2dj3FFdqVV7KuSdewcQ.png" /></figure><h3>What Phillips Found</h3><p>When Phillips arrived, Infor was a sprawling company with strong industry-specific products but aging interfaces and no unified cloud strategy. Enterprise software in 2010 still largely looked like it was designed in 1995 — clunky, grey, deeply unattractive. People used it not because they wanted to, but because they had to.</p><p>Phillips had a different philosophy: <em>Why does enterprise software have to be ugly?</em></p><p>He described it simply: “People buying the software don’t have to use it. People using it don’t have a choice.” He wanted to change both of those things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*HFoeyYa0FxCwfVcazeayEg.png" /></figure><h3>The Transformation</h3><p>First, Phillips moved Infor’s headquarters from suburban Atlanta to New York City — a deliberate cultural shift, putting the company in proximity to the world’s best design and creative talent.</p><p>Then he did something that had never been done at an enterprise software company: he built <strong>Hook &amp; Loop</strong>, a fully in-house creative agency staffed not by enterprise IT veterans, but by designers, writers, developers, and filmmakers — the kind of people who cared about beauty. People from the worlds of film, entertainment, and consumer technology. Guided by the motto <em>“work is beautiful,”</em> Hook &amp; Loop grew from a handful of designers to over 100 people, becoming one of the largest digital design agencies in New York City.</p><p>The result was enterprise software that looked, for the first time, like something people actually wanted to use.</p><p>But Phillips wasn’t done. He also directed Infor toward an ambitious cloud strategy — industry-specific cloud products, built on Amazon Web Services, designed to serve the unique operational needs of each sector Infor served. By 2014, Infor had become the first company to offer complete industry-specific software in the cloud. By 2018, it was the first ERP provider to complete a full transition to cloud, with the majority of its customers, applications, and revenues cloud-based.</p><p>In nine years, Phillips helped grow Infor to 70 million subscribers across 90,000 customers in 190 countries. He was called, more than once, the Steve Jobs of business software.</p><p>In August 2019, he stepped down as CEO to become Chairman — his transformation complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ERvSrmDYgsTJ5DexgnKPfw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDvdH8UuAz0BV8ArbF3CNw.jpeg" /><figcaption><a href="https://www.cnbc.com/video/2019/01/18/infor-ceo-people-want-a-large-scale-enterprise-company.html">https://www.cnbc.com/video/2019/01/18/infor-ceo-people-want-a-large-scale-enterprise-company.html</a></figcaption></figure><h3>Chapter 8: The $675 Million Move — Infor Acquires GT Nexus (2015)</h3><p>By 2015, the newly merged GT Nexus was a global powerhouse: a network of 20,000+ businesses, managing the physical and financial flows of trade for some of the world’s biggest brands. But it was still a standalone company, operating separately from the ERP systems that its customers used internally.</p><p>Infor saw the opportunity.</p><p>In September 2015, Infor acquired GT Nexus for $675 million — one of the most strategically significant acquisitions in enterprise software history.</p><p>The logic was elegant: Infor’s ERP systems managed <em>what happened inside</em> a company. GT Nexus managed <em>what happened between</em> companies. Together, they could offer something no competitor could match: a platform that managed the entire journey of a product, from the moment it was conceived internally to the moment it was paid for by the end customer.</p><p>Supply chain and enterprise operations, unified.</p><p>The combined entity evolved into what is now known as <strong>Infor Nexus</strong> — a multi-enterprise supply chain network connecting suppliers, manufacturers, logistics providers, and banks in a single, real-time digital ecosystem. Today, it operates across the Americas, Europe, and Asia, serving customers in pharmaceuticals, high-tech, automotive, CPG, apparel, and footwear — the invisible infrastructure powering the world’s most complex supply chains.</p><p>Kurt Cavano — who had started it all in that World Trade Centers Association office in 1999 — eventually stepped down from Infor in 2019, after 20 years of pioneering the financial supply chain. A quiet end to a remarkable journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0F3feA24cQ0o4JadVt9tng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9X12D_Bl3wwsigtXtjkcqw.png" /></figure><h3>Chapter 9: The Hidden Chapter — Sri Lanka</h3><p>Here is the part of the story that almost nobody tells.</p><p>Long before the Infor acquisition. Long before the GT Nexus–TradeCard merger. In 2009, a small development center opened in Colombo, Sri Lanka, under the name <strong>GT Nexus Services</strong>.</p><p>It was, in many ways, a natural outcome of everything that had come before. TradeCard and GT Nexus had deep roots in the global apparel industry — the sector that had driven the loudest demand for supply chain digitization. Nike, one of their key customers, had a long and deep manufacturing relationship with <strong>MAS Holdings</strong>, one of Sri Lanka’s largest and most respected apparel manufacturers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*4NqDKwmgY8HYBh1iO76y4A.png" /></figure><p>Founded in 1987 by three brothers — Mahesh, Sharad, and Ajay Amalean — MAS Holdings had grown from a small underwear factory into a global apparel powerhouse, with over 100,000 employees, 53 manufacturing facilities across 17 countries, and long-term partnerships with the world’s biggest athletic and apparel brands.</p><p>MAS was not just a factory. It was a technology-forward, innovation-driven company that understood supply chains not just as logistics, but as strategic infrastructure. When the opportunity arose to establish a software development center in Sri Lanka — a country with strong technical education, competitive costs, and English proficiency — MAS Holdings and GT Nexus saw something the rest of the world hadn’t noticed yet.</p><p>Sri Lanka could be a technology hub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ioMsDIgsNMS7BVDaaIQYJA.png" /></figure><h3>GT Nexus Services → Infor Sri Lanka</h3><p>That development center, founded in 2009, grew steadily through the years. After the 2013 merger and the 2015 acquisition, it evolved with its parent company, eventually being rebranded as <strong>Infor Sri Lanka</strong> — a formal <strong>joint venture between MAS Holdings and Infor (US)</strong>.</p><p>This was not a back-office outsourcing arrangement. Infor Sri Lanka became a genuine engineering partner in the development of some of the most critical supply chain software in the world — contributing to Infor Nexus, supply chain platforms, and cloud technologies that today serve tens of thousands of companies globally.</p><p>The team that started small in Colombo was building software that would be used by Nike, by global retailers, by pharmaceutical companies, by automotive manufacturers. The irony is quietly beautiful: MAS Holdings, a company that makes the products that move through supply chains, is a co-owner of the technology platform that manages those supply chains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nXONomGhFJKrxYHLdveyig.png" /></figure><h3>Chapter 10: The Koch Industries Era — A New Chapter (2017–2020)</h3><p>By 2017, Infor was profitable, cloud-native, and growing. It had attracted the attention of one of America’s most powerful private companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sgRJAQVTsVmm8e7YnKIJQ.png" /></figure><p>Koch Equity Development, the investment arm of Koch Industries, made an initial investment of over $2 billion in Infor in February 2017 — one of the largest private investments in enterprise software at the time.</p><p>Koch wasn’t just a passive investor. Koch companies were themselves Infor customers, and they understood the long-term strategic value of what Infor was building.</p><p>In February 2020, Koch made its move permanent: it acquired the remaining equity stake held by Golden Gate Capital, completing a full acquisition of Infor. At the close of the transaction, Infor became a standalone subsidiary of Koch Industries — operating from its New York headquarters under its own management team, with one of the strongest balance sheets in the technology industry behind it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-PdfrMfBAouWBV0kxs9wg.jpeg" /></figure><p>“Joining Koch Industries is an exciting new chapter in Infor’s history,” said <strong>Kevin Samuelson, Infor’s CEO</strong>. “It allows us to take a long-term approach, focused on developing industry-specific solutions that help customers modernize and drive immediate, tangible impact.”</p><p>Infor had, in less than two decades, gone from a manufacturing software company in a Pennsylvania suburb to one of the most well-capitalized enterprise software businesses in the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKhMMxbPggRhqmE8z_2ycw.jpeg" /></figure><h3>Chapter 11: What Infor Offers Today</h3><p>Today, Infor is a global enterprise cloud software leader serving over 90,000 customers in 190 countries, with around 17,000 employees worldwide. Its product portfolio spans:</p><p><strong>Industry CloudSuites</strong> — deeply specialized ERP platforms built for specific industries: manufacturing, fashion &amp; apparel, healthcare, distribution, hospitality, and more. Unlike generic ERP systems, Infor’s CloudSuites come pre-configured for the unique workflows, regulations, and terminology of each sector.</p><p><strong>Infor Nexus</strong> — the multi-enterprise supply chain network that traces its lineage directly to GT Nexus and TradeCard. It connects suppliers, manufacturers, logistics providers, and banks in real time, managing everything from order creation to final payment.</p><p><strong>Warehouse &amp; Transportation Management</strong> — tools that manage the physical movement of goods, from warehouse operations to carrier management.</p><p><strong>Financial Management &amp; HCM</strong> — enterprise finance, human capital management, and workforce tools built natively for the cloud.</p><p><strong>AI &amp; Analytics</strong> — Infor’s Coleman AI platform and Birst analytics suite, providing data-driven insights embedded directly into operational workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhQwVCUFG1BRhUBPBnNO9Q.png" /></figure><h3>Epilogue: The Story Behind the Story</h3><p>The story of Infor is not a story about software. Not really.</p><p>It’s a story about what happens when entrepreneurs solve the right problems at the right time. It’s a story about a Marine-turned-Wall-Street-analyst who looked at ugly enterprise software and thought: <em>this can be better</em>. It’s a story about a customer — Nike — who got frustrated enough to demand that two companies stop competing and start cooperating. It’s a story about a small island in the Indian Ocean that became, quietly and improbably, a hub for some of the most sophisticated supply chain software in the world.</p><p>TradeCard started in a New York City office in 1999, trying to kill the letter of credit. GT Nexus started in Oakland in 1998, trying to tell companies where their ships were. Infor started as Agilisys in a Pennsylvania suburb in 2002, trying to build better ERP. And MAS Holdings started in a small factory in Panadura, Sri Lanka, in 1987, with 40 sewing machines and $10,000.</p><p>Twenty years later, all four of those stories had converged into a single, unified platform — one of the most powerful supply chain and enterprise software ecosystems in the world.</p><p>Most people have never heard of Infor. Almost nobody outside the industry knows the names TradeCard or GT Nexus. And barely anyone knows that a joint venture in Colombo, Sri Lanka, is building the software that helps move the world’s goods.</p><p>But the next time you hold a product in your hands — that sneaker, that shirt, that laptop — remember: somewhere in the background, invisible and essential, this story made that possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4vS6oJV5jYPHHoMJHLoBw.png" /></figure><p>“Behind every global supply chain, there’s a hidden network — and behind that network, there’s a story. This is one of them.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VijdLVQDQg9MliQdfUZjaA.png" /></figure><p>Written by Savindu Amalka.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fccbe90975e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Linux Commands]]></title>
            <link>https://medium.com/@savinduamalka/essential-linux-commands-d4b4a75db276?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4b4a75db276</guid>
            <category><![CDATA[linux-commands]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Wed, 24 Sep 2025 02:00:12 GMT</pubDate>
            <atom:updated>2025-09-24T02:00:12.371Z</atom:updated>
            <content:encoded><![CDATA[<p>Linux commands are the backbone of system interaction, allowing efficient navigation, file management, and exploration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQ-d1Dmw2sSyoCtRRbUjgQ.png" /></figure><p>To make the concepts practical, consider the following folder tree as a working example:</p><pre>/home/student<br>│<br>├── Documents<br>│   ├── report.txt<br>│   └── notes.txt<br>│<br>├── Projects<br>│   ├── webapp<br>│   │   └── index.html<br>│   └── data.csv<br>│<br>└── Pictures<br>    └── photo.png</pre><h3><strong>1. Creating Files and Directories</strong></h3><h3><strong>touch</strong></h3><p>Create an empty file inside Documents:</p><pre>cd /home/student/Documents<br>touch summary.txt</pre><p>Now summary.txt appears alongside report.txt and notes.txt.</p><h3>mkdir</h3><p>Create a new folder inside Projects: <em>(make directory)</em></p><pre>mkdir /home/student/Projects/mobileapp</pre><p>A directory mobileapp is now available inside Projects.</p><h3>2. Listing Files</h3><h3>ls</h3><p>List contents of the Projects directory: <em>(list)</em></p><pre>ls /home/student/Projects</pre><p>Output:</p><pre>webapp  data.csv  mobileapp</pre><h3>ls -a</h3><p>Show hidden files in Documents:</p><pre>ls -a /home/student/Documents</pre><p>Output (example):</p><pre>.  ..  report.txt  notes.txt  summary.txt  .hiddenfile</pre><h3>3. Navigation</h3><h3>pwd</h3><p>Find the current location: <em>(print working directory)</em></p><pre>pwd</pre><p>Output:</p><pre>/home/student/Documents</pre><h3>cd</h3><p>Move into the Pictures folder: <em>(change directory)</em></p><pre>cd /home/student/Pictures</pre><p>Go back one level (to /home/student):</p><pre>cd ..</pre><h3>4. Copying, Moving, and Renaming</h3><h3>cp</h3><p><em>Copy(cp)</em> report.txt into Projects: cp <em>[source] [destination]</em></p><pre>cp /home/student/Documents/report.txt /home/student/Projects/</pre><p>Copy the entire webapp folder into mobileapp: <em>-r (recursive)</em></p><pre>cp -r /home/student/Projects/webapp /home/student/Projects/mobileapp/</pre><h3>mv</h3><p><em>Move(mv)</em> notes.txt into Projects: <em>mv [source] [destination]</em></p><pre>mv /home/student/Documents/notes.txt /home/student/Projects/</pre><p>Rename data.csv to dataset.csv:</p><pre>mv /home/student/Projects/data.csv /home/student/Projects/dataset.csv</pre><h3>5. Deleting Files and Directories</h3><h3>rm</h3><p>Delete summary.txt from Documents: <em>(remove)</em></p><pre>rm /home/student/Documents/summary.txt</pre><h3>rm -r</h3><p>Remove the entire mobileapp folder: <em>-r (recursive)</em></p><pre>rm -r /home/student/Projects/mobileapp</pre><h3>6. Helpful Tools</h3><h3>— help</h3><p>Quickly check available options for ls:</p><pre>ls --help</pre><h3>man</h3><p>Read the manual for the cp command: <em>(manual)</em></p><pre>man cp</pre><h3>man man</h3><p>See the manual sections of the man command itself:</p><pre>man man</pre><h3>apropos</h3><p>Search for commands related to “remove”:</p><pre>apropos remove</pre><h3>mandb</h3><p>Update the manual page index: <em>(manual database)</em></p><pre>sudo mandb</pre><h3>7. Tab Completion</h3><p>Suppose inside /home/student/Projects, typing:</p><pre>cd web&lt;Tab&gt;</pre><p>Auto-completes to:</p><pre>cd webapp</pre><p>Pressing <strong>Tab Tab</strong> shows available directories:</p><pre>cd &lt;Tab&gt;&lt;Tab&gt;</pre><p>Output:</p><pre>webapp  mobileapp</pre><p>Written by Savindu Amalka.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4b4a75db276" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Remote Access Demystified: A Beginner’s Journey from RDP to SSH]]></title>
            <link>https://medium.com/@savinduamalka/linux-remote-access-demystified-a-beginners-journey-from-rdp-to-ssh-46c165f0db77?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/46c165f0db77</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[rdp]]></category>
            <category><![CDATA[basic-linux-commands]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 02:50:24 GMT</pubDate>
            <atom:updated>2025-09-23T02:50:24.029Z</atom:updated>
            <content:encoded><![CDATA[<p>As someone new to Linux system administration, I remember staring at my screen wondering: <em>“Do I need to install RDP on Windows to connect to Linux? Or is it the other way around?”</em> If you’ve ever felt overwhelmed by remote access protocols, you’re not alone.</p><p>Through my learning journey, I discovered that remote Linux management isn’t just about memorizing commands, it’s about understanding the philosophy behind the tools. Let me share the insights that transformed my approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kt2ISrCeVoSMDKA1Sd9KYQ.png" /></figure><h3>How to access Linux machine remotely:</h3><h3><strong>RDP (Remote Desktop Protocol) :</strong></h3><ul><li>On the Windows machine (the client): We use the built-in Remote Desktop Connection client. We do not need to install anything extra on Windows. Clients are RDesktop, FreeRDP, Microsoft Remote Desktop Client.</li><li>On the Linux machine (the server/host): We need to install an RDP server software, like xRDP.</li></ul><p><strong>The RDP (Remote Desktop Protocol) is a Microsoft protocol. It has two parts:</strong></p><ol><li>The Server: This software runs on the machine we want to connect <em>to</em> (the host). It listens for incoming connections and controls the desktop session.</li><li>The Client: This software runs on the machine we are connecting <em>from</em> (the client). It displays the remote desktop and sends our keyboard/mouse inputs.</li></ol><h3>Step-by-Step Guide to Connect</h3><p>Here is the practical process.</p><h4>Step 1: Install and Configure xRDP on the Linux Machine</h4><ol><li>Open a terminal on our Linux machine.</li><li>Update our package list:</li></ol><pre>sudo apt update &amp;&amp; sudo apt upgrade</pre><p>3. Install xRDP:</p><pre>sudo apt install xrdp</pre><p>4.Start the xRDP service and enable it to start on boot:</p><pre>sudo systemctl enable xrdp - now</pre><h4>Step 2: Connect from the Windows Machine</h4><ol><li>Find the IP Address of our Linux machine. Wecan run ip a or hostname -I in the Linux terminal.</li><li>On our Windows machine, press the Windows Key, type “Remote Desktop Connection”, and open it.</li><li>In the “Computer” field, enter the IP address of our Linux machine.</li><li>Click Connect.</li><li>We will see an xRDP login window. Select “Xorg” or “X11” as the session (if prompted).</li><li>Enter our Linux username and password and log in.</li></ol><p>We must ensure the Linux firewall allows RDP traffic (port 3389 by default).</p><pre>sudo ufw allow 3389</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*VRr5pB1kBUAVG6z6JeUitA.png" /><figcaption>Client_on_windows</figcaption></figure><h3>What is SSH?</h3><p>SSH stands for Secure Shell. It’s a network protocol that provides a secure way to access and manage computers over an unsecured network.</p><p>Think of it as a secure tunnel between two computers:</p><ul><li>Our local computer (Windows) ↔ Remote computer (Ubuntu Linux)</li><li>All communication through this tunnel is encrypted (scrambled)</li><li>It authenticates (verifies) both the user and the server</li></ul><h3>Why SSH is Required for Remote Ubuntu Terminal Access</h3><p>1. Security First</p><ul><li>Without SSH, if wetried to access a remote terminal, our username, password, and all commands would be sent in plain text.</li><li>Anyone on the network could intercept and read them.</li><li>SSH encrypts everything, making it safe.</li></ul><p>2. Remote Command Execution</p><ul><li>Run commands on the remote Ubuntu machine as if wewere sitting in front of it.</li><li>Edit files, install software, manage services, etc.</li><li>Get immediate results back on our local screen.</li></ul><h3>How Use SSH…</h3><h3>From Windows to Ubuntu:</h3><ol><li>On Ubuntu (the server we want to connect TO):</li></ol><pre># Install SSH server (usually installed by default, but just in case)<br>sudo apt install openssh-server<br><br># Check if it&#39;s running<br>sudo systemctl status ssh</pre><p>2. On Windows (the client we’re connecting FROM):</p><pre>ssh username@ubuntu-machine-ip-address<br># Example: ssh bob@node01</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zW1X2Gmr7SEnTlLAWMV9jg.jpeg" /></figure><p>3. After the tasks close the connection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cEH4SSMkecyRRT4TxD-EFQ.jpeg" /></figure><h3>Real-World Scenario of SSH &amp; RDP</h3><p>Imagine a web developer:</p><ul><li>SSH: Use SSH to deploy the website, restart the web server, check logs, and edit configuration files.</li><li>RDP: Use RDP when need to use a graphical database tool or troubleshoot a visual issue.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*YnTTEZ4YsoW4nMS_VU0OAw.png" /></figure><h3>The Power of --help</h3><p>The — help command, or often just help or -h, is a standard command-line option used to display information about how to use a particular program or command. It is really helpful for the beginners like us, no need to memorize all the commands at once. It is just like a documentation which tells how to use particular commands.</p><pre># Basic help<br>ls --help<br>mkdir --help<br>cp --help<br><br># Short version <br>ls -h</pre><p>Example:</p><p>Imagine a user, Sarah, is working on a Linux system. She knows she needs to find some configuration files, which often start with a dot (.) and are hidden by default i macOS and Linux. She remembers there’s a command to list files, but she can’t recall how to make it show the hidden ones.</p><p><strong>Step 1: The initial attempt and seeking help.</strong></p><pre>ls --help</pre><p><strong>Step 2:Read the output and find correct command.</strong></p><p><strong>Step3: Then apply it.</strong></p><pre>ls -a</pre><h3>Understanding Man Page Sections</h3><h3>1. “man” command (Manual Pages)</h3><p>This is the official documentation for commands:</p><pre># Read the manual for any command<br>man ls<br>man ssh<br>man cp</pre><h3><strong>2. “man man” command</strong></h3><p>There could be different kind of documentations with the same command name. This is exactly how Linux organizes different types of documentation that might share the same name.</p><p>The man pages are organized into numbered sections.</p><p><strong>Example:</strong></p><p>“printf” can be used as a shell command and also “printf” can be used as a function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxRzElWbhrj9iikDp7hYWw.png" /><figcaption>printf_example</figcaption></figure><p>Written by Savindu Amalka.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46c165f0db77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Amazon EC2 Storage Options: Instance Store, EBS, and Snapshots]]></title>
            <link>https://medium.com/@savinduamalka/understanding-amazon-ec2-storage-options-instance-store-ebs-and-snapshots-b9ba95d593fa?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9ba95d593fa</guid>
            <category><![CDATA[ebs-snapshots]]></category>
            <category><![CDATA[aws-ebs]]></category>
            <category><![CDATA[ebs-volume]]></category>
            <category><![CDATA[instance-store]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Sun, 07 Sep 2025 17:56:19 GMT</pubDate>
            <atom:updated>2025-09-07T17:56:19.340Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with Amazon EC2, storage is one of the most important considerations. Different workloads require different storage behaviors — some demand temporary, high-performance storage, while others need reliable, persistent storage that survives instance restarts. Amazon provides multiple options for EC2 storage, each designed for specific use cases.</p><p>This post explains <strong>Amazon EC2 Instance Store</strong>, <strong>Amazon Elastic Block Store (EBS)</strong>, <strong>EBS Snapshots</strong>, and <strong>Amazon Data Lifecycle Manager (DLM)</strong> in a clear and beginner-friendly way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ji4dpUKwetzgUzryIArDUA.png" /></figure><p>An <strong>EC2 instance store</strong> is not a standalone AWS storage service. Instead, it is block-level storage that comes <strong>physically attached</strong> to the host computer running an EC2 instance.</p><ul><li>Depending on the instance type, the instance store may come as the <strong>default storage</strong>.</li><li>The key characteristic is that <strong>data is lost</strong> when the EC2 instance is stopped or terminated.</li><li>This makes it ideal for <strong>temporary storage needs</strong>, such as:</li><li>Buffers</li><li>Caches</li><li>Scratch data (temporary files needed during processing)</li></ul><p>For example, a web application that generates temporary cache files during user requests can use instance store storage. Since the cache data is recreated when needed, persistence is not required.</p><p><strong>Key takeaway: no data persistence</strong><br> If the instance is stopped or terminated, all the data in the instance store is deleted.</p><p><strong>Benefits of EC2 Instance Store:</strong></p><ul><li>Automatically available storage with no extra configuration.</li><li>High performance since the storage is directly attached to the host hardware.</li><li>Cost-effective for temporary workloads.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*gInjyzYw19srEEGPr68kvg.png" /></figure><h3>Amazon Elastic Block Store (EBS)</h3><p>While instance stores are temporary, <strong>Amazon EBS</strong> provides <strong>persistent block-level storage</strong> for EC2 instances. EBS volumes function like <strong>external hard drives</strong> that can be attached to instances.</p><ul><li>EBS volumes remain intact even when an EC2 instance is stopped or terminated.</li><li>Data is stored redundantly within an Availability Zone to ensure durability.</li><li>Volumes can be resized, backed up, and attached to different instances as needed.</li></ul><p>For example, a database running on an EC2 instance would use EBS. If the instance is restarted for maintenance, the database files remain safe on the EBS volume.</p><p><strong>Key takeaway: data persistence</strong><br> Data stored on EBS volumes survives instance restarts and terminations.</p><p><strong>Benefits of Amazon EBS:</strong></p><ul><li>EBS volumes can be migrated between Availability Zones using snapshots, making it easier to move data or create backups across regions.</li><li>Volumes remain independent of EC2 instances, so they can be attached to different instance types without losing data.</li><li>EBS snapshots provide reliable backup solutions for disaster recovery.</li><li>Volumes can be modified (size, type, performance) without downtime.</li><li>Multiple volume types are available to match different workloads, such as high IOPS for databases or low-cost storage for archives.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*NNBboQKATiqXqH8fixAxuQ.png" /></figure><h3>EBS Snapshots</h3><p><strong>EBS snapshots</strong> are <strong>point-in-time backups</strong> of EBS volumes. These backups are <strong>incremental</strong>, which means only the changed blocks are saved after the most recent snapshot. This makes them cost-efficient and fast to create.</p><p>Snapshots are stored in <strong>Amazon S3</strong>, across multiple Availability Zones, providing durability and protection.</p><p><strong>Use cases for snapshots:</strong></p><ul><li><strong>Disaster recovery</strong> — restoring data after a failure.</li><li><strong>Data migration</strong> — creating volumes in different regions.</li><li><strong>Volume resizing</strong> — creating a larger volume from a snapshot.</li><li><strong>Cloning environments</strong> — creating identical test or staging volumes.</li></ul><p>For example, before upgrading a production database, a snapshot can be taken. If the upgrade fails, the snapshot can be restored to bring the database back to its previous state.</p><p><strong>Benefits of EBS Snapshots:</strong></p><ul><li>Data protection and recovery.</li><li>Flexibility in creating new volumes or moving data.</li><li>Cost-effectiveness with incremental backups.</li></ul><p><strong>Customer responsibility:</strong><br> As per the AWS Shared Responsibility Model, the customer must:</p><ul><li>Schedule and manage snapshots.</li><li>Monitor snapshot costs and delete unnecessary backups.</li><li>Ensure sensitive data is encrypted.</li><li>Test restoration procedures regularly to avoid surprises during failures.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mPiaWfEsv8LmoO2tDb83w.jpeg" /></figure><h3>Amazon Data Lifecycle Manager (DLM)</h3><p>Managing snapshots manually can become complex in large deployments. This is where <strong>Amazon Data Lifecycle Manager (DLM)</strong> comes in.</p><p>DLM automates the <strong>creation, retention, and deletion</strong> of EBS snapshots. For instance, policies can be defined to create daily snapshots, retain them for 30 days, and then automatically delete old ones.</p><p><strong>Steps for using DLM:</strong></p><ol><li><strong>Create a snapshot policy</strong> using the AWS Console, CLI, SDKs, or CloudFormation.</li><li><strong>Select the target resource</strong> — either an EBS volume or an EC2 instance.</li><li><strong>Exclude volumes</strong> if necessary (such as root or data volumes).</li><li><strong>Set custom schedules</strong> for creation, retention, and deletion.</li><li><strong>Apply additional actions</strong> like tagging, archiving, fast snapshot restore, or cross-Region copying.</li></ol><p>DLM ensures that snapshots are taken consistently, reduces human error, and helps optimize storage costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*4ek3LhZ04Au8qpMpi1SGqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMSN14D0YodH48Y3HQNUGw.png" /></figure><p>Written by Savindu Amalka.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9ba95d593fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Edge Networking Services: Secure and Speedy Networking for Applications]]></title>
            <link>https://medium.com/@savinduamalka/edge-networking-services-secure-and-speedy-networking-for-applications-3014fe4b29eb?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3014fe4b29eb</guid>
            <category><![CDATA[amazon-cloudfront]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-route53]]></category>
            <category><![CDATA[aws-global-accelerator]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Sun, 24 Aug 2025 17:42:10 GMT</pubDate>
            <atom:updated>2025-08-24T17:42:10.912Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital-first world, applications must deliver content faster, securely, and more reliably than ever before. Users expect instant responses, whether they are shopping online, streaming a video, or navigating a mobile app. This is where <strong>edge networking services</strong> come in.</p><p>Edge networking brings information storage and computing power closer to the devices that generate and consume data. By reducing the distance data needs to travel, edge networking lowers latency and improves responsiveness. This ensures better performance while maintaining control over infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBvNMLEDoOS6e9e9PlLyfg.png" /></figure><h3>Translating Domain Names to IP Addresses with DNS</h3><p>Imagine typing a website address into a browser. Behind the scenes, something important happens: <strong>DNS resolution</strong>. DNS, or Domain Name System, works like the phone book of the internet, converting easy-to-remember domain names into numerical IP addresses.</p><p>Here’s how the process works:</p><ol><li><strong>Customer and laptop</strong> — When a domain name is entered into a browser, the request goes to a DNS resolver.</li><li><strong>Customer DNS resolver</strong> — The resolver asks the company’s DNS server for the IP address of the website.</li><li><strong>Company DNS server</strong> — The DNS server responds with the IP address (for example, 12.34.56.78).</li></ol><p>This translation process ensures that traffic is correctly routed to the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*-6AWv8zrPIcBePFY1PPTRQ.png" /></figure><h3>Amazon Route 53: Reliable DNS Service</h3><p><strong>Amazon Route 53</strong> is a highly available and cost-effective DNS service. It connects user requests to applications hosted in AWS or even outside AWS. Route 53 uses a global network of DNS servers and automatically scales to handle large volumes of queries.</p><p>Key capabilities include:</p><ul><li>Translating domain names into IP addresses for user requests.</li><li>Managing DNS records for domain names.</li><li>Registering new domain names or transferring existing ones.</li></ul><p>This means that organizations can manage all their domain names in one place while ensuring reliable routing for their applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*QK2Ze2M5M4xOjAItlXJ8kg.jpeg" /></figure><h3>Amazon CloudFront: Content Delivery Network (CDN)</h3><p>Once users are routed to the right server, the next challenge is delivering content quickly. This is where <strong>Amazon CloudFront</strong>, a <strong>Content Delivery Network (CDN)</strong>, steps in. CloudFront distributes and caches content at edge locations around the world, ensuring users experience faster load times no matter their location.</p><p>Think of CloudFront as a network of delivery trucks positioned globally. Instead of all requests traveling back to one central warehouse, content is stored closer to users, drastically reducing delays.</p><h3>Examples:</h3><ul><li><strong>E-commerce website</strong> — An online store uses CloudFront to deliver product images and web pages quickly during peak shopping seasons. Faster experiences reduce cart abandonment.</li><li><strong>Mobile app</strong> — A travel app relies on CloudFront to deliver map data and images to users on the go, helping them navigate without delays.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*IGZgbdxsdTuK0wmfiW6uHg.png" /></figure><h3>How Route 53 and CloudFront Work Together</h3><p>The image above demonstrates how Route 53 and CloudFront work together to serve customer requests efficiently:</p><ol><li><strong>Client request</strong> — A user enters a website’s domain name in their browser.</li><li><strong>Amazon Route 53</strong> — Route 53 translates the domain name into the correct IP address of the AWS application.</li><li><strong>Amazon CloudFront</strong> — The request is routed to the nearest CloudFront edge location, which delivers cached content quickly. If content is not cached, CloudFront retrieves it from the origin.</li><li><strong>Application Load Balancer and EC2 instances</strong> — For dynamic requests, CloudFront routes traffic to an Application Load Balancer, which distributes it across an auto scaling group of EC2 instances for high availability and performance.</li></ol><p>This combination reduces latency, improves reliability, and ensures that applications can scale with demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xz9Er0rXm8VZBlCVv7c0Zg.png" /></figure><h3>AWS Global Accelerator: Optimized Global Performance</h3><p>Another edge networking service is <strong>AWS Global Accelerator</strong>. It improves application availability and performance by using the AWS global network instead of the unpredictable public internet. Global Accelerator creates express lanes for application traffic, ensuring lower latency and faster response times.</p><h3>Example:</h3><ul><li><strong>Global gaming company</strong> — A gaming provider uses Global Accelerator to reduce lag and provide smooth gameplay for players around the world. Whether in Tokyo, New York, or London, users experience responsive and consistent gameplay.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*J7WEuLdmbs6vLs4CFKvqWQ.png" /></figure><p>Written by Savindu Amalka</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3014fe4b29eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interacting with AWS Services: Console, CLI, and SDK]]></title>
            <link>https://medium.com/@savinduamalka/interacting-with-aws-services-console-cli-and-sdk-db371a768b4d?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/db371a768b4d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-console]]></category>
            <category><![CDATA[aws-cloudshell]]></category>
            <category><![CDATA[aws-sdk]]></category>
            <category><![CDATA[aws-api]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 16:59:11 GMT</pubDate>
            <atom:updated>2025-08-21T16:59:11.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9CQW5UVRT90jxNT0bQ4oPA.png" /></figure><p>When working with <strong>Amazon Web Services (AWS)</strong>, every action we perform, whether launching an EC2 instance, creating an S3 bucket, or setting up IAM policies is powered by <strong>APIs</strong>. These APIs are the foundation of AWS, and we can interact with them in three main ways:</p><ol><li><strong>AWS Management Console</strong></li><li><strong>AWS Command Line Interface (CLI)</strong></li><li><strong>AWS Software Development Kits (SDKs)</strong></li></ol><p>Each method has its own strengths, making them better suited for specific use cases. Let’s break them down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBQM-XGPnRa6FugN26GWvA.png" /></figure><h3>1. AWS Management Console</h3><p>The <strong>AWS Management Console</strong> is a web-based interface that provides an easy and intuitive way to interact with AWS services. With just a few clicks, we can spin up an EC2 instance, configure S3 storage, or monitor CloudWatch metrics.</p><p>Some key features include:</p><ul><li>A clean, visual dashboard with quick access to services</li><li>A <strong>search bar</strong> to help us find services instantly</li><li>Pre-built workflows to simplify tasks like creating databases or load balancers</li><li>A <strong>mobile app</strong> that lets monitor resources, view alarms, and check billing on the go</li><li>Support for <strong>multiple logged-in identities</strong></li></ul><p><strong>Good for:</strong><br> Users who prefer a <strong>visual, easy-to-use interface</strong> for managing and configuring AWS services without writing commands or code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lno-_VZxrmYz_SpuJvtNKQ.png" /></figure><h3>2. AWS Command Line Interface (CLI)</h3><p>For developers and system administrators, the <strong>AWS CLI</strong> called <strong>AWS CloudShell</strong> provides a powerful way to interact with AWS services directly from the terminal. The CLI works across <strong>Windows, macOS, and Linux</strong>, allowing us to execute commands and chain them together in scripts for automation.</p><p>For example, we can launch a new EC2 instance with a single command or create a script that provisions infrastructure consistently across multiple environments.</p><p>Benefits include:</p><ul><li><strong>Automation:</strong> Run scripts to deploy or configure resources at scale</li><li><strong>Cross-platform support:</strong> Works on Windows, Linux, and macOS</li><li><strong>Efficiency:</strong> Perform tasks faster without switching between multiple web pages</li></ul><p><strong>Good for:</strong><br> Advanced users, DevOps engineers, and developers who need to <strong>automate tasks, script actions, and manage AWS resources efficiently from the command line</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*wDTKmC8qiLQVnVU77xom-g.png" /></figure><h3>3. AWS Software Development Kits (SDKs)</h3><p>If we’re building an application that needs to interact with AWS services, the <strong>AWS SDKs</strong> are our best friend. They simplify the process of integrating AWS APIs into our code by offering libraries in multiple programming languages.</p><p>Available SDKs include popular languages such as:</p><ul><li><strong>JavaScript (Node.js &amp; browser)</strong></li><li><strong>Python (boto3)</strong></li><li><strong>Java</strong></li><li><strong>.NET</strong></li><li><strong>C++</strong>, <strong>Go</strong>, and many more</li></ul><p>AWS also provides detailed documentation and sample code to help we get started quickly. With SDKs, our application can directly:</p><ul><li>Upload and download files to <strong>S3</strong></li><li>Query and update records in <strong>DynamoDB</strong></li><li>Manage authentication and permissions with <strong>Cognito</strong></li><li>Scale services dynamically based on application needs</li></ul><p><strong>Good for:</strong><br> Developers who want to <strong>integrate AWS services directly into their applications</strong> using language-specific APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-lyrBhR6Yw-OKbfb6fhZEQ.png" /></figure><h3>Which One Should Use?</h3><ul><li>If anyone is just getting started or prefer a <strong>visual approach</strong>, go with the <strong>AWS Management Console</strong>.</li><li>If anyone is want to <strong>automate workflows or manage AWS at scale</strong>, the <strong>AWS CLI</strong> is the way to go.</li><li>If anyone is a developer building <strong>applications that talk directly to AWS services</strong>, the <strong>AWS SDKs</strong> provide the right tools.</li></ul><p>Written by Savindu Amalka</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db371a768b4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS EC2 Instance Types]]></title>
            <link>https://medium.com/@savinduamalka/aws-ec2-instance-types-14d10b10ed3c?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/14d10b10ed3c</guid>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws-instance]]></category>
            <category><![CDATA[ec2-instance-type]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 03:45:19 GMT</pubDate>
            <atom:updated>2025-08-20T03:49:45.350Z</atom:updated>
            <content:encoded><![CDATA[<p>When deploying applications on AWS, one of the most important decisions we’ll make is choosing the right <strong>EC2 instance type</strong>. Whether we’re hosting a small web app, training machine learning models, or managing huge databases, Amazon EC2 gives us the flexibility to match our workload with the right compute power, memory, storage, and networking capacity.</p><p>In this blog, i’ll explore <strong>AWS EC2 instance types</strong>, their naming conventions, and how to pick the right one for our needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgrmrDmwCcCyUG6QnO0AJA.png" /></figure><h3>📌 How EC2 Instance Types Are Named</h3><p>Each EC2 instance type name follows a pattern:</p><p>👉 <strong>Example:</strong> c7gn.2xlarge</p><ul><li><strong>c</strong> → <strong>Series</strong> (Instance family — e.g., Compute-optimized)</li><li><strong>7</strong> → <strong>Generation</strong> (Newer generations offer better price/performance)</li><li><strong>gn</strong> → <strong>Options</strong> (Special features like accelerated networking or GPU support)</li><li><strong>2xlarge</strong> → <strong>Size</strong> (Defines the number of vCPUs, RAM, and networking throughput)</li></ul><p>So, c7gn.2xlarge means:</p><ul><li><strong>Compute optimized family ©</strong></li><li><strong>7th generation</strong></li><li><strong>gn option for networking</strong></li><li><strong>2xlarge size</strong></li></ul><p>This convention helps us quickly identify what an instance is optimized for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nNv95RUUPnboSlGobQlbvw.png" /></figure><h3>📌 Categories of EC2 Instance Families</h3><p>Amazon EC2 instances fall into <strong>five major categories</strong>:</p><ol><li>General purpose</li><li>Compute Optimized</li><li>Memory Optimized</li><li>Accelerated Computing</li><li>Storage Optimized</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*InXvWB7uDmK7uIYxA0Ufag.png" /></figure><h3>1. 🟢 General Purpose</h3><p>General purpose instances provide a balanced mix of <strong>compute, memory, and networking resources</strong>.<br> They’re perfect when we don’t know the workload requirements yet or need a flexible option.</p><p><strong>Use Cases:</strong></p><ul><li>Web servers</li><li>Code repositories</li><li>Small and medium databases</li><li>Development &amp; testing environments</li></ul><p><strong>Examples:</strong></p><ul><li><strong>t3.micro</strong> → Free tier eligible, great for small apps.</li><li><strong>m6i.large</strong> → Balanced choice for production workloads.</li></ul><h3>2. 🔵 Compute Optimized</h3><p>Compute optimized instances are designed for <strong>compute-heavy tasks</strong> where performance of the CPU is key.</p><p><strong>Use Cases:</strong></p><ul><li>Gaming servers</li><li>High performance computing (HPC)</li><li>Scientific simulations</li><li>Machine learning inference</li></ul><p><strong>Examples:</strong></p><ul><li><strong>c6g.xlarge</strong> → Based on AWS Graviton processors, cost-efficient.</li><li><strong>c7gn.4xlarge</strong> → High performance with enhanced networking.</li></ul><h3>4. 🔴 Accelerated Computing</h3><p>Accelerated computing instances use specialized hardware like <strong>GPUs, FPGAs, or custom ASICs</strong> to offload compute-heavy operations.</p><p><strong>Use Cases:</strong></p><ul><li>Machine learning training &amp; inference</li><li>Video rendering and transcoding</li><li>Computational fluid dynamics</li><li>Graphics-heavy workloads (e.g., 3D rendering, gaming)</li></ul><p><strong>Examples:</strong></p><ul><li><strong>p4d.24xlarge</strong> → Ideal for deep learning training.</li><li><strong>g5.2xlarge</strong> → GPU-powered for graphics and ML inference.</li><li><strong>f1.2xlarge</strong> → FPGA-based, great for custom hardware acceleration.</li></ul><h3>5. 🟠 Storage Optimized</h3><p>Storage optimized instances are designed for workloads needing <strong>high disk throughput and low latency</strong> with fast local storage.</p><p><strong>Use Cases:</strong></p><ul><li>NoSQL databases (e.g., Cassandra, MongoDB)</li><li>Data warehousing</li><li>Log processing &amp; analytics</li><li>High-performance OLTP systems</li></ul><p><strong>Examples:</strong></p><ul><li><strong>i3.large</strong> → Optimized for transactional databases.</li><li><strong>d2.8xlarge</strong> → Great for distributed storage and data-intensive apps.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AoG8d8oNnS6eXbqzYB6PA.jpeg" /></figure><h3>📌 Choosing the Right EC2 Instance</h3><p>When selecting an instance, consider:</p><ol><li><strong>Workload Type</strong> → Is it compute, memory, or storage intensive?</li><li><strong>Performance Needs</strong> → Do weneed GPUs or special accelerators?</li><li><strong>Budget</strong> → Spot vs. On-demand vs. Reserved instances.</li><li><strong>Scalability</strong> → Will we need auto-scaling based on traffic?</li><li><strong>Latest Generation</strong> → Always look for newer generations for better efficiency.</li></ol><p>👉 <strong>Example Scenarios:</strong></p><ul><li>Hosting a personal blog → t3.micro (General purpose, free tier).</li><li>Training a deep learning model → p4d.24xlarge (Accelerated computing).</li><li>Running Redis in-memory cache → r6g.4xlarge (Memory optimized).</li><li>Data warehouse workloads → i3.8xlarge (Storage optimized).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*NOV6bpGWZfwXIXbYtX0Qcw.jpeg" /></figure><p>Written by Savindu Amalka</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14d10b10ed3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Regions, Availability Domains, and Fault Domains]]></title>
            <link>https://medium.com/@savinduamalka/regions-availability-domains-and-fault-domains-b5b4172bd2a8?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5b4172bd2a8</guid>
            <category><![CDATA[availability-zone]]></category>
            <category><![CDATA[bare-metal-server]]></category>
            <category><![CDATA[dedicated-hosting]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[regions]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 18:15:50 GMT</pubDate>
            <atom:updated>2025-08-11T18:15:50.007Z</atom:updated>
            <content:encoded><![CDATA[<p>When we talk about <strong>cloud computing</strong>, we often hear terms like <em>region</em>, <em>availability domain/zone</em>, and <em>fault domain</em>. These are the foundation of how cloud providers ensure high availability, fault tolerance, and data compliance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGu_PN2WfbwnhW5DM3Ex4w.png" /></figure><h3>1️⃣ Region</h3><p>A <strong>region</strong> is a physical geographic location where a cloud provider has data centers.<br> Think of it as a city or country on the map where your cloud resources live.</p><p><strong>Example:</strong><br> If you choose <strong>“US East (N. Virginia)”</strong> on AWS or <strong>“Mumbai”</strong> on Oracle Cloud, you are choosing the <strong>region</strong> where your services will be deployed.<br> All resources in that region are subject to the country’s <strong>laws, data regulations, and network characteristics</strong>.</p><h3>2️⃣ Availability Domain / Availability Zone</h3><p>Within a region, cloud providers split their infrastructure into <strong>Availability Domains (ADs)</strong> (In Oracle Cloud) or <strong>Availability Zones (AZs)</strong> (AWS/Azure).<br> These are <strong>separate data centers</strong> with independent power, cooling, and networking.</p><p><strong>Example:</strong><br> AWS <strong>us-east-1</strong> has multiple availability zones: <strong>us-east-1a</strong>, <strong>us-east-1b</strong>, etc.<br> If one zone goes down due to a hardware failure or power outage, the others keep running.</p><h3>3️⃣ Fault Domain</h3><p>A <strong>Fault Domain</strong> is a smaller logical grouping within an availability domain that shares common infrastructure like power and network switches.<br> Spreading workloads across multiple fault domains reduces the risk of simultaneous failures.</p><p><strong>Example:</strong><br> In Oracle Cloud, each Availability Domain is split into <strong>three fault domains</strong>.<br> If Fault Domain 1 has a hardware issue, Fault Domain 2 and 3 continue to operate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AF8YObD3ErP7_VtlbF6KbA.png" /></figure><h3>🌏 Why Regions Matter</h3><h3>1. Data Residency &amp; Sovereignty</h3><p>Data residency means <strong>where your data is stored</strong>, while data sovereignty means <strong>the laws governing that data based on location</strong>.<br> For example, the <strong>EU’s GDPR</strong> requires personal data of EU citizens to remain in the EU.</p><h3>2. Performance &amp; Latency</h3><p>Latency increases as physical distance from the data center grows.<br> A user in Singapore connecting to a US server will experience slower response times than one connected to a Singapore region.</p><h3>3. Disaster Recovery &amp; High Availability</h3><p>By deploying in multiple regions, if one region fails, another can take over, ensuring business continuity.</p><h3>4. Industry Compliance</h3><p>Some sectors require that workloads run in certified data centers, such as <strong>HIPAA-compliant</strong> regions for healthcare.</p><h3>5. Global Expansion</h3><p>Choosing a region near your target market improves user experience and meets local business needs.</p><h3>6. Local Integrations &amp; Partnerships</h3><p>Some regions offer special services, like direct connectivity to telecom providers or integration with local financial systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgZr83ThoClYLVo1zAmujA.jpeg" /></figure><h3>🏢 Why Organizations Still Keep On-Premises Servers</h3><p>Despite the cloud’s benefits, many organizations still prefer <strong>on-premises infrastructure</strong>.</p><h3>1. Data Sovereignty</h3><p>Some countries require sensitive data to stay within national borders, sometimes on servers physically owned and controlled by the organization.</p><p><strong>What is Data Sovereignty?</strong><br> It’s the principle that digital data is subject to the laws of the country where it’s stored.</p><h3>2. Security &amp; Control</h3><p>On-premises servers give complete control over physical access, hardware configuration, and security policies.</p><h3>3. Latency</h3><p>For applications requiring <em>ultra-low latency</em> (e.g., financial trading), having servers physically close to the operation site can be faster than cloud connections.</p><h3>🖥 Bare Metal, Virtual Machines, and Dedicated Hosts</h3><h3>Bare Metal Servers</h3><p>A <strong>bare metal server</strong> is a <strong>physical machine dedicated entirely to you</strong> — no virtualization, no sharing with others.<br>Best for high-performance workloads like AI training or large databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oKlJVHJatkB0AY3IKyJY5w.png" /></figure><h3>Virtual Machines (VMs)</h3><p>A VM is a <strong>virtualized instance</strong> running on a physical server using a hypervisor.<br>Multiple VMs can run on one physical machine, each isolated from others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*yenTgv0POvt38u-JO_CoQQ.png" /></figure><h3>Dedicated Hosts</h3><p>A dedicated host is <strong>your own physical server in the cloud</strong>, but you can run multiple VMs on it.<br>It’s often used for <strong>license compliance</strong> or when you want the benefits of virtualization but with full control over the hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*8a2Goog9gGTRj_ng5tRWOg.png" /></figure><p>Written by Savindu Amalka</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5b4172bd2a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[☁️ What Is Cloud Computing?]]></title>
            <link>https://medium.com/@savinduamalka/%EF%B8%8F-what-is-cloud-computing-046cf9f93a6e?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/046cf9f93a6e</guid>
            <category><![CDATA[cloud-benefit]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-models]]></category>
            <category><![CDATA[cloud-types]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 16:40:38 GMT</pubDate>
            <atom:updated>2025-08-07T16:40:38.981Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital world, the term <em>cloud</em> has become one of the most commonly heard buzzwords in technology. Whether it’s streaming services, web hosting, or enterprise software, much of what powers modern applications operates on the cloud.</p><p>But what exactly is “the cloud”? And why is it so important?</p><p>This blog marks the beginning of a series exploring everything about cloud computing , starting from the basics and gradually diving into advanced concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_E5S8A_GjCjFNwzJsYl_9g.png" /></figure><h3>🌩️ What Is the Cloud?</h3><p>Cloud computing refers to the delivery of computing services over the internet. These services include storage, databases, servers, networking, software, analytics, and more. Instead of owning physical infrastructure or data centers, organizations rent access to these resources from a cloud provider.</p><p>This model offers flexibility, cost savings, and the ability to scale workloads according to demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*RYOt9jLcwkWANpF7C3WU6g.png" /></figure><h3>☁️ Leading Cloud Service Providers</h3><p>Some of the world’s most widely used cloud providers include:</p><ul><li><strong>Amazon Web Services (AWS)</strong> — A comprehensive and widely adopted cloud platform offering over 200 services globally.</li><li><strong>Microsoft Azure</strong> — Popular among enterprises due to seamless integration with Microsoft tools and hybrid capabilities.</li><li><strong>Google Cloud Platform (GCP)</strong> — Known for strong data analytics, machine learning, and open-source support.</li><li><strong>Oracle Cloud</strong> — Often used for enterprise databases and applications.</li><li><strong>IBM Cloud</strong> — Offers strong hybrid cloud and AI integration solutions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*akWK7LJASQhUHzsm1KTV8Q.jpeg" /></figure><h3>✅ Key Benefits of Cloud Computing</h3><ul><li><strong>Scalability</strong> — Resources can be adjusted based on demand.</li><li><strong>Cost Efficiency</strong> — No need for large upfront hardware investments.</li><li><strong>Accessibility</strong> — Applications and data can be accessed from anywhere with an internet connection.</li><li><strong>Security</strong> — Major providers offer robust security frameworks and compliance.</li><li><strong>Disaster Recovery</strong> — Data backups and recovery are simplified and reliable.</li></ul><h3>🧱 Types of Cloud Deployments</h3><h3>1. Public Cloud</h3><p>Services are delivered over the public internet and shared among multiple organizations.</p><p>🔹 <em>Example:</em> Hosting a website on AWS EC2 or using Google Drive.</p><h3>2. Private Cloud</h3><p>A private environment dedicated to a single organization, often hosted in on-premises data centers or via a third party.</p><p>🔹 <em>Example:</em> A government agency using a dedicated VMware-based private cloud for security compliance.</p><h3>3. Hybrid Cloud</h3><p>Combines both public and private clouds, allowing data and applications to move between them.</p><p>🔹 <em>Example:</em> An enterprise that processes sensitive data in a private cloud while using a public cloud for running customer-facing applications.</p><h3>4. Multi-Cloud</h3><p>Utilizes services from multiple cloud providers to avoid vendor lock-in or optimize specific services.</p><p>🔹 <em>Example:</em> Using Oracle for compute services, Google Cloud for machine learning, and Azure for internal enterprise apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*g4y1ZWKAJZ7yu5QqVS7eAQ.png" /></figure><h3>⚙️ Cloud Service Models Explained</h3><p>Cloud computing is broadly divided into three main models:</p><h3>1. Infrastructure as a Service (IaaS)</h3><p>Provides virtualized computing resources over the internet.</p><p>🔹 <em>Example:</em> AWS EC2, Google Compute Engine, Azure Virtual Machines<br> Used for hosting websites, custom apps, or virtual machines.</p><h3>2. Platform as a Service (PaaS)</h3><p>Offers a platform allowing customers to develop, run, and manage applications without managing infrastructure.</p><p>🔹 <em>Example:</em> Heroku, Google App Engine, AWS Elastic Beanstalk<br> Commonly used by developers for building web or mobile applications.</p><h3>3. Software as a Service (SaaS)</h3><p>Delivers software applications over the internet on a subscription basis.</p><p>🔹 <em>Example:</em> Google Workspace, Salesforce, Microsoft 365<br> Ideal for email, CRM, collaboration, and office tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*xroRxaljRw6hM31M8dANkA.jpeg" /></figure><h3>🧩 Mixing Cloud Models in Organizations</h3><p>Organizations often combine different cloud service models based on departmental or functional needs:</p><ul><li><strong>SaaS for HR and Finance:</strong> Systems like Workday or SAP SuccessFactors streamline payroll and workforce management.</li><li><strong>PaaS for App Development:</strong> Developers can build and test applications quickly using platforms like Azure App Service or Firebase.</li><li><strong>IaaS for Specialized Workloads:</strong> High-performance computing, big data analytics, or GPU-based workloads often require custom infrastructure, making IaaS ideal.</li></ul><p>This combination enhances flexibility, cost-efficiency, and departmental autonomy.</p><p>Written by Savindu Amalka.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=046cf9f93a6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Understanding Cloud Vault & Envelope Encryption]]></title>
            <link>https://medium.com/@savinduamalka/understanding-cloud-vault-envelope-encryption-2f92cb473392?source=rss-9874a578d0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f92cb473392</guid>
            <category><![CDATA[envelop-encryption]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[master-key]]></category>
            <category><![CDATA[data-encryption]]></category>
            <category><![CDATA[vault]]></category>
            <dc:creator><![CDATA[Savindu Amalka]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 08:17:42 GMT</pubDate>
            <atom:updated>2025-08-05T08:17:42.905Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s cloud-native world, managing secrets and encryption keys securely is critical to building a trustworthy and resilient infrastructure. Enter <strong>Cloud Vault, </strong>a secure service that offers centralized management of encryption keys and sensitive credentials. But what makes it powerful isn’t just where the keys are kept , it’s how they’re used, especially through a method called <strong>Envelope Encryption</strong>.</p><p>Let’s unpack how cloud vaults function, the role of keys, the encryption process, and how real-world cloud storage encrypts and decrypts your data, with the help of an illustrated example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2ucG_5xuZNRFgUP8tFLhQ.png" /></figure><h3>🔐 What is a Cloud Vault?</h3><p>A <strong>Cloud Vault</strong> is a service designed to securely store and manage <strong>keys and secrets</strong>, such as:</p><ul><li><strong>Keys</strong>: Public and private keys used in encryption (e.g., RSA, ECDSA).</li><li><strong>Secrets</strong>: Passwords, Certificates, SSH Keys, API Tokens, and more.</li></ul><h3>Key Principles:</h3><ol><li><strong>Centrally Managed</strong>: All keys and credentials are managed from a single control point.</li><li><strong>No Hardcoding</strong>: Keys and secrets are never exposed directly in source code or configuration files.</li><li><strong>Tightly Controlled Access</strong>: Managed by IAM roles and policy enforcement.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*Oyo7ziaWgGpMZn0hEJHoWA.png" /><figcaption>Screenshot from OCI</figcaption></figure><h3>🔒 Protection Mechanisms: Software vs HSM</h3><h3>1. Software-based Protection:</h3><ul><li>Keys are encrypted and stored using software running on virtual machines.</li><li>Suitable for most use cases where performance and flexibility are important.</li><li><strong>Pricing</strong>: Lower compared to HSM-based protection.</li></ul><h3>2. HSM (Hardware Security Module):</h3><ul><li>Keys are generated and stored inside dedicated tamper-proof hardware.</li><li>Offers the <strong>highest level of security</strong> (FIPS 140–2 Level 3).</li><li>Best for regulatory/compliance-heavy workloads (e.g., finance, healthcare).</li><li><strong>Pricing</strong>: Higher due to physical hardware and compliance overhead.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75JuAKCThg5ytSoVK8k_Mg.png" /><figcaption>By <a href="https://sslinsights.com/author/priyamervana/">Priya Mervana</a> On SSL Insights</figcaption></figure><h3>🔑 Master Keys and Data Keys</h3><h3>Master Key:</h3><ul><li>A long-term key stored securely in the vault.</li><li>Used to encrypt (wrap) and decrypt (unwrap) data encryption keys.</li><li>Remains protected in software or HSM.</li></ul><h3>Data Key:</h3><ul><li>A short-term key used to encrypt or decrypt the actual data.</li><li>Generated on demand and encrypted with the master key.</li><li>Typically based on <strong>AES (Advanced Encryption Standard)</strong>, as it’s fast and efficient for bulk data encryption.</li></ul><blockquote><em>Encryption Algorithms like </em><strong><em>AES</em></strong><em>, </em><strong><em>RSA</em></strong><em>, and </em><strong><em>ECDSA</em></strong><em> were explained in the “</em><a href="https://medium.com/@savinduamalka/understanding-encryption-from-plain-text-to-cipher-text-814adbbc122b"><em>Understanding Encryption</em></a><em>” blog. Briefly:</em></blockquote><ul><li><strong>AES</strong>: Symmetric key, fast and secure.</li><li><strong>RSA</strong>: Asymmetric key, used in key exchange.</li><li><strong>ECDSA</strong>: Lightweight and efficient for digital signatures.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*6C_1w0oA62N4hw4XDTIgxw.png" /><figcaption>Screenshot from OCI</figcaption></figure><h3>🧩 Envelope Encryption: The Vault’s Operating Model</h3><p><strong>Envelope Encryption</strong> is a technique where:</p><ol><li>A <strong>data key</strong> is generated to encrypt the actual data.</li><li>That <strong>data key</strong> is encrypted (wrapped) with a <strong>master key</strong>.</li><li>Both the <strong>encrypted data</strong> and the <strong>encrypted data key</strong> are stored together.</li></ol><p>This method limits exposure and simplifies key rotation and management, because only the data key needs rotation, not the entire dataset.</p><h3>🧮 How Vault Works — With Encryption &amp; Decryption Flow</h3><p>Let’s walk through the lifecycle of an image being encrypted and stored in <strong>Object Storage</strong>, based on the attached diagram:</p><h3>🔁 Encryption Process:</h3><ol><li><strong>Plaintext Data</strong>: A user uploads a file (e.g., an image).</li><li><strong>Data Key Request</strong>: The object storage requests a data key from the vault.</li><li><strong>Vault Returns Keys</strong>: The vault generates a new data key, then:</li></ol><ul><li>Returns the <strong>plaintext data key</strong>.</li><li>Also returns the <strong>encrypted data key</strong> (wrapped using the master key).</li></ul><p>4.<strong> Data Encryption</strong>: Object storage encrypts the image using the <strong>plaintext data key</strong>.</p><p>5.<strong> Storage</strong>: The <strong>encrypted image</strong> and its corresponding <strong>encrypted data key</strong> are stored together in the storage bucket.</p><h3>🔁 Decryption Process:</h3><ol><li>When access is needed, the system retrieves:</li></ol><ul><li>The <strong>encrypted data</strong>.</li><li>The <strong>encrypted data key</strong>.</li></ul><p>2. The encrypted data key is sent to the vault.</p><p>3. The vault <strong>decrypts</strong> it using the <strong>master key</strong>, and returns the plaintext <strong>data key</strong>.</p><p>4. Object storage uses this data key to <strong>decrypt the image</strong>, making it readable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKoo1uqcf46HPRHJ375v0A.png" /><figcaption>Screenshot from OCI</figcaption></figure><h3>✅ Benefits of Envelope Encryption</h3><ul><li><strong>Simplified Key Management</strong>: Only the data key needs to be rotated.</li><li><strong>Reduced Blast Radius</strong>: If a data key is compromised, only that file is at risk, not the entire dataset.</li><li><strong>Avoids Full Re-Encryption</strong>: Rotating master keys doesn’t require re-encrypting all data — just re-wrapping the data keys.</li></ul><h3>⚠️ Vault and Key Deletion Policy</h3><p>A key or secret deleted from a vault cannot be recovered after deletion. To prevent accidental loss, cloud providers implement a <strong>7-day recovery window</strong>:</p><ul><li><strong>Soft Deletion Period</strong>: Once a key is marked for deletion, it remains undeleted for <strong>7 days</strong>.</li><li><strong>Restoration Possible</strong>: Within this window, the key can be restored.</li><li><strong>Post-Deletion Impact</strong>: If the key is permanently deleted, <strong>any data encrypted using it becomes unrecoverable</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*DtYMdfVD8SctcH7Ar__Jig.png" /><figcaption>Screenshot from OCI</figcaption></figure><p>Written by Savindu Amalka</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f92cb473392" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>