<?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 Rasindu Roohansa on Medium]]></title>
        <description><![CDATA[Stories by Rasindu Roohansa on Medium]]></description>
        <link>https://medium.com/@rasinduroohansa?source=rss-f1074adac8ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_PSOwsPCHhGMzLlIK3s6rg.jpeg</url>
            <title>Stories by Rasindu Roohansa on Medium</title>
            <link>https://medium.com/@rasinduroohansa?source=rss-f1074adac8ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:02:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rasinduroohansa/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[Secure Cross-Cloud Data Migration: Azure SQL DB to AWS Athena via Private Networks]]></title>
            <link>https://medium.com/@rasinduroohansa/secure-cross-cloud-data-migration-azure-sql-db-to-aws-athena-via-private-networks-a7131569831c?source=rss-f1074adac8ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7131569831c</guid>
            <category><![CDATA[secure-data-transfer]]></category>
            <category><![CDATA[secure-cross-cloud-data]]></category>
            <category><![CDATA[virtual-private-network]]></category>
            <category><![CDATA[netowrk-security]]></category>
            <dc:creator><![CDATA[Rasindu Roohansa]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 23:09:14 GMT</pubDate>
            <atom:updated>2026-10-26T23:09:14.998Z</atom:updated>
            <content:encoded><![CDATA[<p>Data migration is a critical milestone for organizations seeking to modernise their data infrastructure by moving from rigid operational stores to agile cloud analytical engines. As businesses scale, the demand for decoupling transactional workloads from heavy analytics drives a popular architectural shift: migrating structured data from relational engines like <strong>Azure SQL Database</strong> to serverless, cost-efficient querying platforms like <strong>AWS Athena</strong>.</p><p>However, moving data across cloud boundaries introduces significant architectural challenges — chief among them being <strong>network security and data exfiltration risks</strong>. Traditional migrations that rely on public IP addresses, open firewall rules, or public cloud endpoints leave database clusters exposed to automated threats, man-in-the-middle attacks, and SQL injection vectors.</p><p>To achieve enterprise-grade security, modern cloud architectures enforce a <strong>Zero-Trust network model</strong>: keeping databases entirely isolated within private virtual networks, stripping out public internet exposure completely, and funneling all administrative interactions, monitoring, and controlled transport paths through hardened <strong>bastion servers (jump hosts)</strong>.</p><p>In this article, we will explore an enterprise-grade, deeply secure approach to migrating data from Azure SQL Database to AWS Athena using isolated private networks and monitored gateway controls.</p><h3>The Security Imperative: Why Public-Less Architecture Matters</h3><p>When designing data pipelines across cloud providers (Azure to AWS), security architects must mitigate several attack vectors:</p><ul><li><strong>Elimination of Public Endpoints:</strong> By removing public IP addresses from Azure SQL Databases and Amazon S3 staging buckets, the attack surface against external brute-force entry is effectively reduced to zero.</li><li><strong>Mitigating SQL Injection &amp; Interception:</strong> Keeping data payloads inside internal network backbones ensures that data in transit across the migration pathway cannot be intercepted or spoofed over the open internet.</li><li><strong>Granular Traffic Auditing with Bastion Hosts:</strong> Direct administrative access is disabled. Any required diagnostic checks, pipeline triggers, or manual interventions must pass through a heavily monitored <strong>bastion server</strong> running multi-factor authentication (MFA), session recording, and strict Network Security Group (NSG) / Security Group rules.</li></ul><h3>Technical Architecture Overview: Zero Public Exposure</h3><p>To construct a completely isolated, private cross-cloud migration channel, the topology relies on strict perimeter controls:</p><ol><li><strong>The Azure Private Perimeter:</strong> Azure SQL Database is bound to an <strong>Azure Private Endpoint</strong> within a secure Virtual Network (VNet). No public access flags are enabled. Data extraction is handled via a Self-Hosted Integration Runtime (SHIR) deployed internally.</li><li><strong>The Controlled Transit Layer:</strong> Data is temporarily stored in an Azure Blob Storage account shielded by Virtual Network rules and Private Link. Cross-cloud movement is managed through encrypted channels (such as AWS DataSync or secure site-to-site VPN/ExpressRoute/Direct Connect hybrids) without touching public endpoints.</li><li><strong>The Bastion Control Plane:</strong> Engineers and automated management routines connect exclusively through an isolated <strong>Bastion Host (Jump Box)</strong> equipped with rigorous logging, acting as the sole choke point for administrative traffic.</li><li><strong>The AWS Private Lakehouse:</strong> Data lands in an encrypted Amazon S3 bucket mapped to a VPC Endpoint, cataloged by AWS Glue, and queried securely via Athena.</li></ol><h3>Step-by-Step Secure Migration Guide</h3><h3>1. Assessment, Schema Mapping, and Network Hardening</h3><ul><li><strong>Security Baselines:</strong> Ensure database auditing and Advanced Threat Protection are active on Azure SQL. Configure AWS KMS customer-managed keys (CMKs) to encrypt data at rest within Amazon S3.</li><li><strong>Schema Mapping:</strong> Map relational T-SQL types to Presto/Hive types compatible with Athena (e.g., DATETIME2 to TIMESTAMP, VARCHAR(MAX) to STRING), ensuring no data corruption happens during translation.</li></ul><h3>2. Extract Data Securely from Azure SQL Database</h3><ul><li><strong>Private Extraction:</strong> Deploy <strong>Azure Data Factory (ADF)</strong> utilizing a Self-Hosted Integration Runtime (SHIR) hosted on an internal private subnet. This ensures database queries execute entirely within the private VNet boundary.</li><li><strong>Format Optimisation:</strong> Export data into <strong>Apache Parquet</strong> format. Parquet provides columnar compression and built-in statistics, minimizing the data payload size sent across the network.</li><li><strong>Private Staging:</strong> Land the exported Parquet files into an <strong>Azure Blob Storage</strong> account accessible only via private endpoints.</li></ul><h3>3. Isolated Cross-Cloud Transfer via Controlled Routes</h3><ul><li><strong>Securing the Pipeline:</strong></li><li>Avoid public internet data shuffling by utilizing <strong>AWS DataSync</strong> configured with VPC endpoints or an encrypted private interconnect (such as AWS Direct Connect paired with Azure ExpressRoute).</li><li>If using intermediary scripts, execute them exclusively through the hardened <strong>bastion server</strong>, ensuring all transit keys are ephemeral and logged.</li><li><strong>Destination S3 Hardening:</strong> Enforce strict S3 Bucket Policies that block public access entirely and require aws:SecureTransport (HTTPS-only enforced).</li></ul><h3>4. Data Transformation, Cataloging, and Governance</h3><ul><li><strong>AWS Glue Configuration:</strong> Use an <strong>AWS Glue Crawler</strong> operating inside a private subnet (with VPC interfaces) to read the S3 Parquet layout and populate the AWS Glue Data Catalog.</li><li><strong>Partitioning for Performance:</strong> Structure your S3 data paths and define partitions (e.g., by year and month) to prevent broad, expensive full-table scans in Athena.</li></ul><h3>5. Querying and Monitoring via Athena</h3><ul><li><strong>Workgroup Controls:</strong> Restrict Athena query execution using IAM policies and dedicated Workgroups with strict data scanning limits per query to protect against runaway costs or accidental data exposure.</li><li><strong>Centralised Auditing:</strong> Route all AWS CloudTrail, VPC Flow Logs, and Azure Activity Logs to a centralised Security Information and Event Management (SIEM) system to monitor access attempts continuously.</li></ul><h3>Security Best Practices Checklist</h3><ul><li><strong>Zero Standing Privileges:</strong> Ensure bastion access is ephemeral, requiring Just-In-Time (JIT) access requests and multi-factor authentication.</li><li><strong>Strict Network Security Groups (NSGs):</strong> Lock down port ranges. Only allow outbound traffic necessary for the migration toolsets, blocking all arbitrary internet-bound routes (0.0.0.0/0).</li><li><strong>Encryption End-to-End:</strong> Enforce TLS 1.2+ for all data in transit and KMS envelope encryption for data at rest across both Azure and AWS storage layers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C9KN3pOmsy58xyOt1JDgGg.jpeg" /></figure><h3>Conclusion</h3><p>Migrating data from Azure SQL Database to AWS Athena does not require compromising on security. By completely isolating your infrastructure from the public internet, leveraging private endpoints, and channeling administrative oversight through tightly monitored bastion servers, organizations can build a modern, high-performance data lakehouse that satisfies the strictest enterprise compliance requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7131569831c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>