<?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 Sai Prasad Ansuri on Medium]]></title>
        <description><![CDATA[Stories by Sai Prasad Ansuri on Medium]]></description>
        <link>https://medium.com/@prasadsaiansuri?source=rss-c5da7babac8b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2RDL98GzZAhPagq-S1CuZA.jpeg</url>
            <title>Stories by Sai Prasad Ansuri on Medium</title>
            <link>https://medium.com/@prasadsaiansuri?source=rss-c5da7babac8b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:53:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prasadsaiansuri/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[I Moved GitHub Actions to a Self-Hosted Runner — Here’s What Broke]]></title>
            <link>https://medium.com/dexaminds/i-moved-github-actions-to-a-self-hosted-runner-heres-what-broke-6c10c010ca2a?source=rss-c5da7babac8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c10c010ca2a</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[Sai Prasad Ansuri]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 09:37:04 GMT</pubDate>
            <atom:updated>2026-08-06T14:30:06.779Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Installing the runner took minutes. Making it reliable, secure, and ready for production CI/CD took much longer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-w4MlG47_kYukZ0duRvvw.png" /><figcaption><em>Installing the runner was easy. Operating it as production infrastructure was the real challenge.</em></figcaption></figure><p>Moving from a GitHub-hosted runner to a self-hosted GitHub Actions runner sounded simple.</p><p>I handled the migration for our team’s CI/CD workflows, and the initial plan looked straightforward:</p><ul><li>Launch an Ubuntu EC2 instance.</li><li>Install Docker and the required build tools.</li><li>Download the GitHub Actions runner.</li><li>Register it with GitHub.</li><li>Run the workflow</li></ul><p>Within a few minutes, the runner appeared as <strong>Online</strong>, and the first workflow started successfully.</p><p>I thought the migration was complete.</p><p>Then I closed my SSH session.</p><p>The runner went offline.</p><p>After I fixed that, Docker commands failed inside the workflow. Later, jobs remained queued even though the runner appeared <strong>Idle</strong>. Moving from a repository-level runner to an organization-level runner introduced another set of problems involving labels, runner groups, and repository access.</p><p>Installing the runner was the easy part.</p><p>Operating it as dependable CI/CD infrastructure was the real challenge.</p><h3>Why We Moved to a Self-Hosted Runner</h3><p>GitHub-hosted runners are convenient because GitHub manages the underlying virtual machines.</p><p>Our workflows, however, needed more control over the execution environment.</p><p>Our team wanted:</p><ul><li>Reusable Docker build caches</li><li>Access to services inside our AWS Virtual Private Cloud</li><li>Preinstalled AWS CLI, Terraform, Docker, and build tools</li><li>Control over CPU, memory, networking, and storage</li><li>A consistent environment for Amazon ECS deployments</li><li>Support for database migration tasks</li><li>A runner that could be shared across selected repositories</li></ul><p>A self-hosted runner gave us that flexibility.</p><p>It also transferred responsibility for the underlying server from GitHub to our team.</p><p>Our initial architecture looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oN8B1tiafC5WDP9gHP1Jfg.png" /><figcaption>The migration introduced a controlled execution environment — and responsibility for every layer inside it</figcaption></figure><p>The architecture looked simple.</p><p>The operational details were not.</p><h3>Problem 1: The Runner Stopped When I Closed SSH</h3><h3>Symptom</h3><p>I initially started the runner with:</p><pre>./run.sh</pre><p>The runner connected to GitHub and started listening for jobs.</p><p>However, when I disconnected from SSH, the runner went offline. The next workflow remained queued because GitHub could not find an online runner that matched the job requirements.</p><h3>Root cause</h3><p>The run.sh process was attached to my interactive terminal session.</p><p>When the SSH session closed, the process stopped with it.</p><p>A command running successfully inside an SSH terminal does not automatically make it a persistent service.</p><h3>Fix</h3><p>I installed the runner as a system service:</p><pre>cd ~/actions-runner</pre><pre>sudo ./svc.sh install<br>sudo ./svc.sh start<br>sudo ./svc.sh status</pre><p>On Linux systems that use systemd, GitHub provides the svc.sh script to install and manage the runner as a service.</p><p>This allows the runner to continue operating after an SSH disconnect and start automatically when the EC2 instance boots.</p><p>I checked the service created during installation:</p><pre>systemctl list-units --type=service \<br>  | grep actions.runner</pre><p>To follow the runner service logs, I copied the complete unit name returned by that command and used it with journalctl:</p><pre>sudo journalctl \<br>  -u actions.runner.&lt;ORGANIZATION&gt;.&lt;RUNNER_NAME&gt;.service \<br>  -f</pre><p>The exact generated service name may differ, so it is safer to copy the complete unit name from the systemctl output.</p><p>GitHub also stores diagnostic information in the _diag directory inside the runner installation folder.</p><h3>Verification</h3><p>I did not stop after seeing a successful service status.</p><p>I tested the complete lifecycle:</p><ol><li>Disconnect from SSH.</li><li>Confirm that the runner remains online.</li><li>Reboot the EC2 instance.</li><li>Confirm that the runner returns automatically.</li><li>Trigger another workflow.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kfsys2_PvCvIhCWBlvPCjg.png" /><figcaption>A runner process tied to an SSH session is not a production service.</figcaption></figure><p>Production lesson</p><p>A foreground process is not a production service.</p><h3>Problem 2: Docker Worked over SSH but Failed in GitHub Actions</h3><h3>Symptom</h3><p>Once the runner service was stable, the workflow failed with an error similar to this:</p><pre>permission denied while trying to connect to the Docker API<br>at unix:///var/run/docker.sock</pre><p>Docker was installed and running.</p><p>This command worked:</p><pre>sudo docker version</pre><p>However, this command failed:</p><pre>docker version</pre><h3>Root cause</h3><p>The runner service was not running as root. It was running under the Linux account used during runner installation.</p><p>That account could execute the Docker client, but it did not have permission to access the Docker daemon’s Unix socket.</p><p>The important distinction was that Docker worked for my interactive SSH account when I used sudo, while GitHub Actions executed jobs under the runner service account.</p><h3>Fix</h3><p>I identified the systemd service and the Linux account running it:</p><pre>RUNNER_SERVICE=$(systemctl list-units \<br>  --type=service \<br>  --all \<br>  --no-legend \<br>  | awk &#39;/actions\.runner/ {print $1; exit}&#39;)</pre><pre>sudo systemctl show \<br>  --property=User \<br>  &quot;$RUNNER_SERVICE&quot;</pre><p>I then added that account to the Docker group:</p><pre>sudo usermod -aG docker &lt;RUNNER_USER&gt;<br>sudo systemctl restart docker<br>sudo reboot</pre><p>After the server restarted, I tested Docker without sudo:</p><pre>docker version<br>docker run --rm hello-world</pre><p>Docker’s daemon socket is owned by root by default. Members of the docker group can access the socket without using sudo.</p><p>That solves the permission problem, but it introduces an important security consideration: membership in the docker group effectively grants root-level control over the machine.</p><p>Any workflow executing under that account may gain extensive control over the runner host.</p><p>For stricter environments, Docker rootless mode may be worth evaluating.</p><h3>Verification</h3><p>I validated Docker as the same Linux account used by the GitHub Actions service — not only from my interactive SSH session.</p><p>The checks included:</p><pre>docker version<br>docker run --rm hello-world</pre><p>I then triggered a workflow containing an actual Docker build.</p><h3>Production lesson</h3><p>Test dependencies under the same identity and environment used by the runner service.</p><p>A tool working for an administrator over SSH does not prove that it will work inside GitHub Actions.</p><h3>Problem 3: The Runner Was Idle, but Jobs Remained Queued</h3><h3>Symptom</h3><p>One of the most confusing situations was seeing the runner marked as <strong>Idle</strong> while the workflow remained queued.</p><p>The problem was not runner availability.</p><p>It was runner selection.</p><p>The workflow contained a configuration similar to this:</p><pre>jobs:<br>  build:<br>    runs-on: [self-hosted, linux, x64, build]</pre><h3>Root cause</h3><p>GitHub requires a runner to match every label listed in runs-on.</p><p>For example, a runner may have these labels:</p><ul><li>self-hosted</li><li>Linux</li><li>x86</li></ul><p>However, if it does not also have the build label, the job will remain queued.</p><p>An online runner is not automatically eligible for every self-hosted job.</p><p>I checked the runner configuration under:</p><pre>Organization<br>  → Settings<br>  → Actions<br>  → Runners<br>  → Select the runner<br>  → Labels</pre><h3>Fix</h3><p>I either had to add the missing label to the runner or change the workflow’s runs-on configuration.</p><p>For an organization runner group, a clearer configuration looked like this:</p><pre>jobs:<br>  build:<br>    runs-on:<br>      group: aws-build-runners<br>      labels: build</pre><p>This separates two different controls:</p><ul><li><strong>Runner group:</strong> Which repositories are allowed to use the runner?</li><li><strong>Runner label:</strong> What type of workload should run on it?</li></ul><h3>Verification</h3><p>When a self-hosted job remains queued, I now check:</p><ol><li>Is the runner online?</li><li>Is it idle?</li><li>Does it contain every requested label?</li><li>Is the workflow using the correct runner group?</li><li>Can the repository access that runner group?</li><li>Is another job already using the runner?</li></ol><h3>Production lesson</h3><p>An online runner is not necessarily an eligible runner.</p><h3>Problem 4: Moving from Repository Level to Organization Level</h3><p>Initially, I registered the runner against a single repository:</p><pre>./config.sh \<br>  --url https://github.com/&lt;ORGANIZATION&gt;/&lt;REPOSITORY&gt; \<br>  --token &lt;REGISTRATION_TOKEN&gt;</pre><p>That worked until multiple repositories needed access to the same build infrastructure.</p><p>Creating and maintaining a separate EC2 runner for every repository would have duplicated configuration and increased maintenance.</p><p>I therefore decided to move the runner to the organization level:</p><pre>./config.sh \<br>  --url https://github.com/&lt;ORGANIZATION&gt; \<br>  --token &lt;ORGANIZATION_REGISTRATION_TOKEN&gt;</pre><p>I could not apply the organization registration over the existing repository-level configuration.</p><p>I first removed the old service and registration:</p><pre>cd ~/actions-runner</pre><pre>sudo ./svc.sh stop<br>sudo ./svc.sh uninstall</pre><pre>./config.sh remove \<br>  --token &lt;REMOVAL_TOKEN&gt;</pre><p>Registration and removal tokens are time-limited. Generate them from the GitHub runner settings page and never store them in scripts or repositories.</p><p>I then registered the runner at the organization level and reinstalled the service:</p><pre>./config.sh \<br>  --url https://github.com/&lt;ORGANIZATION&gt; \<br>  --token &lt;ORGANIZATION_REGISTRATION_TOKEN&gt;</pre><pre>sudo ./svc.sh install<br>sudo ./svc.sh start<br>sudo ./svc.sh status</pre><p>During this process, I encountered another error:</p><pre>Could not find any self-hosted runner group named ...</pre><p>The group specified during registration did not exist.</p><p>The safer sequence was:</p><ol><li>Create the organization runner group.</li><li>Configure it for selected repositories.</li><li>Register the runner in that group.</li><li>Add the required labels.</li><li>Update runs-on in the workflows.</li></ol><p>For example:</p><pre>./config.sh \<br>  --url https://github.com/&lt;ORGANIZATION&gt; \<br>  --token &lt;REGISTRATION_TOKEN&gt; \<br>  --runnergroup aws-build-runners \<br>  --labels build,docker,linux</pre><p>Define the access model before registering the runner.</p><p>Registering the runner first and deciding the trust boundary later creates unnecessary risk and rework.</p><h3>When the Problems Became Architectural</h3><p>Fixing the individual failures made the runner operational.</p><p>The next challenge was deciding which repositories, workloads, credentials, and infrastructure the persistent machine should be allowed to access.</p><p>At that point, the migration was no longer only a troubleshooting exercise.</p><p>It had become an infrastructure and security design problem.</p><h3>The Real Risk: Organization Runners Expand the Trust Boundary</h3><p>An organization-level runner is convenient because multiple repositories can use it.</p><p>It also increases the impact of a compromised or misconfigured workflow.</p><p>The machine may contain:</p><ul><li>Checked-out source code</li><li>Docker build layers</li><li>Temporary files</li><li>Deployment tools</li><li>Package caches</li><li>Cloud credentials</li><li>Network access to private services</li></ul><p>I created a dedicated runner group and restricted it to selected private repositories.</p><p>This required a different mindset.</p><p>An organization runner is not only a shared server. It is a shared security boundary.</p><p>A workflow from any permitted repository can execute commands on the machine. Repository access should therefore be treated as infrastructure access.</p><p>A repository should not receive access to a privileged runner merely because sharing the machine is convenient.</p><p>Public pull requests should not be able to execute untrusted code on runners that have access to private networks, persistent credentials, deployment tools, or sensitive caches.</p><h3>Persistent Runners Keep State Between Jobs</h3><p>GitHub-hosted runners normally provide a fresh environment for each job.</p><p>A long-running EC2 self-hosted runner does not.</p><p>One job can leave behind:</p><ul><li>Docker containers</li><li>Images and build layers</li><li>Volumes</li><li>Generated files</li><li>Changed permissions</li><li>Package caches</li><li>Background processes</li><li>Workspace data</li><li>Diagnostic logs</li></ul><p>This persistence can improve build performance through reusable caches.</p><p>It can also make builds less predictable.</p><p>An old Docker layer may hide a missing dependency. A generated file from an earlier job may cause a broken build to pass. A workflow from one repository may encounter files left behind by a workflow from another repository.</p><p>I initially considered running aggressive cleanup after every workflow:</p><pre>- name: Clean Docker resources<br>  if: always()<br>  run: |<br>    docker container prune -f<br>    docker image prune -f<br>    docker builder prune -f</pre><p>That would reduce contamination between jobs.</p><p>However, it would also remove much of the caching benefit that motivated the migration.</p><p>The better approach was not to treat every workload as equally trusted or operationally identical.</p><h3>Separating Build, Deployment, and Migration Runners</h3><p>We separated workload types into different runner responsibilities.</p><h3>Build runners</h3><p>Build runners handle:</p><ul><li>Docker builds</li><li>Automated tests</li><li>Reusable Docker caches</li><li>Build workspaces</li><li>Container image creation</li></ul><p>These runners need Docker access and may retain build cache between jobs.</p><p>They should not automatically receive broad production deployment permissions.</p><h3>Deployment runners</h3><p>Deployment runners handle:</p><ul><li>Restricted AWS deployment operations</li><li>Amazon ECR and Amazon ECS interactions</li><li>Infrastructure deployment tools</li><li>Controlled access to private AWS services</li></ul><p>These runners require carefully scoped cloud permissions.</p><p>They do not necessarily need the same persistent build cache or Docker privileges as build runners.</p><h3>Migration runners</h3><p>Migration runners handle:</p><ul><li>Controlled database migration jobs</li><li>Narrowly scoped network access</li><li>Restricted migration credentials</li><li>Carefully managed execution procedures</li></ul><p>Database migration access should not automatically be inherited by ordinary build workflows.</p><p>Separating these responsibilities reduces the effect of a compromised workflow and makes each runner’s security boundary easier to understand.</p><h3>AWS Credentials Became Part of the Runner’s Security Boundary</h3><p>Our workflows needed access to services such as:</p><ul><li>Amazon ECR</li><li>Amazon ECS</li><li>Amazon S3</li><li>AWS Systems Manager</li><li>Terraform backends</li></ul><p>The simplest approach would have been to store an AWS access key and secret access key in GitHub Secrets.</p><p>For a new setup, I would use temporary credentials through OpenID Connect (OIDC).</p><p>OIDC allows GitHub Actions to request temporary AWS credentials without storing long-lived AWS access keys in GitHub.</p><p>A simplified workflow looks like this:</p><pre>permissions:<br>  id-token: write<br>  contents: read</pre><pre>jobs:<br>  deploy:<br>    runs-on:<br>      group: aws-deployment-runners<br>      labels: deployment</pre><pre>    steps:<br>      - name: Check out the repository<br>        uses: actions/checkout@&lt;PINNED_COMMIT_SHA&gt;</pre><pre>      - name: Configure AWS credentials<br>        uses: aws-actions/configure-aws-credentials@&lt;PINNED_COMMIT_SHA&gt;<br>        with:<br>          role-to-assume: arn:aws:iam::&lt;ACCOUNT_ID&gt;:role/&lt;ROLE_NAME&gt;<br>          aws-region: &lt;AWS_REGION&gt;</pre><pre>      - name: Verify the AWS identity<br>        run: aws sts get-caller-identity</pre><p>The IAM trust policy should restrict access to the intended organization, repository, branch, or protected GitHub environment.</p><p>The id-token: write permission only allows the workflow to request an OIDC identity token. It does not directly grant permission to modify AWS resources.</p><p>AWS permissions still come from the IAM role and its attached policies.</p><p>Design the runner’s permissions around the least-trusted workflow allowed to use it.</p><p>A shared build runner should not have broad production permissions simply because some workflows need to deploy applications.</p><h3>Disk Usage Quietly Became an Operational Problem</h3><p>Docker caching improved build performance.</p><p>It also consumed storage.</p><p>Over time, the runner accumulated:</p><ul><li>Docker images</li><li>BuildKit cache</li><li>Stopped containers</li><li>Package caches</li><li>Workflow workspaces</li><li>Diagnostic logs</li><li>Container logs</li></ul><p>I began checking disk usage regularly:</p><pre>df -h<br>docker system df<br>sudo du -sh ~/actions-runner/_work<br>sudo du -sh /var/lib/docker</pre><p>Before deleting anything, I reviewed what was using the available space.</p><p>For controlled cleanup:</p><pre>docker container prune<br>docker image prune<br>docker builder prune</pre><p>Docker prune commands remove unused resources.</p><p>Review the affected resources before adding the -f flag or scheduling automatic cleanup.</p><p>Docker’s default json-file logging driver can also allow container log files to grow until they consume significant disk space.</p><p>Configuring log rotation or using another appropriate logging driver can help prevent this problem.</p><p>Cleanup needs to balance two competing goals:</p><ul><li>Prevent uncontrolled storage growth and cross-job contamination.</li><li>Preserve useful caches that make self-hosted builds worthwhile.</li></ul><p>For a persistent runner, disk monitoring is not optional.</p><h3>What I Would Do Differently</h3><p>If I were building the setup again, I would make the following decisions before installing the runner.</p><h3>1. Define the trust boundary</h3><p>Decide which repositories can execute code on the machine.</p><p>Create organization runner groups and restrict them to selected private repositories.</p><h3>2. Separate workload types</h3><p>Use separate build, deployment, and migration runners where their security requirements differ.</p><p>Docker build access should not automatically imply production deployment or database migration access.</p><h3>3. Install the runner as a service immediately</h3><p>Do not operate it through a permanent SSH terminal.</p><p>Install and verify the systemd service during the initial setup.</p><h3>4. Test as the service account</h3><p>Verify Docker, AWS CLI, workspace permissions, environment variables, and required tools as the actual Linux account running the GitHub Actions service.</p><h3>5. Use temporary cloud credentials</h3><p>Prefer OIDC or carefully scoped instance roles over long-lived AWS access keys.</p><p>Restrict IAM trust policies to the intended repositories, branches, and protected environments.</p><h3>6. Plan monitoring and cleanup</h3><p>Track:</p><ul><li>Runner availability</li><li>CPU and memory usage</li><li>Disk usage</li><li>Docker storage</li><li>Workflow queue time</li><li>Container logs</li><li>Operating-system patching</li><li>Runner software updates</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpfnYzWXUORLlsphazaw3A.png" /><figcaption>A production-ready runner design separates workloads, permissions, repositories, and persistent state.</figcaption></figure><h3>Production-Readiness Checklist</h3><p>Before calling a self-hosted runner production-ready, I now verify the following.</p><h3>Availability and recovery</h3><ul><li>The runner starts automatically after reboot.</li><li>Docker starts automatically after reboot.</li><li>Runner service logs and diagnostic logs are available.</li><li>Recovery and replacement procedures are documented.</li></ul><h3>Access and isolation</h3><ul><li>The runner user can execute the required Docker commands.</li><li>Workflow labels match the runner labels.</li><li>The runner group is limited to selected repositories.</li><li>Public pull requests cannot use privileged runners.</li><li>Build, deployment, and migration workloads are separated where appropriate.</li><li>The runner account has only the host permissions required for its workload.</li></ul><h3>Credentials and cloud permissions</h3><ul><li>Temporary credentials are used wherever possible.</li><li>AWS permissions follow the principle of least privilege.</li><li>OIDC trust policies restrict the intended organization, repository, branch, or protected environment.</li><li>Shared build runners do not have broad production permissions.</li></ul><h3>Monitoring and maintenance</h3><ul><li>Runner availability, CPU, memory, and queue time are monitored.</li><li>Disk usage and Docker storage are monitored.</li><li>Container logs are rotated.</li><li>Cleanup procedures are documented and tested.</li><li>Operating-system updates are managed.</li><li>GitHub Actions runner updates are managed.</li></ul><h3>Final Thoughts</h3><p>Moving to a self-hosted GitHub Actions runner gave us greater control over networking, Docker caching, compute resources, storage, and deployment tooling.</p><p>That control also transferred responsibility for the underlying infrastructure to our team.</p><p>With GitHub-hosted runners, GitHub manages the machines. With self-hosted runners, your team becomes responsible for availability, permissions, isolation, patching, capacity, storage, networking, credentials, and incident response.</p><p>The most important lesson was not how to register the runner.</p><p>It was realizing that once a machine can build trusted code, access private networks, or deploy applications, it is no longer just a CI worker. It is part of the production infrastructure.</p><p>Registering a runner may take only a few minutes.</p><p>Designing the trust boundaries around it is the real DevOps work.</p><p>Planning to move CI/CD workloads to self-hosted infrastructure? Connect with <a href="https://dexaminds.com/"><strong>DexaMinds </strong></a>to discuss a secure, reliable, and production-ready runner architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c10c010ca2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dexaminds/i-moved-github-actions-to-a-self-hosted-runner-heres-what-broke-6c10c010ca2a">I Moved GitHub Actions to a Self-Hosted Runner — Here’s What Broke</a> was originally published in <a href="https://medium.com/dexaminds">DexaMinds</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon ECS vs EKS: The AWS Architecture Decision That Saved Us Weeks of Engineering Time]]></title>
            <link>https://medium.com/dexaminds/amazon-ecs-vs-eks-the-aws-architecture-decision-that-saved-us-weeks-of-engineering-time-41e51b0e9b5d?source=rss-c5da7babac8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/41e51b0e9b5d</guid>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <dc:creator><![CDATA[Sai Prasad Ansuri]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 12:31:52 GMT</pubDate>
            <atom:updated>2026-06-22T12:31:52.803Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Sometimes the best architecture decision isn’t about choosing the most powerful technology. It’s about choosing the technology that lets your team move faster.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JkJFeIgPHEnAy8XukHt3IA.png" /></figure><p><strong>Should we build our container platform on Amazon EKS or Amazon ECS?</strong></p><p>At first, the answer seemed obvious. Kubernetes has become the default recommendation for modern cloud infrastructure. Need container orchestration? Kubernetes. Building microservices? Kubernetes. Need scalability? Kubernetes. Need high availability? Kubernetes.</p><p>The cloud-native ecosystem has made Kubernetes the standard answer for almost every container conversation.</p><p>But as we started planning our AWS architecture, an uncomfortable question emerged:</p><blockquote><em>What if Kubernetes solves problems we don’t actually have?</em></blockquote><p>That question changed everything.</p><p>Instead of choosing the most popular technology, we focused on choosing the technology that best aligned with our requirements, team capabilities, and business goals.</p><p>The result?</p><p>We chose <strong>Amazon ECS over Amazon EKS</strong>, and that decision saved us weeks of engineering effort while still delivering a scalable, production-ready platform.</p><h3>What We Actually Needed</h3><p>Before comparing technologies, we documented our requirements.</p><p>Our goal wasn’t simply to deploy containers.</p><p>We needed a platform that could:</p><ul><li>Run multiple application services</li><li>Scale reliably as adoption grows</li><li>Maintain strong security boundaries</li><li>Support automated deployments</li><li>Integrate seamlessly with AWS services</li><li>Remain manageable for a lean engineering team</li></ul><p>Most importantly:</p><blockquote><em>We wanted our engineers spending time building products — not managing infrastructure.</em></blockquote><p>That single requirement became the foundation of every decision that followed.</p><h3>Amazon EKS vs Amazon ECS: Two Different Philosophies</h3><p>Although both services run containers, they approach container orchestration very differently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3LDLa-oLOymPtwjnB0PGA.png" /><figcaption>ECS and EKS both run containers, but they optimize for different engineering realities.</figcaption></figure><h3>Amazon EKS: Flexibility Through Kubernetes</h3><p>Amazon EKS provides a managed Kubernetes experience while preserving compatibility with the broader Kubernetes ecosystem.</p><p>Its strengths include:</p><ul><li>Multi-cloud portability</li><li>Kubernetes-native tooling</li><li>Service mesh support</li><li>Advanced workload scheduling</li><li>Extensive ecosystem integrations</li></ul><p>For organizations already operating Kubernetes at scale, these benefits can be extremely valuable.</p><p>However, flexibility comes with operational responsibility.</p><p>Teams still need to think about Kubernetes upgrades, networking models, security policies, observability tooling, and cluster management. The learning curve is real, and so is the operational overhead.</p><h3>Amazon ECS: Simplicity Through AWS Integration</h3><p>Amazon ECS takes a different approach.</p><p>Rather than exposing Kubernetes abstractions, ECS focuses on providing a streamlined AWS-native experience for running containers.</p><p>Key advantages include:</p><ul><li>Simpler operational model</li><li>Faster onboarding</li><li>Native AWS integration</li><li>Lower management overhead</li><li>Easier day-to-day operations</li></ul><p>For teams operating primarily within AWS, ECS often provides everything needed without introducing Kubernetes complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nb4aiCosCDAasBB8jMd1ng.png" /></figure><h3>The Four Questions That Made the Decision Easy</h3><p>Rather than asking: <strong>“Which platform is more powerful?”</strong></p><p>We asked: <strong>“Which platform creates the most value for our team right now?”</strong></p><p>That led us to evaluate four critical areas.</p><h3>1. Team Capacity</h3><p>Every platform creates operational overhead.</p><p>The more flexible a platform becomes, the more expertise it typically requires.</p><p>While Kubernetes offers tremendous capabilities, we recognized that our current team would gain more value from focusing on application delivery than from managing Kubernetes infrastructure.</p><p>That immediately gave ECS an advantage.</p><h3>2. Time to Delivery</h3><p>We needed a production-ready environment quickly.</p><p>Every week spent building infrastructure was a week not spent delivering customer value.</p><p>ECS allowed us to move faster while still meeting our security, reliability, and scalability requirements.</p><h3>3. Scalability Requirements</h3><p>This was an important realization.</p><p>Our application absolutely needed scalability.</p><p>But we didn’t need:</p><ul><li>Service meshes</li><li>Multi-cluster management</li><li>Custom Kubernetes operators</li><li>Advanced scheduling policies</li></ul><p>ECS provided all the scaling capabilities we required without introducing unnecessary complexity.</p><h3>4. AWS Ecosystem Alignment</h3><p>Our infrastructure stack was already centered around AWS.</p><p>We relied heavily on services such as:</p><ul><li>Application Load Balancer</li><li>IAM</li><li>CloudWatch</li><li>Amazon RDS</li><li>VPC networking</li><li>Security Groups</li></ul><p>Because ECS integrates deeply with AWS services, it reduced implementation effort and simplified ongoing operations. AWS highlights this simplicity and tight integration as one of ECS’s primary strengths.</p><h3>The Surprising Outcome</h3><p>One of the biggest lessons from this decision had nothing to do with ECS or EKS.</p><p>It was what happened after the decision was made.</p><p>By choosing ECS, we stopped spending time debating platform complexity and started investing time in things that directly improved delivery:</p><ul><li>Better automation</li><li>Stronger security</li><li>Improved deployment processes</li><li>Faster releases</li><li>Better developer experience</li></ul><p>In other words, the productivity gains didn’t come from container orchestration itself.</p><p>They came from reducing operational complexity wherever possible.</p><blockquote><em>Simplicity isn’t a limitation. It’s often a competitive advantage.</em></blockquote><h3>What We Gained by Choosing ECS :</h3><h3>Faster Time to Production</h3><p>Our platform became production-ready significantly faster than a comparable Kubernetes-based implementation would have.</p><h3>Lower Operational Overhead</h3><p>Our engineers spend more time building features and less time operating infrastructure.</p><h3>Easier Onboarding</h3><p>New team members can become productive faster without needing deep Kubernetes expertise.</p><h3>Better Focus</h3><p>Instead of managing platform complexity, we focus on solving business problems.</p><h3>Room for Future Growth</h3><p>Most importantly, ECS didn’t limit us.</p><p>We gained a scalable foundation without prematurely optimizing for future complexity.</p><h3>The Most Valuable Lesson</h3><p>The biggest lesson had nothing to do with ECS or EKS.</p><p>It was this:</p><blockquote><em>Great architecture decisions start with requirements, not trends.</em></blockquote><p>Kubernetes could absolutely have solved our problem.</p><p>So could several other platforms.</p><p>But engineering isn’t about choosing the most powerful solution.</p><p>It’s about choosing the solution that creates the most value with the least unnecessary complexity.</p><p>For our workload, Amazon ECS delivered the right balance of:</p><ul><li>Scalability</li><li>Reliability</li><li>Simplicity</li><li>Speed</li></ul><h3>When We Would Choose EKS</h3><p>To be clear, there are many scenarios where Amazon EKS would be the better choice.</p><p>I would strongly consider EKS when:</p><ul><li>Multi-cloud portability is required</li><li>Kubernetes expertise already exists within the organization</li><li>Service mesh adoption is planned</li><li>Kubernetes-native tooling is heavily used</li><li>Platform engineering is a strategic investment</li><li>Advanced orchestration capabilities are needed</li></ul><p>In those situations, the additional complexity may be completely justified. AWS positions EKS as the natural fit for teams that want the flexibility and ecosystem benefits of Kubernetes.</p><p>The key is making that tradeoff intentionally.</p><h3>Final Thoughts</h3><p>The cloud industry often celebrates complexity.</p><p>Experienced engineers know better.</p><p>Complexity is a cost.</p><p>Sometimes it’s a worthwhile cost.</p><p>Sometimes it isn’t.</p><p>The hardest architecture skill isn’t learning new technologies.</p><p>It’s knowing when not to use them.</p><blockquote><em>“The best platform isn’t the one with the most features. It’s the one that allows your team to deliver value with the least unnecessary friction.”</em></blockquote><p>For this project, that platform was Amazon ECS.</p><p>And given the same requirements, we’d make the same decision again.</p><h3>What would your team choose?</h3><p>If you were building a production AWS environment today, would you choose Amazon ECS or Amazon EKS?</p><p>We’d love to hear how your team approaches container orchestration decisions and the factors that influence your architecture choices.</p><p>If you’re exploring AWS architectures, DevOps automation, Infrastructure as Code (IaC), CI/CD modernization, or cloud-native platforms, we’d be happy to exchange ideas and share our experiences.</p><p><a href="https://dexaminds.com/#contact">Connect </a>with us to continue the conversation or visit <a href="https://dexaminds.com/">DexaMinds </a>to learn more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41e51b0e9b5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dexaminds/amazon-ecs-vs-eks-the-aws-architecture-decision-that-saved-us-weeks-of-engineering-time-41e51b0e9b5d">Amazon ECS vs EKS: The AWS Architecture Decision That Saved Us Weeks of Engineering Time</a> was originally published in <a href="https://medium.com/dexaminds">DexaMinds</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>