<?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 Christopher B. London on Medium]]></title>
        <description><![CDATA[Stories by Christopher B. London on Medium]]></description>
        <link>https://medium.com/@cloudybusiness1?source=rss-9c69dc398407------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZI0gyuqeP2szfZwqjFlsvw.jpeg</url>
            <title>Stories by Christopher B. London on Medium</title>
            <link>https://medium.com/@cloudybusiness1?source=rss-9c69dc398407------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:06:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloudybusiness1/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[Securing Amazon SageMaker Part 3]]></title>
            <link>https://medium.com/@cloudybusiness1/securing-amazon-sagemaker-part-3-5f6303232d7b?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f6303232d7b</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[amazon-sagemaker]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 14:00:37 GMT</pubDate>
            <atom:updated>2026-11-10T10:02:47.542Z</atom:updated>
            <content:encoded><![CDATA[<h3>SECURING AMAZON SAGEMAKER PART 3</h3><h3>Part 3: Training Jobs, Network Isolation, and Data Access</h3><figure><img alt="Illustration of an Amazon SageMaker training job surrounded by five security components: a scanned and trusted container image, an IAM execution role, source code from Git or an artifact repository, encrypted Amazon S3 data, and VPC network isolation with private subnets." src="https://cdn-images-1.medium.com/max/1024/1*DmTM-uNqR191ys15vbPnfg.png" /><figcaption>Securing Amazon SageMaker training jobs requires more than protecting the Studio Domain. Container images, IAM execution roles, source code, encrypted S3 data, and VPC network isolation each contribute to a secure ML training environment.</figcaption></figure><p>Securing the SageMaker domain doesn’t secure the training jobs users launch from it. To secure training, use scanned, prebuilt container images in Amazon ECR, keep code in Git and deliver it to AWS only through a scoped CI/CD role, encrypt your data and limit the training execution role to the job’s S3 prefixes, and run every training job in your private subnets with VpcConfig and EnableNetworkIsolation turned on.</p><figure><img alt="Architecture diagram showing the security components of an Amazon SageMaker training job, with separate sections for compute, identity, code and data access, and network isolation." src="https://cdn-images-1.medium.com/max/1024/1*VfpqPxr4sfVsx3uadB8aFg.png" /><figcaption>Security boundaries for a SageMaker training job, including container images, IAM execution roles, code, data, and network configuration.</figcaption></figure><h3>We’ve secured the SageMaker domain. What happens when users start working in it?</h3><p>Now that you’ve secured the domain, the next area to focus on is how users actually use that domain.</p><p>Ideally, data scientists and analysts log into a notebook or code editor. They’re going to run queries, explore data, do data processing, and then focus on local notebook training jobs.</p><p>I’ll note that I’ve generally used a multi-account approach to where SageMaker domains may be deployed to several AWS accounts. Data scientists can have their own development account where training jobs are run or scheduled from their own notebooks, but once they think they’ve gotten their code to a good place, just like a software engineer, a good practice is to commit their code to a source repository and deploy a training job with a larger dataset or to another account for promotions.</p><p>You can have a CI/CD pipeline for the desired commit branch and that pipeline should consist of packaging the user’s code for S3 or joining it with a pre-built Docker container. For containerization, SageMaker uses images hosted in Amazon ECR. So first, let’s focus there.</p><figure><img alt="Five-stage workflow diagram illustrating the progression from a source-code commit through repository and artifact preparation to launching a SageMaker training job." src="https://cdn-images-1.medium.com/max/1024/1*19S05LQpmFholSh42mOSUg.png" /><figcaption>How source code moves from a Git repository through preparation and validation into an Amazon SageMaker training job.</figcaption></figure><h3>Why do you prefer prebuilt container images for SageMaker training?</h3><p>I prefer prebuilt container images for training, because they allow you to address code package vulnerabilities and image rehydration requirements set by most organizations.</p><p>You could use a source-code repository and, on a predetermined cadence, automate building and scanning a container. Use something like Prisma Cloud or <a href="https://trivy.dev/">Trivy</a> to scan it and check and address vulnerabilities before they make it into your cloud accounts and workflows. Once those risks are resolved to a point where the organization or security team is satisfied, you can host that image in an ECR repository.</p><p>ECR also supports scanning and has the ability for the above-mentioned scanners to connect and scan its hosted images. A great security practice is to turn on <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-enhanced.html">ECR enhanced scanning</a> with continuous scan, which rescans your hosted images as new vulnerabilities are published.</p><p>Now that images are more secure, a data scientist doesn’t have to be concerned with the container image itself; they can focus on using the image to run their training jobs.</p><h3>How do you secure the code and data a training job uses?</h3><p>OK, so now that you have a container, let’s talk about securing the submission of the code to SageMaker.</p><p>Overall, your security concerns are going to be related to housing and travel.</p><ul><li>You’ve secured the domain in <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/">Part 1</a></li><li>You’ve secured user authentication in <a href="https://londonhouse.github.io/articles/sagemaker-studio-user-authentication/">Part 2</a></li></ul><p>Now it’s time to focus on where the code and data are housed, and how those artifacts or resources are secured in transit, or travel.</p><h3>Code</h3><p><strong>Housing</strong></p><p>I’ve been places where code is kept on local or cloud notebooks, and that’s a big “ <em>NO, NO</em> “. Today, Amazon SageMaker allows you to integrate your git repositories:</p><ul><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/studio-git-attach-console.html">SageMaker Studio Classic</a>: suggested code repositories on the domain or user profile</li><li><a href="https://docs.aws.amazon.com/sagemaker-unified-studio/latest/adminguide/git-connections.html">SageMaker Unified Studio</a>: Git connections through AWS CodeConnections</li></ul><p>I typically use the standard method of allowing users to run terminal commands or pre-built shell scripts to initialize their remote git repositories.</p><p>Using GitHub, GitLab or others, you can create pre-built repository templates and have users clone those in their workspaces, write their code and commit back to the remote repository. This method allows you to perform security from the repository level. Most enterprise-ready git repository hosts have team-level security that can be leveraged to secure code away from unauthorized users and even allow scans.</p><p><strong>Travel</strong></p><p>This concept is more of a DevOps concept, but as an MLOps engineer the discipline overlaps. In this example I’ll admit I’m more familiar with using GitLab and GitHub, but the process may be similar with other systems.</p><p>The CI/CD pipeline to deliver the code can use <a href="https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws">OIDC</a> to connect to AWS and deliver the job with project-specific roles that you deployed when the project was created. Here’s what that role looks like in Terraform. The project name is passed in as a variable, so every project gets its own deploy role.</p><p>The role can only upload to the project’s code prefix, launch training jobs named after the project that run in your training subnets with network isolation on, and pass the project’s own execution role to SageMaker.</p><pre>data &quot;aws_partition&quot; &quot;current&quot; {}<br><br># The GitHub OIDC provider is created once per account, not per project<br>data &quot;aws_iam_openid_connect_provider&quot; &quot;github&quot; {<br>  url = &quot;https://token.actions.githubusercontent.com&quot;<br>}<br><br>locals {<br>  partition = data.aws_partition.current.partition<br>  # Every training job this project launches must start with the project name<br>  training_job_arn = &quot;arn:${local.partition}:sagemaker:${var.region}:${var.account}:training-job/${var.project_name}-*&quot;<br>}<br><br>resource &quot;aws_iam_role&quot; &quot;project_deploy&quot; {<br>  name = &quot;${var.project_name}-training-deploy&quot;<br>  tags = var.tags<br><br>  # Only this project&#39;s repository, on main, can assume the role<br>  assume_role_policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [<br>      {<br>        Effect = &quot;Allow&quot;<br>        Principal = {<br>          Federated = data.aws_iam_openid_connect_provider.github.arn<br>        }<br>        Action = &quot;sts:AssumeRoleWithWebIdentity&quot;<br>        Condition = {<br>          StringEquals = {<br>            &quot;token.actions.githubusercontent.com:aud&quot; = &quot;sts.amazonaws.com&quot;<br>            &quot;token.actions.githubusercontent.com:sub&quot; = &quot;repo:${var.github_org}/${var.project_name}:ref:refs/heads/main&quot;<br>          }<br>        }<br>      },<br>    ]<br>  })<br>}<br><br>resource &quot;aws_iam_role_policy&quot; &quot;project_deploy&quot; {<br>  name = &quot;${var.project_name}-training-deploy&quot;<br>  role = aws_iam_role.project_deploy.id<br><br>  policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [<br>      {<br>        Sid      = &quot;UploadProjectCode&quot;<br>        Effect   = &quot;Allow&quot;<br>        Action   = [&quot;s3:PutObject&quot;]<br>        Resource = [&quot;arn:${local.partition}:s3:::${var.artifact_bucket}/${var.project_name}/code/*&quot;]<br>      },<br>      {<br>        # Jobs must run in the training subnets, with the training security group, and network isolated<br>        Sid      = &quot;CreateIsolatedTrainingJobs&quot;<br>        Effect   = &quot;Allow&quot;<br>        Action   = [&quot;sagemaker:CreateTrainingJob&quot;]<br>        Resource = [local.training_job_arn]<br>        Condition = {<br>          Bool = {<br>            &quot;sagemaker:NetworkIsolation&quot; = &quot;true&quot;<br>          }<br>          &quot;ForAllValues:StringEquals&quot; = {<br>            &quot;sagemaker:VpcSubnets&quot;          = var.training_subnet_ids<br>            &quot;sagemaker:VpcSecurityGroupIds&quot; = [var.training_security_group_id]<br>          }<br>          # Without this, a request with no VpcConfig at all passes the ForAllValues check<br>          Null = {<br>            &quot;sagemaker:VpcSubnets&quot;          = &quot;false&quot;<br>            &quot;sagemaker:VpcSecurityGroupIds&quot; = &quot;false&quot;<br>          }<br>        }<br>      },<br>      {<br>        Sid      = &quot;TrackProjectTrainingJobs&quot;<br>        Effect   = &quot;Allow&quot;<br>        Action   = [&quot;sagemaker:DescribeTrainingJob&quot;, &quot;sagemaker:AddTags&quot;]<br>        Resource = [local.training_job_arn]<br>      },<br>      {<br>        # The pipeline can hand SageMaker this project&#39;s execution role and nothing else<br>        Sid      = &quot;PassProjectExecutionRole&quot;<br>        Effect   = &quot;Allow&quot;<br>        Action   = [&quot;iam:PassRole&quot;]<br>        Resource = [aws_iam_role.training_execution.arn]<br>        Condition = {<br>          StringEquals = {<br>            &quot;iam:PassedToService&quot; = &quot;sagemaker.amazonaws.com&quot;<br>          }<br>        }<br>      },<br>    ]<br>  })<br>}</pre><p>This method locks down how code is delivered, as the runner can only do what the role specifies. Only least privileged, no open role or human involved. SageMaker training jobs will either accept an S3 location declaration of packaged code or ECR image for code location arguments.</p><h3>Data</h3><p><strong>Housing</strong></p><p>Data is typically going to be either housed in S3 or transferred from a <em>datalake</em> like Snowflake or Databricks.</p><p><a href="https://www.databricks.com/blog/what-feature-store-complete-guide-ml-feature-engineering">Feature stores</a> are also noteworthy when speaking on data housing, offline features specifically as it’s at rest or <em>“housed”</em> data. I’m going to stick to S3 at this time to stay simple and AWS-centric.</p><p>S3 already encrypts every new object with <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingServerSideEncryption.html">SSE-S3</a> (Amazon S3 managed keys) by default, so typically consider SSE-KMS with a customer managed key, which gives you a key policy and a CloudTrail record of every decrypt. Make sure the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">IAM execution role</a> assumed by the SageMaker training job has a scoped-down policy limiting access only to the specific S3 bucket prefixes required for that job. When data has entered the training job, the host machine typically moves that data to the attached EBS volume of the training instance.</p><p><strong>Travel</strong></p><p>When creating buckets it’s best practice to <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-HTTP-HTTPS">enable secure transport</a> ( aws:SecureTransport) on your bucket policies to explicitly block unencrypted HTTP data movement. You can also enable <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/train-encrypt.html">inter-container traffic encryption</a> ( EnableInterContainerTrafficEncryption=True). This setting encrypts the traffic between the instances of a distributed training job, so it only applies when a job runs on more than one instance.</p><p>In my experience, large training jobs should always be distributed; a large job on a single instance ends up slow and expensive. So for any job big enough to matter, plan on turning this on. Distributed jobs already need a <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html#train-vpc-groups">self-referencing inbound rule</a> on the job&#39;s security group so the instances can reach each other. Before you turn on encryption, also add self-referencing rules for UDP port 500 and the ESP protocol (50), which AWS requires for this setting. Expect a small increase in training time as AWS notes the encryption can slow down jobs that do a lot of communication between instances.</p><h3>Does VPC-only mode on the domain also secure training jobs?</h3><p>No, this will also have to be addressed to ensure you’re running a secure environment.</p><p>Similar to how the domain was deployed, you can configure networking to make sure the training infrastructure is locked down. To better understand it, we can talk about how training jobs behave by default.</p><p>Think back to when we created the domain, we put it in VPC-only mode to ensure the networking stays inside of AWS’s backbone network. This was done because the domain is inside of an AWS-hosted VPC. Similar to the domain, SageMaker training uses AWS-managed infrastructure. You can <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html">configure jobs to run in your VPC</a> by setting VpcConfig and passing in a security group to control traffic along with your private subnets. Since you already have VPC endpoints configured from <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/">Part 1</a>, your communication will travel through the AWS network to the needed resources like S3. Just make sure the training subnets&#39; route tables include the S3 gateway endpoint, and that the training job&#39;s security group is allowed into your interface endpoints the same way the <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/#lets-recap">Studio security group</a> is.</p><p>To ensure everything is locked down, pair this with <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/mkt-algo-model-internet-free.html#mkt-algo-model-internet-free-isolation">network isolation</a> mode ( EnableNetworkIsolation=True). This will stop the container running on the host machine from making outbound calls. SageMaker does the S3 work for the container, using your execution role. Before your training script starts, SageMaker downloads the input data and code from S3 through your private subnets, which is why the S3 gateway endpoint from <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/#should-sagemaker-use-an-s3-gateway-or-interface-endpoint">Part 1</a> still matters with isolation turned on.</p><p>Let’s review:</p><ul><li>Images are addressed and secured</li><li>Code is stored in Git and delivered only by a scoped pipeline role</li><li>Data is secured at rest and in transit</li><li>We’ve reviewed the networking for training jobs</li><li>Configure VpcConfig</li><li>Set EnableNetworkIsolation=True</li></ul><p>We’ve essentially secured a great working environment for data scientists to work inside of, store, deliver their code and launch training jobs. Next, we’ll cover security considerations for model artifacts and approving models for secure endpoints.</p><p><em>Previously: </em><a href="https://londonhouse.github.io/articles/sagemaker-studio-user-authentication/"><em>Part 2 — Securing SageMaker Domain user authentication</em></a><em><br>Medium: </em><a href="https://medium.com/@cloudybusiness1/securing-amazon-sagemaker-60effc82c7da"><em>Part 2</em></a></p><p><em>Originally published at </em><a href="https://londonhouse.github.io/articles/securing-sagemaker-training-jobs/"><em>https://londonhouse.github.io</em></a><em> on November 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f6303232d7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Amazon SageMaker Part 2]]></title>
            <link>https://medium.com/@cloudybusiness1/securing-amazon-sagemaker-60effc82c7da?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/60effc82c7da</guid>
            <category><![CDATA[identity-and-access]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[amazon-sagemaker]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 14:00:42 GMT</pubDate>
            <atom:updated>2026-11-10T20:14:51.511Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 2: Domain User Authentication</h3><figure><img alt="Illustration of Amazon SageMaker Studio user authentication, featuring a laptop displaying an organizational sign-in page with Okta SAML and AWS IAM Identity Center options. An accompanying architecture diagram shows users authenticating through an identity provider and AWS IAM to access SageMaker Studio within a private VPC." src="https://cdn-images-1.medium.com/max/1024/1*Ftm2K8ZXv2pCvtuRx9yL1g.png" /><figcaption>Securing Amazon SageMaker Studio begins with identity and access management. This illustration highlights the relationship between organizational authentication, SAML federation, IAM permissions, and access to a private SageMaker Studio environment.</figcaption></figure><h3>Introduction</h3><p><strong>How do you control who can open SageMaker Studio, and what they can do once they’re in?</strong> Separate your domains by team, pick IAM or SSO authentication when you create the domain (you can’t change it later), and tag each user profile so a condition on the user’s sign-in role only lets them open their own profile. Once they’re inside Studio, every action runs as the user profile’s execution role, so that’s where data access like S3 belongs.</p><figure><img alt="Five-step security checklist for Amazon SageMaker Studio titled “Locking down SageMaker Studio access, step by step.” The diagram illustrates domain separation, authentication selection, user profile restrictions, VPC endpoint access controls, and IAM execution role scoping. Each step includes configuration examples and explains the security risk it addresses." src="https://cdn-images-1.medium.com/max/1024/1*AUTdSNy4A8oIbZWe_mLmTQ.png" /><figcaption>Five layers of Amazon SageMaker Studio access security: organizing domains by team, selecting authentication at deployment, restricting user profile access, controlling Studio entry through VPC endpoints, and applying least-privilege execution roles. Together, these controls help limit unauthorized access and establish clear security boundaries.</figcaption></figure><p>So, in <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/">Part 1</a> we discussed securing your SageMaker Domain deployment by hardening your network. To quickly reiterate, we discussed:</p><ul><li>Deploying a private subnet</li><li>Enabling your VPC to use private DNS:</li><li>Deploying VPC endpoints with security groups</li><li>Configuring SageMaker Domain to be VPC-only</li></ul><p>When you have these settings completed, SageMaker communicates traffic over the AWS cloud’s network without traversing the public internet, all thanks to the magic of DNS resolution.</p><p>The second level of security I want to cover is user authentication. However, before we get into that, let’s discuss what the users are authenticating into.</p><h3>What are users authenticating into? Domains, user profiles, and roles</h3><p>Part 1 introduced SageMaker Domain, Studio, and Spaces as logical separations. Generally, I like to map domains with respect to the teams using them. If you have multiple analytical teams or business units looking to use SageMaker Studio, you can deploy different domains to each team or BU. This creates a grouping-like structure that aids administration and IAM policy separation, for things like:</p><ul><li>Outside SageMaker AWS Resources (EMR, AWS ML/AI services)</li><li>S3 access for cross-account bucket access.</li></ul><p>SageMaker allows you to think of IAM role access in 3 different ways:</p><p>The key thing to understand is that the person signing in and the Studio user are not the same user identity.</p><p>The <strong>sign-in role</strong> is your user’s normal IAM or SSO identity, the IAM role or SSO permissions your user signs in to AWS with. Its policy controls whether they can open Studio, and which user profile they can open.</p><p>Once they’re in Studio, they’re no longer acting as that IAM or SSO identity. They’re acting as their <em>“Studio User”</em>, which is their <strong>user profile</strong>, and every AWS action they take from within Studio (reading S3, launching a training job, calling EMR) uses the user profile’s <strong>execution role</strong>, not their IAM permissions.</p><p>This article covers private spaces, where each user works on their own. Shared spaces don’t use the user profile’s execution role; they run as the domain’s default space execution role, so they’re out of scope here.</p><p>The <strong>domain default execution role</strong> is the fallback. Any user profile created without its own execution role uses it. I generally only put the standard guardrails in this role’s policy. The <strong>user profile execution role</strong> is set on each user profile, and it’s where fine-grained, per-user or per-team access goes.</p><p>So the first layer of user authentication protection is to map your domains by teams or business units, and to design your role assignments. Next, with that structure in place, you reference your organization’s authentication policies and determine which of SageMaker Domain’s authentication methods will be used to access SageMaker Studio.</p><h3>How do users authenticate to SageMaker Studio: IAM or SSO?</h3><p>When you create your domain, you can choose between IAM authentication and SSO. This is important because changing your mind later means a complete redeployment.</p><p>Choosing either method only depends on your shop’s preferred authentication method. If you’re already using SSO with external IdPs, then SSO is probably your best bet.</p><p>If you’re not using an external IdP and you are planning to rely on IAM for restrictions, then standard IAM login is your way. Also note that, as of November 2026, if you’re on GovCloud, you really don’t have a choice but to use IAM. <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-sagemaker.html">SageMaker AI in AWS GovCloud (US)</a> supports IAM authentication for Studio, but not IAM Identity Center.</p><p>One more thing to know before you choose: SSO here means a domain created in IAM Identity Center mode. Those users open Studio from the AWS access portal and land in the user profile created for them.</p><p>The profile and network restrictions below are for IAM-mode domains, and that includes users who sign in to AWS with an SSO permission set and then open Studio from the console. IAM mode is also the only mode that lets you <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/onboard-custom.html#onboard-custom-authentication-details">lock down where users can open Studio from</a>. VPC-only mode from <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/">Part 1</a> keeps Studio’s own traffic private, but it doesn’t stop a user opening Studio from a laptop on the internet. I’ll show how to restrict that below.</p><p>Here’s how the two compare:</p><figure><img alt="Comparison table of IAM and SSO (AWS IAM Identity Center) authentication for Amazon SageMaker Studio. The table compares identity management, Studio sign-in methods, user profile access, VPC endpoint and IP restrictions, AWS GovCloud availability as of November 2026, and whether authentication mode can be changed after domain creation." src="https://cdn-images-1.medium.com/max/1024/1*qgaX9GaSoWUFXMYrgPlTdg.png" /><figcaption>Amazon SageMaker Studio authentication comparison: IAM supports federated access through SAML, presigned URLs, and policy-based restrictions on user profiles and access locations. IAM Identity Center provides centralized SSO and assigned user profiles. Authentication mode is selected at domain creation, with GovCloud availability influencing the choice.</figcaption></figure><p>If you choose IAM authentication, one of the <em>“gotchas”</em> that you need to understand is that by default, SageMaker does not restrict users logging in to another user’s profile, thus mimicking user impersonation. It may be for collaboration purposes, but if users require deeper security or at least development privacy, one trick I often deploy is IAM policies with conditions that use <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-userid">Global Context Keys</a>.</p><h3>How do you stop SageMaker Studio users opening each other’s profiles?</h3><p>So, remember, by default, SageMaker isn’t restrictive on user profiles. Applying condition keys to DescribeUserProfile and CreatePresignedDomainUrl actions can help mitigate that collaborative openness until you, the admin, allow it.</p><ul><li><a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeUserProfile.html">Describe User Profile</a> — grants an IAM identity (user, group, or role) the authority to retrieve detailed metadata about a specific Amazon SageMaker Studio user profile</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreatePresignedDomainUrl.html">Create Presigned Domain URL</a> — grants an IAM identity (user, group, or role) the authority to generate a URL that signs into the Studio domain as a specific user profile</li></ul><p>In your IaC repo, tag each user profile you create with a userId tag, and set it to the user&#39;s login email, which is typical in enterprise organizations. Then add conditions to the policy attached to the user&#39;s sign-in role, so the API call is checked against that resource tag.</p><p>What’s happening exactly is that when a user signs in to AWS, there are certain attributes associated with that user. This design grabs one of those attributes and locks down the completion of that API call, allowing or denying the API call based on the attribute you add to the policy.</p><p>For the sign-in role, identify the IAM role or SSO permission set your users generally use for AWS access, and attach a policy with the global condition keys to restrict which user profiles they can see and open.</p><pre>data &quot;aws_partition&quot; &quot;current&quot; {}<br><br>locals {<br>  # Partition-aware, so the same code works in commercial Regions and GovCloud<br>  user_profile_arn = &quot;arn:${data.aws_partition.current.partition}:sagemaker:${var.region}:${var.account}:user-profile/${var.domain_id}/*&quot;<br>}<br><br>resource &quot;aws_iam_policy&quot; &quot;sagemaker_restricted_policy&quot; {<br>  name        = &quot;SageMakerSelfServiceRestrictedPolicy&quot;<br>  path        = &quot;/&quot;<br>  description = &quot;Allows profile descriptions and presigned URLs restricted by global user identity attributes&quot;<br>  tags        = var.tags<br><br>  policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [<br>      {<br>        Sid    = &quot;RestrictDescribeUserProfile&quot;<br>        Effect = &quot;Allow&quot;<br><br>        Action = [<br>          &quot;sagemaker:DescribeUserProfile&quot;,<br>        ]<br><br>        Resource = [<br>          local.user_profile_arn,<br>        ]<br><br>        Condition = {<br>          StringLike = {<br>            &quot;aws:userid&quot; = [<br>              &quot;*:$${sagemaker:ResourceTag/userId}&quot;<br>            ]<br>          }<br>        }<br>      },<br>      {<br>        Sid    = &quot;RestrictPresignedUrl&quot;<br>        Effect = &quot;Allow&quot;<br><br>        Action = [<br>          &quot;sagemaker:CreatePresignedDomainUrl&quot;<br>        ]<br><br>        Resource = [<br>          local.user_profile_arn,<br>        ]<br><br>        Condition = {<br>          StringLike = {<br>            &quot;aws:userid&quot; = [<br>              &quot;*:$${sagemaker:ResourceTag/userId}&quot;<br>            ]<br>          }<br>        }<br>      },<br>      {<br>        # Stop users retagging a colleague&#39;s profile with their own email<br>        Sid    = &quot;DenyUserProfileTagChanges&quot;<br>        Effect = &quot;Deny&quot;<br><br>        Action = [<br>          &quot;sagemaker:AddTags&quot;,<br>          &quot;sagemaker:DeleteTags&quot;,<br>        ]<br><br>        Resource = [<br>          local.user_profile_arn,<br>        ]<br>      }<br>    ]<br>  })<br>}</pre><p>If you mimic the above example, when your users try to open a user profile that does not match their username construction, the API call will return a <em>“not authorized”</em> type message preventing the UI action.</p><p>A few caveats before you rely on this:</p><ul><li><strong>It only works for role sessions.</strong> For a role session, aws:userid is role-id:session-name, and the *: in the condition matches everything before the session name. An IAM user&#39;s aws:userid is just its unique ID with no email in it, so the condition never matches IAM users.</li><li><strong>The session name has to come from your IdP.</strong> SAML sets it from the RoleSessionName attribute, and IAM Identity Center sets it to the user&#39;s username. I&#39;ve run this pattern with SAML federation. If you&#39;re on Identity Center, run aws sts get-caller-identity as one of your users first, and tag profiles with whatever comes after the colon in UserId. If your usernames aren&#39;t email addresses, that&#39;s what goes in the tag. If users can call sts:AssumeRole on the sign-in role themselves, they can pick any session name, including a colleague&#39;s email. Lock that down with an sts:RoleSessionName condition in the role&#39;s trust policy.</li><li><strong>Users can’t be allowed to change the tag.</strong> Anyone who can call sagemaker:AddTags on a user profile can retag it with their own email. The third statement denies that, so keep tag management in your IaC pipeline.</li><li><strong>Match the whole tag.</strong> There’s no trailing * after the tag. With one, a profile tagged alice@example.com would also open for a session named alice@example.company.com.</li></ul><p>That covers which profile a user can open. The next question is where they can open it from.</p><h3>How do you restrict where users can open Studio from?</h3><p>Even with VPC-only mode and a Studio interface endpoint, <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/studio-interface-endpoint.html#studio-private-link-restrict">users outside your VPC can still connect to Studio over the internet</a>. Any user with valid credentials can call CreatePresignedDomainUrl from anywhere and open the URL it returns.</p><p>To close that, add a network condition on the same two actions, CreatePresignedDomainUrl and DescribeUserProfile, in the policy on the user&#39;s sign-in role. AWS supports these condition keys:</p><ul><li>aws:SourceVpce: only through specific interface endpoints. This is the tightest option, and the one I&#39;d pair with Part 1.</li><li>aws:SourceVpc: only from inside a specific VPC.</li><li>aws:SourceIp: only from public IP ranges you list, such as your office or VPN egress IPs.</li><li>aws:VpcSourceIp with aws:SourceVpc: only from specific private IP ranges inside your VPC, such as a jump host subnet.</li></ul><p>Here’s the aws:SourceVpce version. It&#39;s a separate deny policy, attached to the same sign-in role, so the tag-based policy above doesn&#39;t change:</p><pre>resource &quot;aws_iam_policy&quot; &quot;sagemaker_studio_network_restriction&quot; {<br>  name        = &quot;SageMakerStudioNetworkRestriction&quot;<br>  path        = &quot;/&quot;<br>  description = &quot;Denies opening Studio unless the request comes through the SageMaker API interface endpoint&quot;<br>  tags        = var.tags<br><br>  policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [<br>      {<br>        Sid    = &quot;DenyStudioAccessOutsideVpce&quot;<br>        Effect = &quot;Deny&quot;<br><br>        Action = [<br>          &quot;sagemaker:CreatePresignedDomainUrl&quot;,<br>          &quot;sagemaker:DescribeUserProfile&quot;,<br>        ]<br><br>        Resource = [<br>          local.user_profile_arn,<br>        ]<br><br>        # Requests that don&#39;t come through this endpoint have no matching<br>        # aws:SourceVpce value, so they&#39;re denied<br>        Condition = {<br>          StringNotEquals = {<br>            &quot;aws:SourceVpce&quot; = var.sagemaker_api_vpce_id<br>          }<br>        }<br>      }<br>    ]<br>  })<br>}</pre><p>Before you turn this on, know what it changes for your users:</p><ul><li><strong>They need a path into the VPC.</strong> That means VPN, Direct Connect, or a workspace that runs inside the VPC. They also need the api and studio interface endpoints from Part 1. CreatePresignedDomainUrl goes through the API endpoint, and the URL it returns opens through the Studio endpoint.</li><li><strong>The SageMaker AI console stops working for Studio.</strong> The console’s request doesn’t come through your endpoint, so it’s denied. Users have to generate the presigned URL themselves with the CLI, an SDK, or an internal portal that calls the API through the endpoint.</li><li><strong>It only works in IAM-mode domains.</strong> Identity Center mode doesn’t support it.</li></ul><p>So far everything has been about getting into Studio. Once a user is in, a different role takes over.</p><h3>What can users access once they’re in Studio? The execution role</h3><p>Finally, the execution role. Once a user is in Studio, SageMaker restricts or allows every action they take through their user profile’s execution role, on their behalf. If a user wants to access an AWS resource, let’s say EMR or S3, this role needs access granted to it.</p><p>This is where the magic of team-level actions can be addressed for important access like S3 cross-account access:</p><pre># 1. Define the Execution Role Trust Relationship<br># Only the SageMaker service can assume this role, never the user directly.<br>data &quot;aws_iam_policy_document&quot; &quot;sagemaker_assume_role&quot; {<br>  statement {<br>    effect  = &quot;Allow&quot;<br>    actions = [&quot;sts:AssumeRole&quot;]<br><br>    principals {<br>      type        = &quot;Service&quot;<br>      identifiers = [&quot;sagemaker.amazonaws.com&quot;]<br>    }<br>  }<br>}<br><br># 2. Create the SageMaker Execution Role<br>resource &quot;aws_iam_role&quot; &quot;sagemaker_execution_role&quot; {<br>  name               = &quot;sagemaker-execution-role&quot;<br>  assume_role_policy = data.aws_iam_policy_document.sagemaker_assume_role.json<br>}<br><br># 3. Attach Cross-Account S3 Permissions to the Execution Role<br># The bucket&#39;s owning account must also allow this role in its bucket policy<br># (and in the KMS key policy, if the bucket uses SSE-KMS).<br>data &quot;aws_iam_policy_document&quot; &quot;cross_account_s3&quot; {<br>  statement {<br>    sid       = &quot;ListTeamBucket&quot;<br>    effect    = &quot;Allow&quot;<br>    actions   = [&quot;s3:ListBucket&quot;]<br>    resources = [var.team_bucket_arn]<br>  }<br><br>  statement {<br>    sid       = &quot;ReadWriteTeamData&quot;<br>    effect    = &quot;Allow&quot;<br>    actions   = [&quot;s3:GetObject&quot;, &quot;s3:PutObject&quot;]<br>    resources = [&quot;${var.team_bucket_arn}/*&quot;]<br>  }<br>}<br><br>resource &quot;aws_iam_role_policy&quot; &quot;cross_account_s3&quot; {<br>  name   = &quot;cross-account-s3&quot;<br>  role   = aws_iam_role.sagemaker_execution_role.id<br>  policy = data.aws_iam_policy_document.cross_account_s3.json<br>}<br><br># 4. Assign the Execution Role directly to the User Profile<br>resource &quot;aws_sagemaker_user_profile&quot; &quot;data_scientist_profile&quot; {<br>  domain_id         = var.domain_id<br>  user_profile_name = &quot;alice-data-scientist&quot;<br><br>  user_settings {<br>    # This links the runtime permissions to this specific user profile<br>    execution_role = aws_iam_role.sagemaker_execution_role.arn<br>  }<br><br>  # The tag the sign-in policy above matches against aws:userid<br>  tags = {<br>    userId = &quot;alice@example.com&quot;<br>  }<br>}</pre><p>Once you’ve gotten those roles ironed out and policies attached, you’ve made significant progress on team security assurance.</p><h3>Let’s recap</h3><p>OK, so now you’ve:</p><ul><li>Secured the network to communicate privately</li><li>Used per-team domain deployments and execution roles</li><li>Chosen a user authentication method for the domain</li><li>Secured your user profiles with userId tags and restrictive policies</li><li>Optionally limited where users can open Studio from with aws:SourceVpce</li></ul><p>Users should now feel comfortable working in a secured environment. The next step to address is securing programmatic actions and workflows. After all, once you’ve finished working in a notebook, you want automated training, promotion, and endpoints.</p><p><em>Previously: </em><a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/"><em>Part 1 — Private networking with VPC-only mode</em></a></p><p><a href="https://medium.com/@cloudybusiness1/securing-amazon-sagemaker-bf69bce942ae">Read part 1 on Medium</a></p><p><em>Originally published at </em><a href="https://londonhouse.github.io/articles/sagemaker-studio-user-authentication/"><em>https://londonhouse.github.io</em></a><em> on November 1, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60effc82c7da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Amazon SageMaker]]></title>
            <link>https://medium.com/@cloudybusiness1/securing-amazon-sagemaker-bf69bce942ae?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf69bce942ae</guid>
            <category><![CDATA[amazon-web-services-aws]]></category>
            <category><![CDATA[aws-vpc]]></category>
            <category><![CDATA[amazon-sagemaker]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 16:00:40 GMT</pubDate>
            <atom:updated>2026-11-02T14:59:50.403Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1: Private Networking with VPC-Only Mode</h3><figure><img alt="Illustration of a secure Amazon SageMaker VPC-only architecture, featuring Python code invoking a SageMaker Runtime endpoint and a network diagram showing private communication through AWS PrivateLink and VPC endpoints to Amazon S3, CloudWatch, and SageMaker Runtime." src="https://cdn-images-1.medium.com/max/1024/1*bNKO8T7FkIEfbmcB4GRzwQ.png" /><figcaption>Securing Amazon SageMaker with VPC-only networking. Private connectivity through AWS VPC endpoints enables communication with services such as Amazon S3, CloudWatch, and SageMaker Runtime without traversing the public internet.</figcaption></figure><h3>Introduction</h3><p>In Amazon SageMaker AI the secure deployment mode is <strong>SageMaker VPC-only mode</strong>. SageMaker VPC-only mode sends all SageMaker Studio traffic through your VPC’s private subnets instead of the public internet. To use it, you need private subnets, VPC DNS support and DNS hostnames enabled, and a VPC endpoint for every AWS service Studio calls. You will also need interface endpoints with private DNS turned on, plus an S3 gateway endpoint. Any service without an endpoint has no private path, so calls to it fail unless the subnets also have an internet route.</p><p>Amazon SageMaker, now called SageMaker AI, is a fully managed cloud service that, in my opinion, is designed to help data scientists and data explorers build, train, and deploy models on AWS. I’ve used the service for years, creating IaC and workflows directly with the SageMaker API, and indirectly as a compute backend for orchestration services like Airflow, Kubeflow, and MLflow. Across multiple deployments and integrations, I’ve applied AWS’s recommended security practices, and I’d like to share and explain those configurations for anyone looking to lock down their deployment.</p><h3>What is SageMaker VPC-only mode?</h3><p><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/onboard-vpc.html">VPC-only mode</a> is a SageMaker domain configuration that sends all traffic through your VPC’s private subnets. There are a few areas to consider when securing SageMaker with a VPC-only mode configuration, but the first area I’d consider is networking. In order to really understand what needs to be secured, we should first discuss how SageMaker Studio’s traffic flows.</p><h3>How does SageMaker Studio traffic flow by default?</h3><p>First, you need to understand how the SageMaker domain service is designed by default, and then it will help explain how SageMaker’s network traffic flows through the AWS network.</p><p>SageMaker Studio is made up of three parts:</p><ul><li>SageMaker Domain — the overall logical separation for resources and features. I typically create one per team.</li><li>SageMaker Studio — inside the domain, this layer is the UI where you access those features.</li><li>SageMaker Spaces — within Studio, a space is where each user works. You can have private spaces for each user as well as shared spaces for better collaboration.</li></ul><p>These resources are hosted and managed by AWS. While you can make some configuration changes and minor updates, you, the admin, don’t fully manage them, and you won’t see them in your VPC. Typically, when you open a user space and launch a notebook to get started with your code, you run commands like pip installs and resource queries, and all of that traffic goes out through the public internet and back into the AWS cloud. Think about it: queries to S3, CloudWatch, EFS, and other services travel over the internet and then come back into AWS. The traffic is typically encrypted in transit, but it still leaves the AWS network.</p><figure><img alt="Side-by-side architecture diagram comparing default Amazon SageMaker networking with VPC-only mode. The default configuration shows traffic traveling through an internet gateway to AWS services, while VPC-only mode illustrates private connectivity between the SageMaker-managed VPC, customer VPC endpoints, and AWS services including Amazon S3, CloudWatch, and SageMaker Runtime." src="https://cdn-images-1.medium.com/max/1024/1*nlISLhaBXDFEXslsmuc1Vw.png" /><figcaption>Comparing SageMaker’s default and VPC-only network configurations. VPC-only mode routes supported AWS service traffic through private VPC endpoints, providing greater control over network communication and reducing reliance on public internet connectivity. Architecture diagram by Christopher B. London</figcaption></figure><p>Viewing the diagram, you can now see how VPC-only traffic never leaves the AWS network. It uses only internal traffic paths.</p><h3>Why keep SageMaker traffic off the public internet?</h3><p>You want to keep SageMaker traffic private because information that crosses a public network can be intercepted. If you’re running algorithms or moving data back and forth through S3, some of that data could be sensitive or highly privileged. You don’t want it exposed on a public network, where a bad actor could gain access to it or take advantage of your project’s network communication.</p><h3>What does sending SageMaker traffic through private subnets really mean?</h3><p>Sending SageMaker traffic through private subnets ensures that you only use AWS’s network, which keeps that communication from ever leaving AWS’s cloud. When you deploy SageMaker in VPC-only mode, traffic is contained privately. It works through VPC endpoints ( <a href="https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html">AWS PrivateLink</a>) and private DNS.</p><h3>How to enable private communication in your VPC</h3><p>In your VPC’s network IaC, set enable_dns_support and enable_dns_hostnames to true.</p><pre>resource &quot;aws_vpc&quot; &quot;main&quot; {<br>  cidr_block           = &quot;10.0.0.0/16&quot;<br>  <br>  # Controls whether the AWS DNS server is enabled<br>  enable_dns_support   = true # Defaults to true, explicitly set here for clarity<br>  <br>  # Required for interface endpoint private DNS<br>  enable_dns_hostnames = true <br><br>  tags = {<br>    Name = &quot;main-vpc&quot;<br>  }<br>}</pre><p>These two settings let your VPC use AWS’s internal DNS. Understand that doing this alone doesn’t change anything. The change comes from the next step: <strong>deploying interface VPC endpoints in your private subnets</strong>.</p><p>Each endpoint creates ENIs in your VPC with private IP addresses, and when you create it with private DNS enabled, AWS creates a hidden Route53 private hosted zone for that service’s public name (for example, logs.us-east-1.amazonaws.com) and points it at those private IPs. You won&#39;t see these zones in Route53. Each endpoint gets its own zone, so every service you add an endpoint for resolves privately, and every service you don&#39;t still resolves to its public address.</p><pre>resource &quot;aws_vpc_endpoint&quot; &quot;cloudwatch_logs&quot; {<br>  vpc_id              = var.vpc_id<br>  service_name        = &quot;com.amazonaws.${var.aws_region}.logs&quot; # e.g. com.amazonaws.us-east-1.logs<br>  vpc_endpoint_type   = &quot;Interface&quot;<br><br>  # Assign a security group<br>  security_group_ids  = [aws_security_group.vpc_endpoint_logs.id]<br><br>  # Specify the private subnets where AWS should place the ENIs<br>  subnet_ids          = var.private_subnet_ids<br><br>  # CRITICAL: Enables Private DNS (automatically creates the Route 53 Private Hosted Zone)<br>  private_dns_enabled = true<br><br>  tags = {<br>    Name = &quot;cloudwatch-logs-interface-endpoint&quot;<br>  }<br>}</pre><p>Be sure to set private_dns_enabled to true. That triggers the creation of the records and ensures the Route 53 Resolver uses your private network path.</p><h3>Which VPC endpoints does SageMaker Studio need in VPC-only mode?</h3><p>These are the endpoints I deploy for every VPC-only SageMaker domain. Replace &lt;region&gt; with your AWS Region.</p><ul><li><strong>SageMaker API</strong> (com.amazonaws.&lt;region&gt;.sagemaker.api) and <strong>SageMaker AI runtime</strong> (com.amazonaws.&lt;region&gt;.sagemaker.runtime): Studio can&#39;t run notebooks, train, or host models without them. <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/interface-vpc-endpoint.html">AWS docs</a></li><li><strong>SageMaker Studio</strong> (aws.sagemaker.&lt;region&gt;.studio): the Studio UI and its applications. Note the different prefix: it starts with aws.sagemaker, not com.amazonaws. <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-and-internet-access.html#studio-notebooks-and-internet-access-vpc-only-requirements">AWS docs</a></li><li><strong>Amazon S3</strong> (com.amazonaws.&lt;region&gt;.s3, gateway endpoint): datasets, model artifacts, and ECR image layers. See <a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/#should-sagemaker-use-an-s3-gateway-or-interface-endpoint">the S3 section</a> for why a gateway endpoint. <a href="https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html">AWS docs</a></li><li><strong>Amazon ECR API</strong> (com.amazonaws.&lt;region&gt;.ecr.api) and <strong>Amazon ECR Docker</strong> (com.amazonaws.&lt;region&gt;.ecr.dkr): pull custom Studio images and your own training and inference containers. Both are needed, and image layers come from S3 through the S3 endpoint. <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/vpc-endpoints.html">AWS docs</a></li></ul><h3>Honorable mentions</h3><p>Add these when your workloads use the service:</p><ul><li>SageMaker with MLflow (aws.sagemaker.&lt;region&gt;.experiments): private access to MLflow tracking servers. Like the Studio endpoint, it uses the aws.sagemaker prefix. <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-interface-endpoint.html">AWS docs</a></li><li>AWS Secrets Manager (com.amazonaws.&lt;region&gt;.secretsmanager): database passwords, API keys, and private repository credentials used from notebooks. <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/vpc-endpoint-overview.html">AWS docs</a></li><li>AWS KMS (com.amazonaws.&lt;region&gt;.kms): customer managed keys for encrypting EFS volumes, S3 objects, and training job storage. <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-vpc-endpoint.html">AWS docs</a></li><li>AWS Service Catalog (com.amazonaws.&lt;region&gt;.servicecatalog): required to use SageMaker Projects, which provision MLOps templates through Service Catalog. <a href="https://docs.aws.amazon.com/servicecatalog/latest/adminguide/vpc-interface-endpoints.html">AWS docs</a></li><li>Amazon DynamoDB (com.amazonaws.&lt;region&gt;.dynamodb, gateway endpoint): like S3, DynamoDB supports a free gateway endpoint for workloads that read or write tables. <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/vpc-endpoints-dynamodb.html">AWS docs</a></li></ul><h3>Should SageMaker use an S3 gateway or interface endpoint?</h3><p>S3 is the one service where you choose between two endpoint types, and for SageMaker, the default should be an <strong>S3 gateway endpoint</strong>. A gateway endpoint doesn’t create ENIs or DNS records. Instead, AWS adds a route for S3’s prefix list to the route tables of your private subnets, so S3 traffic from that VPC goes straight to S3 over the AWS network. Gateway endpoints have no hourly or per-GB charge, which matters when training jobs, pipelines, and notebooks pull multi-gigabyte datasets. Because there’s no NAT gateway in the path, there are no NAT data-processing charges either.</p><h3>Lock the S3 gateway endpoint down with an endpoint policy</h3><p>By default, an S3 gateway endpoint allows access to any bucket in any account. Attach a <strong>VPC endpoint policy</strong> that only allows your organization’s data buckets, so a notebook can’t copy data to a personal or unknown bucket. The endpoint policy is written in IAM policy language, but it’s attached to the endpoint, not to a user or role, and it applies to every request that goes through that endpoint.</p><p>Two things to watch for when you write the allow list:</p><ul><li><strong>AWS-owned buckets SageMaker depends on.</strong> Pulling container images from ECR downloads the image layers from an AWS-owned bucket (prod-&lt;region&gt;-starport-layer-bucket). If that bucket isn&#39;t allowed, Studio apps and training jobs fail to start. Some SageMaker features, such as JumpStart, also read from AWS-owned buckets.</li><li><strong>Cross-account buckets.</strong> If your execution roles need to read buckets in other accounts, those buckets must be in the endpoint policy too. The IAM permissions alone aren’t enough.</li></ul><p>An S3 gateway endpoint policy only controls traffic that goes through that endpoint. To fully block data exfiltration, pair it with bucket policies that require your endpoint (the aws:SourceVpce condition key) and keep your SageMaker subnets free of any NAT or internet route.</p><h3>When to use an S3 interface endpoint instead</h3><p>An S3 gateway endpoint only serves traffic that starts inside its own VPC, in the same Region. Traffic arriving from on-premises, from peered VPCs, or through Transit Gateway can’t use it. For those situations, use an <strong>S3 interface endpoint</strong>, which works like any other interface endpoint, with ENIs and private IPs, and has hourly and per-GB charges.</p><p>You can run both in the same VPC. When you create the S3 interface endpoint, turn on <strong>“Enable private DNS only for inbound endpoint”</strong>. Traffic from outside the VPC then uses the interface endpoint, while SageMaker inside the VPC keeps using the free gateway endpoint.</p><h3>Let’s recap</h3><p>OK, enough networking. Here’s what VPC-only mode needs:</p><ul><li>Make sure you have private subnets.</li><li>Set enable_dns_support and enable_dns_hostnames to true in your VPC.</li><li>Deploy your VPC endpoints.</li><li>Configure security groups with the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated-and-internet-access.html#studio-notebooks-and-internet-access-vpc-only">proper allowed traffic</a>:</li><li><strong>TCP 443 (HTTPS)</strong> from your Studio security group to the interface VPC endpoints’ security group.</li><li><strong>TCP 2049 (NFS)</strong> between the domain and its Amazon EFS volume.</li><li><strong>TCP 8192–65535</strong> within the Studio security group, for traffic between the Jupyter Server and Kernel Gateway apps.</li></ul><p>The AWS-hosted SageMaker resources are now ready to communicate over the AWS internal network.</p><h3>Can you switch an existing SageMaker domain to VPC-only mode?</h3><p>Yeah. You don’t have to rebuild the domain. AWS has the option to <a href="https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-simplifies-setting-up-sagemaker-domain-for-enterprises-to-onboard-their-users-to-sagemaker/">switch an existing domain to VPC-only mode with the AWS API/CLI</a>, by setting the domain’s AppNetworkAccessType to VpcOnly:</p><pre>aws sagemaker update-domain \<br>  --domain-id &lt;domain-id&gt; \<br>  --app-network-access-type VpcOnly<br><br># Confirm the change<br>aws sagemaker describe-domain --domain-id &lt;domain-id&gt; \<br>  --query AppNetworkAccessType</pre><p>In Terraform, the same setting is app_network_access_type = &quot;VpcOnly&quot; on the aws_sagemaker_domain resource.</p><p>There’s a catch: the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateDomain.html">UpdateDomain API</a> only lets you change the network access type when no apps in the domain are InService, Pending, or Deleting. As a best practice, before you switch:</p><ul><li>Have users save their work and back up anything important in their spaces.</li><li>Stop every running app in every user and shared space, and wait until none are still deleting.</li></ul><p>Then run the update, and your traffic should now flow over the private network.</p><h3>How to test that SageMaker traffic stays private</h3><p>A quick way to test is to launch a terminal in a Studio space and run nslookup against a service name:<br>e.g. nslookup logs&lt;region&gt;.amazonaws.com. <br>It should return a private IP address in your subnet.</p><p>S3 is the exception. Because S3 uses a gateway endpoint, <br>nslookup s3.&lt;region&gt;.amazonaws.com still returns public IP addresses, and that&#39;s expected. A gateway endpoint works through your route tables, not DNS. To check it, look at the route table for your private subnets; you should see a route to the S3 prefix list ( pl-...) that targets your gateway endpoint ( vpce-...).</p><p>Now that SageMaker is deployed in VPC-only mode and communicating over the AWS network, next we’ll cover securing user authentication.</p><p><em>Next: Part 2 — </em><a href="https://medium.com/@cloudybusiness1/securing-amazon-sagemaker-60effc82c7da?postPublishedType=initial"><em>Securing SageMaker Domain user authentication</em></a></p><p><em>Originally published at </em><a href="https://londonhouse.github.io/articles/securing-sagemaker-vpc-only-mode/"><em>https://londonhouse.github.io</em></a><em> on October 18, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf69bce942ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Backbone of Cloud Platforms: Demystifying Amazon S3]]></title>
            <link>https://medium.com/@cloudybusiness1/the-backbone-of-cloud-platforms-demystifying-amazon-s3-e1a974ddb8e8?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1a974ddb8e8</guid>
            <category><![CDATA[multi-region]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 20:43:34 GMT</pubDate>
            <atom:updated>2025-08-06T20:43:34.983Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Illustration of a cloud streaming files — photos, music, videos, mobile content into an Amazon S3 bucket, representing scalable and unified object storage in the cloud." src="https://cdn-images-1.medium.com/max/500/1*adZqLV35GZM9PC2k5AGGwg.png" /><figcaption><strong>Amazon S3 as the Universal Cloud Bucket:</strong> From documents to mobile data, S3 collects and stores diverse content types securely and at scale, powering modern apps and platforms.</figcaption></figure><h4>First, let’s look at Storage</h4><p>Before the cloud, storage lived in hardware: hard drives, USBs, and on-prem file servers. When something went wrong, you replaced the drive. Soon after, we relied on network shares, we built RAID arrays, and if you were in enterprise IT, you must remember tape drives. S3 changed that entire approach. It abstracted away the direct physical layer and gave us an object store powered by APIs, built across data centers to handle scale and redundancy, with a global reach by design.</p><h4>From Personal Storage to Enterprise Architecture</h4><p>Storing files used to mean saving to a local device or an internal NAS. You could unplug it, walk away, and know where your data lived. But once businesses needed to scale, they needed file sharing, backups, and disaster recovery. We then graduated to SANs and networked file systems. S3 is the cloud-native evolution of that concept. Cloud Storage is not mythical; it’s geographically distributed storage nodes and replicated data served up behind globally available endpoints.</p><p>All that really means is behind the scenes, your files are saved in secure buildings located in different parts of the country or world. When you upload or download something, you’re just connecting to the closest and fastest location through the internet.</p><h4>Object Storage vs. Block Storage: Know the Difference</h4><p>As storage evolved to cloud infrastructure, the way we organize, and access data changed too. That shift gave rise to two fundamental models in the cloud: block storage and object storage.</p><ul><li><strong>Block Storage:</strong> Block storage operates at a lower level of abstraction. It presents raw volumes of storage to the operating system, which then formats it with a file system (like ext4, NTFS, etc.). Each block is addressable, and the OS controls how files are structured across those blocks. This is why block storage is ideal for applications that require direct disk access, just like databases or virtual machines. Think of it like having a blank hard drive attached to your server, whatever you do with it is up to the OS. <br>For example, when you save a Word document to an NTFS-formatted disk, the OS breaks that file into chunks and stores it across multiple non-contiguous blocks. NTFS keeps a file table (<a href="https://learn.microsoft.com/en-us/windows/win32/fileio/master-file-table">MFT</a>) that records where those chunks live and how to reconstruct them when you open the file. When you retrieve that document, the OS looks up the file’s metadata, finds the block addresses, reads them into memory, and reassembles the full document seamlessly for the user. None of this is visible to the application, just open and save. But under the hood, it’s a block-level procedure that requires low-latency disk access and a reliable file system.</li><li><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html#CoreConcepts"><strong>Object Storage</strong></a><strong>:</strong> In contrast, object storage takes the entire file system away. Each file is stored as an immutable object and identified by a unique key. Objects also include metadata and can be retrieved directly via HTTP-based APIs. There’s no hierarchy, no block-level formatting, and no concept of partial updates, modifying a file means completely uploading a new object. This makes object storage highly scalable and resilient for unstructured data, that’s perfect for logs, images, video, or backup snapshots.</li></ul><p>In traditional terms, block storage is your internal SSD or SAN where you write and read at a block level. Object storage is more like a warehouse storage system with labeled boxes. You store, tag, and retrieve entire boxes, not individual sectors. Understanding this distinction is critical when designing storage-backed applications or cloud-native pipelines.</p><h4>What really is S3?</h4><p>S3 is a globally distributed object storage system wrapped in a consistent API. When you upload to a bucket, that object is stored across multiple <a href="https://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-availability-zones.html">availability zones</a> (think separate data center campuses in the same geographic region) within a region. It uses internal replication systems, think like a super powered RAID, but abstracted from you. You don’t manage disks. You manage objects and metadata. That’s the management shift: you’re no longer managing hardware; you’re managing addressable units of data via API.</p><h4>Creating a Secure S3 Bucket (Terraform)</h4><pre>resource &quot;aws_s3_bucket&quot; &quot;app_artifact_bucket&quot; { <br>  bucket_prefix = &quot;app-artifacts&quot; <br> <br>  tags = { <br>    Environment = var.env <br>    Purpose     = &quot;raw-app-artifact-dump&quot; <br>  } <br>} <br> <br>resource &quot;aws_s3_bucket_public_access_block&quot; &quot;lockdown&quot; { <br>  bucket = aws_s3_bucket.app_artifact_bucket.id <br> <br>  block_public_acls       = true <br>  block_public_policy     = true <br>  ignore_public_acls      = true <br>  restrict_public_buckets = true <br>} <br> <br>resource &quot;aws_s3_bucket_versioning&quot; &quot;versioning&quot; { <br>  bucket = aws_s3_bucket.app_artifact_bucket.id <br>  versioning_configuration { <br>    status = &quot;Enabled&quot; <br>  } <br>}</pre><p>This gives you version control, tagging, and secure access by default. Always start here before building automation or distribution logic.</p><h4>Durability and Redundancy: Remember RAID</h4><p>In a traditional setup, RAID mirrors or stripes data across multiple drives in the same system to provide redundancy or speed. You can think of it as protecting against hardware failure at the disk level, if one drive goes down, the others hold a copy or parity. S3 operates with a similar philosophy, but at a much larger scale. Instead of replicating data across local disks, S3 replicates objects across multiple physical facilities, or buildings in different availability zones within the same AWS region. So conceptually, S3 is like running RAID across datacenters, not just hard drives.</p><p>Let’s take this a step further with CRR or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html">Cross-Region Replication</a>. If RAID is about protecting data across multiple disks, CRR is about protecting your data across entire AWS regions. You’re essentially saying, “If this region ever goes down, I want another copy of my data somewhere else entirely.” This isn’t just for backup, it’s for compliance, disaster recovery, and global app performance. Think of CRR as the next layer of RAID, but with continents instead of racks.</p><figure><img alt="Diagram showing Amazon S3 Cross-Region Replication (CRR) workflow: a user uploads a file through the S3 API, and the object is replicated across AWS regions us-east-1, us-west-1, and us-west-2 within a single AWS account, ensuring high durability and availability." src="https://cdn-images-1.medium.com/max/1024/1*730MquMqU4u-hpKbfkwV_g.png" /><figcaption><strong>Amazon S3 CRR in Action:</strong> When a user uploads a file, S3 distributes it across geographically spaced data centers using Cross-Region Replication, ensuring global durability and continuity.</figcaption></figure><pre>resource &quot;aws_s3_bucket_replication_configuration&quot; &quot;replication&quot; { <br>  bucket = aws_s3_bucket.app_artifact_bucket.id <br>  role   = aws_iam_role.replication.arn <br> <br>  rules { <br>    id     = &quot;replicate-everything&quot; <br>    status = &quot;Enabled&quot; <br> <br>    destination { <br>      bucket        = aws_s3_bucket.app_artifact_replica_bucket.arn <br>      storage_class = &quot;STANDARD&quot; <br>    } <br> <br>    filter { <br>      prefix = &quot;&quot; <br>    } <br>  } <br>} </pre><p>This is how you build beyond a single-region design. With CRR, your architecture gains both resilience and reach.</p><h4>Understanding Storage Tiers and Why They Matter</h4><p>Storage isn’t just about what you save, it’s about how often you use it. AWS S3 offers several storage classes designed for different access patterns: STANDARD for hot data, INTELLIGENT_TIERING for unknown usage patterns, and GLACIER for cold archival data. If you’re storing logs, media, or backups, tiering makes or breaks your cloud bill. The lifecycle engine helps you automate this:</p><pre>resource &quot;aws_s3_bucket_lifecycle_configuration&quot; &quot;lifecycle&quot; { <br>  bucket = aws_s3_bucket.app_artifact_bucket.id <br> <br>  rule { <br>    id     = &quot;auto-tiering&quot; <br>    status = &quot;Enabled&quot; <br> <br>    transition { <br>      days          = 30 <br>      storage_class = &quot;STANDARD_IA&quot; <br>    } <br> <br>    transition { <br>      days          = 90 <br>      storage_class = &quot;GLACIER&quot; <br>    } <br>  } <br>} </pre><p>It’s simple: the longer a file goes untouched, the cheaper it should be to store. Automate that decision.</p><h4>Using S3 Cross-Region Replication in Practice</h4><p>Let’s walk through a practical example to put it all together and better understand S3 usage. Imagine you have a data pipeline that ingests files into an S3 bucket in us-east-1. These objects are then processed by AWS Glue, some other service, or used downstream in a workflow. If that region experiences an outage, or your organization requires geographic fault tolerance, you don’t want a single-region failure to bring your entire operation down.</p><p>That’s where<em> </em>CRR becomes essential. You replicate those objects in near-real time to us-west-2, and in the event of a regional issue, your failover architecture (possibly using Route 53 failover) can redirect traffic or batch jobs to consume data from the secondary bucket.</p><p>Here’s how that architecture might play out:</p><ul><li>User/Service uploads a file to s3://app-artifacts-us-east-1</li><li>CRR replicates it to s3://app-artifacts-us-west-2</li><li>Use <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring.html">Route 53 health checks</a> to switch traffic or workflows to the west bucket during a failover event</li></ul><p>In this example CRR ensures data is physically available<strong> </strong>in multiple regions for resilience. This is great for multi-region durability guarantees and DR playbooks that assume storage parity across regions. Let’s not forget about our lifecycle rules, because while CRR increases storage cost (since each object is copied to another region), our rules help control cost growth as the different storage tiers in different regions can be configured to mitigate cost.</p><p>We can:</p><ul><li>Transition replicated objects in the secondary region to cheaper storage tiers (like Glacier or Intelligent-Tiering)</li><li>Expire or delete data after a set period</li><li>Reduce retrieval costs for infrequent access patterns</li></ul><pre>resource &quot;aws_s3_bucket_lifecycle_configuration&quot; &quot;replica_lifecycle&quot; {<br>  bucket = aws_s3_bucket.app_artifact_replica_bucket.id<br><br>  rule {<br>    id     = &quot;transition-to-glacier&quot;<br>    status = &quot;Enabled&quot;<br><br>    filter {<br>      prefix = &quot;&quot;<br>    }<br><br>    transition {<br>      days          = 30<br>      storage_class = &quot;GLACIER&quot;<br>    }<br><br>    expiration {<br>      days = 180<br>    }<br>  }<br>}</pre><h4>Final Thought: Treat S3 Like the Critical Backbone of the Platform</h4><p>If you’re designing cloud-native platforms, especially in the realm of data operations, S3 is more than just a file dump, it’s the anchor point for ingestion, processing, sharing, and compliance. Every pipeline, every analytic model, and every event-driven workload likely interacts with it. You have to treat S3 the way you’d treat a message broker or a compute platform: with planning, policy, and intentional design. The best data platforms I’ve seen weren’t just clever; they were disciplined in how they managed storage. If this helped you connect those dots, give it a clap or follow, and stay tuned for more practical design guides for the data architect in all of us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1a974ddb8e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Pipelines to Platforms: Why Every Data Engineer Should Learn DataOps]]></title>
            <link>https://medium.com/@cloudybusiness1/from-pipelines-to-platforms-why-every-data-engineer-should-learn-dataops-2c221d9c7611?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c221d9c7611</guid>
            <category><![CDATA[devops-for-data]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[dataops]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 15:47:49 GMT</pubDate>
            <atom:updated>2025-07-29T15:47:49.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A professional illustration of a data engineer surrounded by the 12 principles of DevOps, including continuous improvement, automation, infrastructure as code, and collaboration; representing the mindset shift required to build cloud-native data platforms." src="https://cdn-images-1.medium.com/max/500/1*MnuC2AkIgOm6j93Vb752UQ.png" /><figcaption>The 12 Core DevOps Principles Every Data Engineer Should Understand to Build Scalable Cloud Platforms</figcaption></figure><p>So, if you really stop and think about it, the way we work with data today barely resembles how things were even five years ago. Data has grown in its shapes, sizes and volumes. Structured data, unstructured data and housing methods have all moved to the cloud and has done so in a variety of ways.</p><p>It’s been almost 15 years now since I decided to start to focus my skillsets to shape my career into a data professional. Along the way I’ve found myself morphing from a traditional Data Engineer into more of a Data Operations Specialist. I’ve worked with other data engineers along the way and often find myself mentoring and sharing information on those operation methods and principles associated with Data Operations.</p><h4>So, What Is Data Operations?</h4><p>Data Operations, or DataOps, is a derivative of DevOps. It’s a discipline, or set of <a href="https://12factor.net/">principles generally associated with DevOps</a>, but applied to the data and information space.</p><p>You can think of it as a way of asking and answering the appropriate questions that you’ll face in servicing a data client base in the cloud. So instead of just focusing on moving data from point A to B, or simple transforms and serving data, you start asking:</p><ul><li>How do we test this data pipeline before it breaks production?</li><li>How do we deploy changes without disruption?</li><li>How do we know if the data is fresh, clean, and secure?</li><li>How do we create a continuous transformation of incoming data?</li><li>Who has access to this data and should they?</li></ul><p>It’s the practice of combining <strong>orchestration tools, CI/CD pipelines, monitoring systems, and cloud-native architecture</strong> to ensure that your data platform runs smoothly day in and day out.</p><h4>The Cloud Didn’t Just Change Tools, It Changed What Data Engineers Need to Know</h4><p>Today, data professionals are almost incapable of escaping the cloud. Even if you’re more of a SQL guru, chances are your databases are run on cloud architecture. A lot of the SQL masters I’ve worked with in the past often found themselves working with or troubleshooting AWS RDS instances, S3 buckets, Glue Jobs, or Snowflake stages. Data Engineers are not simply just writing code anymore they’re <strong>building platforms</strong>.</p><p>The cloud made data infrastructure more accessible and programable while at the same time blurring the boundaries and requiring data engineers to start considering platform related questions like:</p><ul><li>Security and Access Models</li><li>Cloud Infrastructure Cost</li><li>Data Platform and Tool Availability</li><li>Data and Pipeline Scalability</li></ul><p>For example, if I write a pipeline that ingests log data into S3, but I don’t set up encryption, IAM roles, or lifecycle policies, that’s not just a missed step. That’s now a<strong> </strong>platform failure that introduces possible high cost, and more importantly access to data for those that should not have access to that data.</p><p>The cloud made it so data engineering couldn’t live completely independent of it anymore. Now, you have to think about versioning, deployments, secrets management, even how data flows across accounts or regions. And if you’re not thinking about that, your platform isn’t ready for scale.</p><p>DataOps doesn’t replace data engineering, it evolves it. It’s what happens when the cloud pushes teams to grow and support data at scale.</p><h4>Here’s the Proof: How the Cloud Is Forcing Data Engineers to Think Like Platform Builders</h4><p>So let’s think through this like a new request just landed on your desk.</p><p>The business wants to ingest clickstream data from their app, process it in near real-time, and make it available in Snowflake for analytics. Normal stuff right?</p><figure><img alt="A cloud-native data pipeline showing clickstream data flowing through Amazon Kinesis into an S3 landing zone, processed by AWS Glue jobs into a clean staging area, then loaded into a Snowflake external stage for analytics." src="https://cdn-images-1.medium.com/max/1024/1*STYaalPNF3P8WEb3v5hq7A.png" /><figcaption>Cloud-Native Data Pipeline Example: Ingesting Clickstream Data via Kinesis and Transforming with AWS Glue for Snowflake Analytics</figcaption></figure><p>At first glance, this sounds like a classic <a href="https://aws.amazon.com/compare/the-difference-between-etl-and-elt/">ELT </a>problem:</p><ul><li><strong>Extract/Ingest</strong> the data</li><li><strong>Land</strong> it somewhere safe</li><li><strong>Transform</strong> it for downstream use</li></ul><p>But since we’re doing this in the cloud you have to start asking the right questions.</p><ul><li><strong>“Where’s the data coming from?”</strong> Let’s say Kinesis. You set up your stream, define shards, configure delivery.</li><li><strong>“Where’s it going?”</strong> You land that stream into an S3 bucket — versioned, encrypted, lifecycle policies set.</li><li><strong>“How’s it getting transformed?”</strong> Glue jobs handle the raw-to-clean step. You drop that into a staging bucket.</li><li><strong>“Who gets access, and how fast do they need it?”</strong> You load the clean data into Snowflake through an external stage, maybe partitioned by event type or time.</li></ul><p>And right there, in just the scope of work, you’ve crossed into operational territory.</p><p>In writing pipeline logic, you had to think about security, cost, automation, observability, and access control. You implemented a <strong>platform </strong>and you didn’t even know it.</p><p>Today’s problems live inside <strong>distributed systems</strong>. And solving them means treating every piece, from ingestion to storage to transformation to visualization , as part of a connected architecture. That’s DataOps, thinking and implementing DevOps principles as an extension of your data needs and capabilities. And when you’re doing this consistently, you’re no longer just delivering pipelines, you’re delivering <strong>platforms</strong></p><h4>Conclusion: Don’t Just Build the Pipeline , Shape the Platform</h4><p>So I’ll end with this:</p><p>The next time you get a data request , whether it’s streamlining an ELT job, supporting analytics, or spinning up something totally new. Don’t just ask, “How do I move this data?”</p><p>Ask bigger questions. Ask like a platform thinker:</p><ul><li><em>How will this scale?</em></li><li><em>Who owns this data after I land it?</em></li><li><em>What happens if the pipeline fails?</em></li><li><em>Can I automate recovery?</em></li><li><em>Is this secure, versioned, observable?</em></li></ul><p>That’s not overkill. That’s modern data engineering. And every time you lean into those questions, you’re not just doing your job,<br><strong>you’re building trust, reliability, and long-term value into your data stack.</strong></p><p>That’s how you turn engineering work into platform work and grow into a cloud platform architect or lead data engineer. That’s how your work makes a lasting impact.</p><p>If you’d like to talk about building a data platform that’s ready to scale, feel free to <a href="http://www.linkedin.com/in/christopher-london-aa78aa2b">connect</a>. I’m always happy to share architecture templates and deployment practices I’ve used or refined in real-world projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c221d9c7611" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Secure Data Lake: AWS S3 and Snowflake]]></title>
            <link>https://medium.com/@cloudybusiness1/aws-and-snowflake-secure-and-cost-efficient-datalake-92d7a4a19435?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/92d7a4a19435</guid>
            <category><![CDATA[snowflake-data-cloud]]></category>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-lake-solutions]]></category>
            <category><![CDATA[data-architecture]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 19:57:23 GMT</pubDate>
            <atom:updated>2025-07-09T17:42:37.110Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 1: Using AWS S3 as a Raw Data Zone in a Secure Data Lake Architecture</h4><figure><img alt="SnowFlake on AWS S3 for a secure and cost-efficient data lake" src="https://cdn-images-1.medium.com/max/1014/1*4qh_PpdugAxuQ3ZwAgQokw.png" /><figcaption>Secure Data Lake Architecture with Snowflake and AWS: Protecting Data with IAM, VPC Endpoints, and Stages</figcaption></figure><h4><strong>Introduction</strong></h4><p>Throughout history information has always affected our decision making, and because of that it holds great importance. The more information you have about a subject, the more of an informed decision you can make. In today’s world, we’re collecting information from everywhere, historical records and consumer IoT devices like smartphones, smart assistants, wearables, and even our cars. We inventory our groceries, we track our fitness goals, advertisers reach us with preferred products, and businesses define their quarterly strategies.</p><p>Having these deep and profound effects on us makes the creation of information a very important process. The need to house and secure this vast amount of information has become increasingly difficult and proving to have greater importance as Machine Learning and AI takes us into the next phase of our technological evolution.</p><h4><strong>Information and Data</strong></h4><p>Breaking it down, information is organized and processed facts and figures, and with given context, it helps you derive an understanding about a subject. Those facts and figures are the raw data. With the massive amounts of data that comes in from all the different sources and in all types of forms, a problem of storage and protection becomes evident. If we rewind just a few years ago, Relational Databases were the primary backbone behind most systems, and a combining and curation of that data in Data Warehouses were able to help us with our reporting and dashboards. Today, data structures don’t always allow us to use traditional databases and warehouses which adds to our data storage problem.</p><h4><strong>Data in the Cloud</strong></h4><p>Enter the cloud. While these traditional data systems are still used today for those same functions, their product casing and how they get their data looks different. They mostly live in the cloud, and because of cloud providers&#39; massive infrastructure and ability to offer expandability, cloud repositories have emerged as the primary raw data storage source. <br>While that creates a way to store data, the problem of protection and access management still exists.</p><p><strong><em>Welcome </em></strong><a href="https://www.snowflake.com/en/fundamentals/data-lakes-and-data-lake-architecture/"><strong><em>Data Lakes</em></strong></a>. You can think of a data lake as a central place of gathering all the raw cloud data storage, and creating a layer of security and management capabilities around them. Once the data is there, you can have back-end processes that run to change the form of that data for other downstream processes and submit that data to groups or departments to aid in the effort of reporting and visualization. This information can now affect the accuracy of everything, shopping, bill pay, even our fitness goals. Now for businesses, it can shift quarterly strategy, and sometimes even the workforce.</p><figure><img alt="Medallion architecture layers (Bronze, Silver, Gold) with Secure AWS S3" src="https://cdn-images-1.medium.com/max/1024/1*LLegmqMSIDTapyvDokuC-A.png" /><figcaption>Medallion architecture layers (Bronze, Silver, Gold) with AWS S3</figcaption></figure><h4>AWS S3 and Snowflake</h4><p>A great combination of tools to store and work with big data are AWS S3 and Snowflake. I’ve personally come to love how they seamlessly fit together to give you an easy experience of creating a data lake backbone for your business or organization.</p><p>Amazon S3 is a great choice for cloud data storage.</p><ul><li>First, its API provides an easy way to work with inputting data into the service.</li><li>Second, its durability promise provides assurance of data availability, and all while the service is giving you controls to manage and protect the data at its lowest level.</li></ul><p>Now to work with, analyze, and provide that data downstream, enter Snowflake, a powerful cloud-based data platform. With <a href="https://docs.snowflake.com/en/user-guide/organizations">Snowflake’s Organizations</a> feature, you can centrally manage multiple Snowflake accounts across business units, environments, and regions. This deployment model supports a hub-and-spoke architecture, enabling consistent governance, data sharing, and cost controls.</p><p>In this three-part series, we’ll talk about how to build a secure data lake using Amazon S3 as a raw data store, Snowflake as the compute and query engine for processing, and AWS VPC Endpoints to enhance security and tie it all together. In Part 1, we’ll start with the role of S3 in a secure, scalable data lake.</p><h4><strong>Why Use AWS S3 as a Raw Data Zone?</strong></h4><p>Amazon <a href="https://aws.amazon.com/s3/faqs/">S3 </a>is <a href="https://wa.aws.amazon.com/wellarchitected/2020-07-02T19-33-23/wat.concept.durability.en.html">durable</a>, as in its well-architected framework it defines this system characteristic as:</p><blockquote>A system that is durable is able to perform its responsibilities over time, even when unexpected events may occur. For example, a durable storage system will reliably store data without data loss.</blockquote><p>AWS S3 is designed for 99.999999999% (11 nines) of durability.<br>This makes it ideal for a raw data zone, the initial spot for data ingested from applications, logs, IoT devices, third-party APIs, or legacy systems.<br>Highlights:</p><ul><li><strong>Cost-Effective</strong>: S3 offers multiple storage classes (Standard, Infrequent Access, Glacier) to optimize for access patterns and cost.</li><li><strong>Scalable</strong>: Ingest data of any volume, velocity, or variety without managing infrastructure.</li><li><strong>Secure</strong>: Fine-grained access control with IAM, bucket policies, and encryption options.</li></ul><h4><strong>Designing a Raw Data Zone in S3</strong></h4><p>The phrase data zones represents the different stages that data goes through in order to become curated and usable. A raw data zone represents the beginning stage where data is first ingested, and there are minimal to no changes. An example of a typical raw data change, is a change on ingestion, where maybe only masking <a href="https://en.wikipedia.org/wiki/Personal_data">PII </a>for compliance or agreements.<br>A well-organized raw zone sets the foundation for downstream analytics. Here are a few considerations when designing:</p><ul><li><strong>Naming Convention- Tagging and Metadata</strong><br>Tag your buckets using clear, consistent prefixes. Allow IaC to name resources, and include in code a parameter for AWS SSM or Hashicorp Vault pointing to the resource name and uri:</li></ul><p><em>example uri: s3://company-datalake/raw/&lt;source_system&gt;/&lt;yyyy&gt;/&lt;mm&gt;/&lt;dd&gt;/</em></p><p><em>Here we see a terraform snippet creating a bucket and creating a parameter to retrieve bucket attributes for client specific use cases:</em></p><pre>provider &quot;aws&quot; {<br>  region = &quot;us-east-1&quot;<br>}<br><br># Create an S3 bucket<br>resource &quot;aws_s3_bucket&quot; &quot;raw_data_bucket&quot; {<br>  bucket_prefix = &quot;company-datalake-&quot;<br><br>  tags = {<br>    Environment = &quot;DataLake&quot;<br>    Purpose     = &quot;Raw_Data_Store&quot;<br>  }<br><br>  force_destroy = true<br>}<br><br># Store the bucket name in SSM Parameter Store<br>resource &quot;aws_ssm_parameter&quot; &quot;bucket_name_param&quot; {<br>  name  = &quot;/datalake/resources/s3/bucket/${service_name}/raw_data_bucket_name&quot;<br>  type  = &quot;String&quot;<br>  value = aws_s3_bucket.raw_data_bucket.id<br><br>  tags = {<br>    Environment = &quot;DataLake&quot;<br>  }<br>}</pre><p><em>Now a client adding data to the bucket and tagging it clearly for downstream data cataloging.</em></p><pre># Initialize AWS clients<br>ssm = boto3.client(&#39;ssm&#39;, region_name=region<br>s3 = boto3.client(&#39;s3&#39;, region_name=region)<br><br># Get the bucket name from SSM Parameter Store<br>response = ssm.get_parameter(Name=ssm_param_name)<br>bucket_name = response[&#39;Parameter&#39;][&#39;Value&#39;]<br><br># Create key based on source and date<br>today = datetime.utcnow()<br>s3_key = f&#39;raw/{data_source}/{today.year}/{today.month:02}/{today.day:02}/data.json&#39;<br><br># Example content (normally this could be your data dump or JSON export)<br>data = &#39;{&quot;id&quot;: 1, &quot;name&quot;: &quot;Test Product&quot;, &quot;price&quot;: 19.99}&#39;<br><br># Upload to S3<br>s3.put_object(<br>    Bucket=bucket_name,<br>    Key=s3_key,<br>    Body=data,<br>    ContentType=&#39;application/json&#39;,<br>    Tagging=&#39;source=mysql-db&amp;environment=datalake&amp;domain=product&#39;<br>)</pre><ul><li><strong>Data Format Choices</strong><br>Raw zone often stores files as-is (CSV, JSON, XML, etc.)<br>Consider compressing files (GZIP, Parquet) to reduce costs and speed up transfers.</li><li><strong>Lifecycle Policies</strong><br>Automate transitions to lower-cost storage classes and define expiration rules to clean up stale data.</li></ul><pre>resource &quot;aws_s3_bucket_lifecycle_configuration&quot; &quot;transition_to_ia&quot; {<br>  bucket = aws_s3_bucket.raw_data_bucket.id<br><br>  rule {<br>    id     = &quot;transition-standard-to-ia&quot;<br>    status = &quot;Enabled&quot;<br><br>    filter {<br>      prefix = &quot;&quot; # Applies to all objects<br>    }<br><br>    transition {<br>      days          = 30<br>      storage_class = &quot;STANDARD_IA&quot;<br>    }<br><br>    # Optionally, you can also add expiration<br>    expiration {<br>      days = 365<br>    }<br>  }<br>}</pre><h4><strong>Secure the Raw Data Zone</strong></h4><p>Security is critical, especially when ingesting sensitive or regulated data.</p><p>Best practices include:</p><ul><li><strong>Encryption</strong>: Enable SSE-S3 or SSE-KMS for bucket encryption. Use customer-managed keys for stricter controls.</li><li><strong>Bucket Policies</strong>: Restrict access by source IP, VPC, or AWS account.</li><li><strong>Access Logging</strong>: Consider using AWS <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/cloudtrail-logging.html">CloudTrail </a>for audit logging</li><li><strong>Private Access</strong>: Disable public access to all buckets by default.</li></ul><h4><strong>Looking Ahead</strong></h4><p>With a secure and structured raw zone in S3, your data lake is off to a strong start. But the raw data zone alone isn’t useful until it’s loaded and transformed in a compute engine. In Part 2, we’ll dive into how Snowflake interacts with S3 via internal and external stages, and how AWS IAM roles empowers secure data ingestion. If you found this explanation helpful give it a clap 👏 and stay tuned for Part 2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92d7a4a19435" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS VPC Security Concepts]]></title>
            <link>https://medium.com/@cloudybusiness1/aws-vpc-security-concepts-230709d71656?source=rss-9c69dc398407------2</link>
            <guid isPermaLink="false">https://medium.com/p/230709d71656</guid>
            <category><![CDATA[aws-vpc-endpoints]]></category>
            <category><![CDATA[aws-security]]></category>
            <category><![CDATA[aws-vpc]]></category>
            <category><![CDATA[aws-security-group]]></category>
            <category><![CDATA[aws-networking]]></category>
            <dc:creator><![CDATA[Christopher B. London]]></dc:creator>
            <pubDate>Tue, 08 Apr 2025 23:42:36 GMT</pubDate>
            <atom:updated>2025-04-14T16:46:32.075Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A futuristic city showing interconnected servers under a secure cloud. This is representing a Private Subnet over a VPC" src="https://cdn-images-1.medium.com/max/1024/1*_KCv3p0BigpBhTbiwDC2dw.jpeg" /></figure><h3>Security Groups, Private Subnets, and VPC Endpoints</h3><p>Whenever you need to onboard a new Amazon Web Services (AWS) account or deploy a new isolated network, simply deploying the VPC is not enough. It’s important that you understand some of the security concepts around deploying VPCs (Virtual Private Clouds). A well-architected, secure VPC can protect your resources, control traffic flow and reduce your attack surface.</p><p>In this article, I want to focus on three particular concepts. They are core networking components that I believe adds a significant layer of security:</p><ul><li>Security Groups</li><li>Private Subnets</li><li>VPC Endpoints</li></ul><h4>Security Groups: Defense for Resources</h4><p>You can think of Security Groups as virtual firewalls. You can place them on most AWS resources like load balancers, EC2, or RDS instances. They control inbound and outbound traffic at the resource level.</p><p>Before you deploy your VPC you want to focus on some of the secure concepts, as it’s important to understand the type of resources that’ll be deployed in your subnets and what security control layers are protecting them and managing communication. Thinking about this will give you the opportunity to pre-plan the traffic flow and the type of ports that need to be open against these resources.</p><p>Security groups should be least privileged, meaning you want to only allow the lowest access and communication needed and all other communication protocols are denied.</p><pre>resource &quot;aws_vpc&quot; &quot;main&quot; {<br>  cidr_block           = &quot;10.0.0.0/16&quot;<br>  enable_dns_support   = true<br>  enable_dns_hostnames = true<br><br>  tags = {<br>    Name = &quot;main-vpc&quot;<br>  }<br>}<br><br>resource &quot;aws_security_group&quot; &quot;postgres_sg&quot; {<br>  name        = &quot;postgres-db-sg&quot;<br>  description = &quot;Allow Postgres traffic&quot;<br>  vpc_id      = aws_vpc.main.id<br><br>  ingress {<br>    description      = &quot;Postgres from specific CIDR&quot;<br>    from_port        = 5432<br>    to_port          = 5432<br>    protocol         = &quot;tcp&quot;<br>    cidr_blocks      = [&quot;10.0.0.0/8&quot;] # Replace with allowed CIDR (e.g., on-prem or app subnet)<br>  }<br><br>  egress {<br>    from_port        = 0<br>    to_port          = 0<br>    protocol         = &quot;-1&quot;<br>    cidr_blocks      = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  tags = {<br>    Name = &quot;postgres-db-sg&quot;<br>  }<br>}</pre><p>In this example, we’re looking at deploying a PostgreSQL RDS instance. In the security group, only ports listed are the ones required for it to communicate with clients. There’s no need for it to communicate with the internet unsecured, so port 80 is not listed making it a deny.</p><p>There are a few important key concepts to remember when discussing security groups.</p><p><strong>Key Concepts</strong>:</p><ul><li><strong>Stateful</strong>: If an incoming request is allowed, the response is automatically allowed, even if no outbound rule exists.</li><li><strong>Resources/ Instance-specific</strong>: They’re applied to resources and instances, not subnets.</li><li><strong>Default Deny</strong>: All traffic is denied unless explicitly allowed. This saves time on management as you only have to think about the type of traffic that you want coming through your firewall to your resource.</li></ul><p><strong>Best Practices</strong>:</p><ul><li>Create least privilege rules: Only open ports necessary for the application (e.g., port 22 for SSH from known IPs).</li><li>Use separate security groups for different layers of your app (e.g., web, app, and DB tiers), but try to look at areas where you can use the same security groups in your infrastructure’s code, for example, if you have to deploy multiple databases.</li><li>Regularly audit and clean up unused rules.</li></ul><h4>Private Subnets: Shielding Critical Resources</h4><p>Private subnets are subnets that do not have a route to the internet via an internet gateway. Generally, this makes them ideal for resources that don’t need to be accessed directly from outside the VPC, such as databases or backend services.</p><p>I used to think that private subnets only had a few use cases. As time went on, I’ve come to prefer using private subnets almost as a default. Most resources deployed in cloud environments don’t need full open access to the internet and if they need any, you can use a more advanced networking technique to allow outbound traffic to go out through an AWS Transit Gateway that sends traffic to an egress designed VPC that has access to the internet. This hub and spoke type method protects your subnets and ultimately your resources, allowing outbound traffic leaving your cloud environment to a centrally managed outbound VPC.</p><figure><img alt="A diagram of a Hub and Spoke architecture, using an AWS Transit Gateway with Transit Gateway Attatchemnts to connect Private Subnets with a single Egress Subnet design." src="https://cdn-images-1.medium.com/max/1024/1*kBVbIBzHL8-yWGLgsc9GjQ.png" /><figcaption>Hub and Spoke of Transit Gateway and Private Subnets to Single Egress VPC</figcaption></figure><p><strong>Why Use Private Subnets</strong>?</p><ul><li><strong>Reduce exposure:</strong> By keeping critical systems off the internet.</li><li><strong>Enforce tighter controls: </strong>Use NAT gateways to control what traffic leaves the subnet. Enhance VPC security by introducing transit gateways.</li><li><strong>Improve compliance: </strong>Many security and compliance standards recommend limiting public access to sensitive components.</li></ul><p><strong>Best Practices</strong>:</p><ul><li>Place databases, internal services, and batch jobs in private subnets.</li><li>Use NAT Gateways only when these systems need to access the internet (e.g., for package updates). Try to keep it minimized to egress VPCs.</li><li>Consider enhancing outbound routes by allowing them to communicate directly to Transit Gateways that route to egress VPCs and use AWS Marketplace firewalls.</li></ul><h4>VPC Endpoints: Secure and Private Access to AWS Services</h4><p>VPC Endpoints allow you to privately connect your VPC to supported AWS services without requiring an internet gateway, NAT device, VPN, or AWS Direct Connect.</p><p>VPC endpoints are great. Essentially, you pretty much have an AWS ENI in your private subnet and a VPC Endpoint Interface attached to your VPC, and when you’re looking for a supported AWS service the traffic is routed on the internal AWS Network. This setup comes from AWS Private Link and communicates over the AWS managed Network by routing traffic to the internal DNS name of the service that you’re trying to reach, like S3 or Cloudwatch.</p><p>For example, if you were looking to pull a file from S3 while on an ec2 instance, your command would make its call, and a DNS resolution process would check for the created internal DNS record against an Amazon provided DNS server (AWS Route53 Resolver), because of the service’s endpoint association with AWS Private Link, and it would then send its requests directly to the S3 service internal address without ever leaving the AWS network.</p><figure><img alt="A diagram of an EC2 Instance making an outbound call to VPC Endpoints with Route53 Resolver" src="https://cdn-images-1.medium.com/max/781/1*7Ti_kiKGgWMfCgl21PfVkw.png" /><figcaption>Route53 Resolver sending traffic to VPC Endpoint</figcaption></figure><p>You’ll need to enable <strong>DNS Hostnames</strong> and <strong>DNS Resolution </strong>inside of your VPC settings. This is a great configuration to further eliminate outbound traffic to the internet and keep your deployed resources secure and isolated.</p><p>As far as endpoint interfaces are concerned there are two types:</p><ul><li><strong>Interface Endpoints:</strong> Elastic network interface collections (ENIs) with private IPs in your VPC.</li><li><strong>Gateway Endpoints:</strong> Routes traffic primarily to S3 or DynamoDB using route table entries.</li></ul><p><strong>Benefits</strong>:</p><ul><li><strong>Improved security:</strong> No traffic goes over the public internet.</li><li><strong>Reduced latency and costs:</strong> Localized access within AWS’s private network.</li><li><strong>Enhanced control:</strong> Combine with endpoint policies and IAM for fine-grained access.</li></ul><p><strong>Best Practices</strong>:</p><ul><li>Use Interface Endpoints for services especially when considering data transfer.</li><li>Apply resource-based policies to restrict access via endpoints only.</li><li>Use security groups around the EINs that are deployed in your subnet.</li></ul><h4>Final Thoughts</h4><p>VPC security is not a single switch but a layered set of practices. By properly designing private subnets, applying least privilege to security groups, and leveraging VPC endpoints, you can create a strong and secure foundation for your cloud infrastructure.</p><p>Regular audits, automation, and continuous monitoring through tools like AWS Config and CloudWatch can further help enforce and refine your VPC security posture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=230709d71656" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>