<?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 Indika Kodagoda on Medium]]></title>
        <description><![CDATA[Stories by Indika Kodagoda on Medium]]></description>
        <link>https://medium.com/@cloud.qubes?source=rss-b0085b39c43e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rLUz4vPQrdPg7nHYS5TpWg.jpeg</url>
            <title>Stories by Indika Kodagoda on Medium</title>
            <link>https://medium.com/@cloud.qubes?source=rss-b0085b39c43e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:57:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloud.qubes/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[Beyond Default Logging: How Senior DevOps Engineers Scale AWS CloudTrail]]></title>
            <link>https://towardsaws.com/beyond-default-logging-how-senior-devops-engineers-scale-aws-cloudtrail-dd366bfe6e74?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd366bfe6e74</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloudtrail]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 13:41:46 GMT</pubDate>
            <atom:updated>2026-11-05T11:13:50.241Z</atom:updated>
            <content:encoded><![CDATA[<p>Every new AWS account comes with CloudTrail quietly humming in the background, passively recording your management API history right out of the box.</p><p>But treating that default 90-day event history as a complete auditing strategy is a massive trap for growing infrastructure. As your cloud footprint scales across multiple accounts, your platform team will quickly find themselves drowning in a noisy ocean of raw, unstructured JSON logs. When a real security incident strikes, reactive forensic clicking through the AWS console is simply too slow-so how do we transform this passive data dump into an automated governance engine?</p><p>Senior engineers solve this by building immutable centralized storage, querying logs with Amazon Athena, and wiring API triggers directly into self-healing remediation pipelines.</p><h3>The Foundation: Immutable Organizational Trails</h3><p>The biggest mistake junior engineers make with CloudTrail is leaving it isolated in individual workload accounts, giving attackers an easy way to cover their tracks by simply disabling the local trail.</p><p>Instead, you need to deploy an Organizational Trail from your AWS management account to automatically capture API calls across every single member account in your environment. Route these logs into a central Amazon S3 bucket living inside a dedicated, highly restricted security account where standard infrastructure IAM roles have absolutely zero access.</p><p>To make this vault truly tamper-proof, you must enable CloudTrail Log File Integrity Validation, which uses SHA-256 cryptographic hashing to mathematically prove your logs haven’t been altered or deleted.</p><p>When you combine this cryptographic validation with S3 Object Lock and Customer Managed KMS keys, you build an immutable forensic record that even a fully compromised production account cannot destroy.</p><p>Enabling S3 Object Lock enforces a strict Write-Once-Read-Many (WORM) policy, which is also a hard requirement for rigorous compliance frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZLH5wkBToMqeLGW3UHlpA.png" /></figure><h3>Taming the Noise: Data Events &amp; Analytics</h3><p>Default management events are just the tip of the iceberg, because your most dangerous security blind spots actually hide deep within the massive volume of your data-plane operations.</p><p>To gain true visibility, senior engineers enable CloudTrail Data Events for critical resources like S3 buckets and Lambda functions, capturing exactly who is reading specific objects or executing code.</p><p>Because navigating this sheer volume of raw JSON is practically impossible, they map the centralized CloudTrail S3 bucket directly to Amazon Athena using partition projection. This setup empowers platform teams to execute standard SQL queries across gigabytes of audit logs in seconds, completely eliminating the need for manual parsing or expensive third-party ingestion tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mihnVsL-4DMeCCb11RguYQ.png" /></figure><p>This high-speed, precise query capability fundamentally transforms incident response and easily satisfies the rigorous auditing demands of frameworks like FedRAMP and PCI-DSS.</p><h3>Closing the Loop: Event-Driven Remediation</h3><p>Centralizing your CloudTrail logs solves your auditing problem, but waiting for a human to manually fix an exposed security group is a recipe for disaster.</p><p>To close this gap, senior engineers shift from passive logging to active defense by routing CloudTrail events directly into Amazon EventBridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOcXsQPKltlv8z8xixUMnA.png" /></figure><p>When EventBridge detects a high-risk API call such as an AuthorizeSecurityGroupIngress event attempting to open SSH port 22 to the public internet, it instantly triggers a custom Python AWS Lambda function. This function extracts the offending security group ID from the event payload and uses the Boto3 library to execute a RevokeSecurityGroupIngress call, stripping away the insecure rule within milliseconds.</p><pre>import boto3<br>import logging<br><br>logger = logging.getLogger()<br>logger.setLevel(logging.INFO)<br>ec2 = boto3.client(&#39;ec2&#39;)<br><br>def lambda_handler(event, context):<br>    # 1. Extract the offending Security Group ID from the EventBridge payload<br>    detail = event.get(&#39;detail&#39;, {})<br>    group_id = detail.get(&#39;requestParameters&#39;, {}).get(&#39;groupId&#39;)<br><br>    if not group_id:<br>        logger.error(&quot;No Security Group ID found in event payload.&quot;)<br>        return<br><br>    logger.info(f&quot;Unauthorized modification detected. Revoking SSH ingress for {group_id}&quot;)<br><br>    try:<br>        # 2. Defensively revoke the high-risk port 22 exposure<br>        ec2.revoke_security_group_ingress(<br>            GroupId=group_id,<br>            IpPermissions=[{<br>                &#39;IpProtocol&#39;: &#39;tcp&#39;,<br>                &#39;FromPort&#39;: 22,<br>                &#39;ToPort&#39;: 22,<br>                &#39;IpRanges&#39;: [{&#39;CidrIp&#39;: &#39;0.0.0.0/0&#39;}]<br>            }]<br>        )<br>        logger.info(f&quot;Successfully secured {group_id}.&quot;)<br><br>    except Exception as e:<br>        logger.error(f&quot;Failed to revoke rule: {str(e)}&quot;)<br>        raise</pre><p>This event-driven pipeline effectively creates a self-healing infrastructure loop, ensuring that unauthorized network changes are reverted before an attacker can even attempt to exploit them.</p><h3>Infrastructure as Code: Deploying with OpenTofu</h3><p>Manual console configuration for your core security infrastructure is a catastrophic anti-pattern that virtually guarantees compliance-breaking drift.</p><p>Instead, you must codify your organizational trail, event rules, and immutable S3 vault into a single Terraform/OpenTofu deployment.</p><p>By locking down this foundational architecture through automated CI/CD pipelines, you guarantee that any manual tampering with your audit trail is instantly detected and overwritten on the very next run.</p><pre>terraform {<br>  # OpenTofu natively locks via S3 - no dynamodb_table required<br>  backend &quot;s3&quot; {<br>    bucket  = &quot;cloudqubes-sec-tf-state-vault&quot;<br>    key     = &quot;cloudtrail-org/terraform.tfstate&quot;<br>    region  = &quot;us-east-1&quot;<br>    encrypt = true<br>  }<br>}<br><br>resource &quot;aws_s3_bucket&quot; &quot;trail_vault&quot; {<br>  bucket              = &quot;cloudqubes-org-cloudtrail-vault&quot;<br>  object_lock_enabled = true<br>}<br><br>resource &quot;aws_s3_bucket_versioning&quot; &quot;trail_vault_versioning&quot; {<br>  bucket = aws_s3_bucket.trail_vault.id<br>  versioning_configuration {<br>    status = &quot;Enabled&quot;<br>  }<br>}<br><br>resource &quot;aws_s3_bucket_object_lock_configuration&quot; &quot;trail_vault_lock&quot; {<br>  bucket = aws_s3_bucket.trail_vault.id<br>  rule {<br>    default_retention {<br>      mode = &quot;COMPLIANCE&quot;<br>      days = 365<br>    }<br>  }<br>}<br><br>resource &quot;aws_cloudtrail&quot; &quot;org_trail&quot; {<br>  name                          = &quot;organization-wide-audit-trail&quot;<br>  s3_bucket_name                = aws_s3_bucket.trail_vault.id<br>  include_global_service_events = true<br>  is_multi_region_trail         = true<br>  is_organization_trail         = true<br>  enable_log_file_validation    = true<br><br>  # Ensure the bucket is fully locked down before writing logs<br>  depends_on = [<br>    aws_s3_bucket_object_lock_configuration.trail_vault_lock<br>  ]<br>}</pre><p>Default AWS logging provides a false sense of security that completely crumbles the moment your platform faces a real incident.</p><p>By centralizing your organizational audit data into an immutable S3 vault, you immediately strip attackers of their ability to cover their tracks. Layering Amazon Athena on top of those data events then turns a messy JSON swamp into a razor-sharp, instantly queryable forensic database. Finally, wiring those API triggers directly into EventBridge and Lambda transforms your architecture from a passive observer into a self-healing system that actively neutralizes unauthorized access in real-time.</p><p>Stop treating CloudTrail as a historical compliance checkbox, and start engineering it as the active defense engine your infrastructure actually needs.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/beyond-default-logging-how-senior-devops-engineers-scale-aws-cloudtrail"><em>https://cloudqubes.com</em></a><em> on October 30, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd366bfe6e74" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/beyond-default-logging-how-senior-devops-engineers-scale-aws-cloudtrail-dd366bfe6e74">Beyond Default Logging: How Senior DevOps Engineers Scale AWS CloudTrail</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern AWS OIDC with GitHub Actions: The Zero-Secret, Drift-Free, Multi-Account Guide]]></title>
            <link>https://towardsaws.com/modern-aws-oidc-with-github-actions-the-zero-secret-drift-free-multi-account-guide-8d36297c6921?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d36297c6921</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 23:40:59 GMT</pubDate>
            <atom:updated>2026-09-27T03:11:54.713Z</atom:updated>
            <content:encoded><![CDATA[<p>For years, the standard approach to connecting GitHub Actions to AWS was deceptively simple:</p><ol><li>Create an IAM User ( github-actions-deployer).</li><li>Attach permissions policies to it.</li><li>Generate an Access Key ID and Secret Access Key ( AKIA...).</li><li>Paste them into GitHub Repository Secrets as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.</li></ol><p>While this workflow is easy to set up, it introduces severe security and operational vulnerabilities at scale:</p><ul><li><strong>Credential Sprawl &amp; Leak Risks:</strong> Long-lived static keys never expire on their own. If a developer accidentally echoes secrets into build logs, commits them to a public repo, or an attacker exfiltrates environment variables from an untrusted third-party GitHub Action, your entire AWS account is compromised.</li><li><strong>Rotation Overhead:</strong> Security compliance frameworks (SOC 2, ISO 27001, PCI-DSS) mandate key rotation every 90 days. In an organization managing dozens or hundreds of microservice repositories across multiple AWS accounts, rotating static credentials becomes an endless, error-prone chore.</li><li><strong>Audit Blind Spots:</strong> In AWS CloudTrail, all actions executed by that user show the exact same static principal. There is no cryptographic link between the AWS API call and the specific GitHub workflow run, pull request, commit SHA, or engineer who triggered it.</li></ul><h3>The Modern Alternative to Permanent Credentials: OpenID Connect (OIDC) Federation</h3><p>With <strong>OpenID Connect (OIDC)</strong>, your GitHub runner does not hold any static AWS credentials. Instead:</p><ul><li>GitHub acts as an external <strong>Identity Provider (IdP)</strong>.</li><li>For each job execution, GitHub issues a short-lived, cryptographically signed <strong>JSON Web Token (JWT)</strong>.</li><li>The runner sends this JWT to AWS Security Token Service (STS) using the sts:AssumeRoleWithWebIdentity API call.</li><li>AWS STS validates the token’s signature, inspects the claims against an IAM Role Trust Policy, and exchanges it for <strong>temporary credentials (</strong><strong>ASIA...)</strong> valid for up to 1 hour.</li></ul><p>No secrets stored. No keys to rotate. No credentials to leak.</p><h3>Under the Hood: The OIDC Authentication Flow<a href="https://cloudqubes.com/blog/modern-aws-oidc-with-github-actions-the-zero-secret-drift-free-multi-account-guide#under-the-hood-the-oidc-authentication-flow">#</a></h3><p>Understanding the handshake between GitHub Actions and AWS STS is critical for debugging edge cases and architecting least-privilege trust policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IETE6a8Q6OxPfHmy.png" /></figure><p>When GitHub mints a JWT, it includes critical claims that AWS inspects:</p><pre>{<br>  &quot;iss&quot;: &quot;https://token.actions.githubusercontent.com&quot;,<br>  &quot;aud&quot;: &quot;sts.amazonaws.com&quot;,<br>  &quot;sub&quot;: &quot;repo:my-org/my-app:environment:production&quot;,<br>  &quot;actor&quot;: &quot;octocat&quot;,<br>  &quot;repository&quot;: &quot;my-org/my-app&quot;,<br>  &quot;repository_owner&quot;: &quot;my-org&quot;,<br>  &quot;job_workflow_ref&quot;: &quot;my-org/my-app/.github/workflows/deploy.yml@refs/heads/main&quot;,<br>  &quot;ref&quot;: &quot;refs/heads/main&quot;,<br>  &quot;sha&quot;: &quot;a1b2c3d4e5f67890123456789abcdef012345678&quot;,<br>  &quot;exp&quot;: 1758509822<br>}</pre><p>The three most important claims for AWS IAM:</p><ol><li>Must match the OIDC Identity Provider URL ( <a href="https://token.actions.githubusercontent.com)./">https://token.actions.githubusercontent.com).</a></li><li><strong>aud (Audience):</strong> The intended recipient of the token. By default, aws-actions/configure-aws-credentials sets this to sts.amazonaws.com.</li><li><strong>sub (Subject):</strong> The unique identifier representing the context of the workflow run (repository, branch, tag, or environment). This is where you enforce authorization boundaries.</li></ol><p>If you search the web for “Terraform AWS GitHub OIDC”, 90% of tutorials and blog posts recommend something like this:</p><pre># ❌ ANTI-PATTERN: DO NOT USE THIS ANYMORE<br>data &quot;tls_certificate&quot; &quot;github&quot; {<br>  url = &quot;https://token.actions.githubusercontent.com/.well-known/openid-configuration&quot;<br>}<br><br>resource &quot;aws_iam_openid_connect_provider&quot; &quot;github&quot; {<br>  url             = &quot;https://token.actions.githubusercontent.com&quot;<br>  client_id_list  = [&quot;sts.amazonaws.com&quot;]<br>  thumbprint_list = [data.tls_certificate.github.certificates[0].sha1_fingerprint]<br>}</pre><p>Historically, AWS IAM required the SHA-1 thumbprint of the leaf/intermediate TLS certificate protecting the OIDC provider’s endpoint. Using data &quot;tls_certificate&quot; dynamically pulled this fingerprint from GitHub&#39;s servers during terraform plan / terraform apply.</p><p>This introduced two massive headaches:</p><ol><li><strong>Noisy Plan Diffs:</strong> Edge routing, CDN variations, and certificate renewals caused Terraform plans to show perpetual diffs even when nothing had changed.</li><li><strong>Global CI/CD Outages:</strong> In early 2023, GitHub rotated their intermediate TLS certificate. Pipelines around the globe immediately broke with OpenIDConnectProvider has an invalid thumbprint, halting deployments until platform teams manually updated their Terraform code.</li></ol><p>On <strong>July 6, 2023</strong>, AWS officially updated IAM OIDC validation for well-known providers like GitHub Actions ( token.actions.githubusercontent.com).</p><p><strong>IAM now validates GitHub Actions against its own trusted library of root Certificate Authorities (CAs).</strong> During runtime token verification, AWS STS no longer depends on the leaf certificate thumbprints stored in your provider configuration.</p><p>However, because the underlying AWS IAM API schema ( ThumbprintList) still expects 1 to 5 valid 40-character hexadecimal strings, you must still provide a thumbprint in your IaC.</p><p>The industry-standard solution is to <strong>pass static thumbprints</strong> and delete data &quot;tls_certificate&quot; completely:</p><pre># ✅ RECOMMENDED PRODUCTION PATTERN: Static Thumbprints, No Dynamic Lookups<br>resource &quot;aws_iam_openid_connect_provider&quot; &quot;github&quot; {<br>  url            = &quot;https://token.actions.githubusercontent.com&quot;<br>  client_id_list = [&quot;sts.amazonaws.com&quot;]<br><br>  # AWS IAM validates GitHub Actions against its own internal root CA library.<br>  # Static thumbprints satisfy the IAM API schema without causing perpetual plan diffs<br>  # or breaking on intermediate TLS rotations.<br>  thumbprint_list = [<br>    &quot;6938fd4d98bab03faadb97b34396831e3780aea1&quot;,<br>    &quot;1c58a3a8518e8759bf075b76b750d4f2df264fcd&quot;<br>  ]<br><br>  tags = {<br>    Name = &quot;github-actions-oidc&quot;<br>  }<br>}</pre><h3>Securing the Trust Policy: Beyond Basic Branch Pinning</h3><p>Creating the OIDC provider is only step one. The real security lives in the <strong>IAM Role Trust Policy</strong> ( AssumeRoleWithWebIdentity).</p><h3>Pitfall 1: Wildcard Sub Claims (A Catastrophic Vulnerability)</h3><p>Consider this assume role policy condition:</p><pre>// 🚨 DANGEROUS: DO NOT DO THIS<br>&quot;Condition&quot;: {<br>  &quot;StringLike&quot;: {<br>    &quot;token.actions.githubusercontent.com:sub&quot;: &quot;repo:*:*&quot;<br>  }<br>}</pre><p>If you use &quot;repo:*:*&quot;, <strong>ANY repository on GitHub owned by ANY person or organization in the world can assume your AWS deployment role</strong> simply by sending a valid GitHub OIDC token to your role ARN! Always restrict the repository explicitly.</p><h3>Pitfall 2: GitHub’s 2026 Shift to Immutable Repository IDs</h3><p>In <strong>July 2026</strong>, GitHub introduced a breaking change to OIDC subject claims for new repositories to prevent repository-renaming and token-squatting attacks:</p><ul><li><strong>Classic Subject Format:</strong> repo:my-org/my-repo:ref:refs/heads/main</li><li><strong>Immutable ID Format:</strong> repo:my-org@123456/my-repo@987654321:ref:refs/heads/main</li></ul><p>If your IAM policy uses strict StringEquals expecting only the human-readable slug:</p><pre>&quot;StringEquals&quot;: {<br>  &quot;token.actions.githubusercontent.com:sub&quot;: &quot;repo:my-org/my-repo:ref:refs/heads/main&quot;<br>}</pre><p>AWS STS will reject the token with Not authorized to perform sts:AssumeRoleWithWebIdentity because GitHub appended @&lt;user_id&gt; and @&lt;repo_id&gt;.</p><p>To support both formats safely without opening wildcard access:</p><pre>Condition = {<br>  StringEquals = {<br>    &quot;token.actions.githubusercontent.com:aud&quot; = &quot;sts.amazonaws.com&quot;<br>  }<br>  StringLike = {<br>    &quot;token.actions.githubusercontent.com:sub&quot; = [<br>      &quot;repo:my-org/my-repo:*&quot;,<br>      &quot;repo:my-org*/my-repo*:*&quot;<br>    ]<br>  }<br>}</pre><h3>The Enterprise Architecture: GitHub Environments for Multi-Account Isolation</h3><p>For multi-account AWS topologies (e.g. dev, staging, prod across distinct AWS accounts or regions), branch pinning alone is insufficient.</p><p>A developer pushing code to a feature branch could modify workflow files to point to a production role ARN. If the production role trusts branch pushes or has loose conditions, your production environment is at risk.</p><h4>The Solution: Scoping Roles to GitHub Environments</h4><p>When you assign an environment: &lt;name&gt; to a GitHub Actions job, GitHub alters the OIDC sub claim:</p><pre>repo:&lt;owner&gt;/&lt;repo&gt;:environment:&lt;environment_name&gt;</pre><p>In GitHub Repository Settings:</p><ol><li>Navigate to <strong>Settings &gt; Environments</strong>.</li><li>Create environments matching your AWS accounts: dev, staging, production-us-east-1.</li><li>Under <strong>Deployment branches</strong>, configure protection rules to restrict deployments strictly to main (or version tags like v*).</li><li>Require mandatory approvals from senior engineers or DevOps before production jobs can run.</li></ol><p>In AWS IAM, restrict the assume role policy condition strictly to that environment:</p><pre>Condition = {<br>  StringEquals = {<br>    &quot;token.actions.githubusercontent.com:aud&quot; = &quot;sts.amazonaws.com&quot;<br>  }<br>  StringLike = {<br>    &quot;token.actions.githubusercontent.com:sub&quot; = [<br>      &quot;repo:my-org*/my-repo*:environment:production&quot;<br>    ]<br>  }<br>}</pre><p>Now you have true <strong>Defense-in-Depth</strong>:</p><ul><li>An unauthorized branch or pull request cannot assume the production IAM role because GitHub enforces environment protection rules before issuing the token.</li><li>Even if an attacker tampers with the workflow YAML, AWS STS rejects any token that doesn’t match the specific environment: production claim.</li></ul><h3>Complete Infrastructure as Code (OpenTofu / Terraform)</h3><p>Here is a complete, production-ready OpenTofu/Terraform module implementing all of the best practices discussed.</p><pre>infra/modules/oidc/variables.tf<br><br>variable &quot;project_name&quot; {<br>  description = &quot;Project name prefix&quot;<br>  type        = string<br>}<br><br>variable &quot;environment&quot; {<br>  description = &quot;Target deployment environment (e.g. dev, prod)&quot;<br>  type        = string<br>}<br><br>variable &quot;github_repo&quot; {<br>  description = &quot;GitHub repository in &#39;owner/repo&#39; format&quot;<br>  type        = string<br>}<br><br>variable &quot;github_branch&quot; {<br>  description = &quot;Primary branch allowed to deploy&quot;<br>  type        = string<br>  default     = &quot;main&quot;<br>}<br><br>variable &quot;ecr_repository_arn&quot; {<br>  description = &quot;Target ECR repository ARN for deployments&quot;<br>  type        = string<br>}<br><br>variable &quot;ecs_execution_role_arn&quot; {<br>  description = &quot;ECS task execution role ARN for PassRole permission&quot;<br>  type        = string<br>}<br><br>variable &quot;ecs_task_role_arn&quot; {<br>  description = &quot;ECS task role ARN for PassRole permission&quot;<br>  type        = string<br>}</pre><pre>infra/modules/oidc/main.tf<br># -----------------------------------------------------------------------------<br># GitHub OIDC Identity Provider<br># -----------------------------------------------------------------------------<br>resource &quot;aws_iam_openid_connect_provider&quot; &quot;github&quot; {<br>  url            = &quot;https://token.actions.githubusercontent.com&quot;<br>  client_id_list = [&quot;sts.amazonaws.com&quot;]<br><br>  # AWS IAM validates GitHub Actions against its own trusted root CA library.<br>  # Static thumbprints satisfy the IAM API schema without dynamic cert lookups.<br>  thumbprint_list = [<br>    &quot;6938fd4d98bab03faadb97b34396831e3780aea1&quot;,<br>    &quot;1c58a3a8518e8759bf075b76b750d4f2df264fcd&quot;<br>  ]<br><br>  tags = {<br>    Name = &quot;${var.project_name}-github-oidc&quot;<br>  }<br>}<br><br># -----------------------------------------------------------------------------<br># IAM Role for GitHub Actions Deployments<br># -----------------------------------------------------------------------------<br>resource &quot;aws_iam_role&quot; &quot;github_actions&quot; {<br>  name = &quot;${var.project_name}-${var.environment}-github-actions-role&quot;<br><br>  assume_role_policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [<br>      {<br>        Effect = &quot;Allow&quot;<br>        Principal = {<br>          Federated = 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>          }<br>          StringLike = {<br>            &quot;token.actions.githubusercontent.com:sub&quot; = [<br>              # Match classic format and 2026 immutable ID format for environment<br>              &quot;repo:${var.github_repo}:environment:${var.environment}&quot;,<br>              &quot;repo:${var.github_repo}*:environment:${var.environment}&quot;,<br>              # Match branch pushes<br>              &quot;repo:${var.github_repo}:ref:refs/heads/${var.github_branch}&quot;,<br>              &quot;repo:${var.github_repo}*:ref:refs/heads/${var.github_branch}&quot;<br>            ]<br>          }<br>        }<br>      }<br>    ]<br>  })<br><br>  tags = {<br>    Name = &quot;${var.project_name}-${var.environment}-github-actions-role&quot;<br>  }<br>}<br><br># -----------------------------------------------------------------------------<br># IAM Policy: Scoped Least-Privilege Deployment Permissions<br># -----------------------------------------------------------------------------<br>resource &quot;aws_iam_policy&quot; &quot;github_actions_deploy&quot; {<br>  name        = &quot;${var.project_name}-${var.environment}-github-deploy-policy&quot;<br>  description = &quot;Allows GitHub Actions to push images to ECR and deploy to ECS&quot;<br><br>  policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [<br>      # ECR Auth Token (requires * resource per AWS specification)<br>      {<br>        Effect   = &quot;Allow&quot;<br>        Action   = [&quot;ecr:GetAuthorizationToken&quot;]<br>        Resource = &quot;*&quot;<br>      },<br>      # ECR Image Push/Pull scoped strictly to the target repository<br>      {<br>        Effect = &quot;Allow&quot;<br>        Action = [<br>          &quot;ecr:BatchCheckLayerAvailability&quot;,<br>          &quot;ecr:GetDownloadUrlForLayer&quot;,<br>          &quot;ecr:BatchGetImage&quot;,<br>          &quot;ecr:PutImage&quot;,<br>          &quot;ecr:InitiateLayerUpload&quot;,<br>          &quot;ecr:UploadLayerPart&quot;,<br>          &quot;ecr:CompleteLayerUpload&quot;,<br>          &quot;ecr:DescribeRepositories&quot;,<br>          &quot;ecr:ListImages&quot;<br>        ]<br>        Resource = var.ecr_repository_arn<br>      },<br>      # ECS Service Deployments<br>      {<br>        Effect = &quot;Allow&quot;<br>        Action = [<br>          &quot;ecs:DescribeServices&quot;,<br>          &quot;ecs:DescribeTaskDefinition&quot;,<br>          &quot;ecs:DescribeTasks&quot;,<br>          &quot;ecs:ListTasks&quot;,<br>          &quot;ecs:RegisterTaskDefinition&quot;,<br>          &quot;ecs:UpdateService&quot;<br>        ]<br>        Resource = &quot;*&quot;<br>      },<br>      # IAM PassRole scoped strictly to the ECS task execution and task roles<br>      {<br>        Effect = &quot;Allow&quot;<br>        Action = [&quot;iam:PassRole&quot;]<br>        Resource = [<br>          var.ecs_execution_role_arn,<br>          var.ecs_task_role_arn<br>        ]<br>      }<br>    ]<br>  })<br>}<br><br>resource &quot;aws_iam_role_policy_attachment&quot; &quot;github_actions&quot; {<br>  role       = aws_iam_role.github_actions.name<br>  policy_arn = aws_iam_policy.github_actions_deploy.arn<br>}</pre><h3>Configuring GitHub Actions with Dynamic CloudTrail Session Logging</h3><p>In your deployment workflow (.github/workflows/deploy-app.yml), configure authentication with two critical properties:</p><ol><li>environment: dev (or staging, production) to activate GitHub Environment governance.</li><li>role-session-name: gha-${{ github.job }}-${{ github.run_id }} to gain full traceability in AWS CloudTrail.</li></ol><pre>name: Deploy Application to ECS<br><br>on:<br>  push:<br>    branches: [ main ]<br>    paths:<br>      - &quot;app/**&quot;<br>      - &quot;.github/workflows/deploy-app.yml&quot;<br>  workflow_dispatch:<br><br>permissions:<br>  id-token: write   # Required for requesting the OIDC JWT<br>  contents: read    # Required to checkout code<br><br>jobs:<br>  test-and-build-deploy:<br>    name: Build, Push &amp; Deploy to ECS Fargate<br>    runs-on: ubuntu-latest<br>    environment: dev   # Enables environment protection rules &amp; claims<br><br>    steps:<br>      - name: Checkout Code<br>        uses: actions/checkout@v4<br><br>      # -----------------------------------------------------------------------<br>      # Authenticate to AWS via OIDC<br>      # -----------------------------------------------------------------------<br>      - name: Configure AWS Credentials via OIDC<br>        uses: aws-actions/configure-aws-credentials@v4<br>        with:<br>          role-to-assume: arn:aws:iam::123456789012:role/ecs-flask-dev-github-actions-role<br>          aws-region: us-east-1<br>          audience: sts.amazonaws.com<br>          role-session-name: gha-${{ github.job }}-${{ github.run_id }}<br><br>      - name: Log in to Amazon ECR<br>        id: login-ecr<br>        uses: aws-actions/amazon-ecr-login@v2<br><br>      - name: Build, Tag, and Push Docker Image<br>        env:<br>          ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}<br>          ECR_REPOSITORY: ecs-flask-dev<br>          IMAGE_TAG: ${{ github.sha }}<br>        run: |<br>          docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:latest ./app<br>          docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG<br>          docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest</pre><h3>Why role-session-name is a Game-Changer for Incident Response</h3><p>By default, if role-session-name is omitted, the aws-actions/configure-aws-credentials action passes a generic static string: <strong>GitHubActions</strong>.</p><p>In <strong>AWS CloudTrail</strong>, every single API event executed by any workflow across any repo will look identical:</p><pre>arn:aws:sts::123456789012:assumed-role/ecs-flask-dev-github-actions-role/GitHubActions</pre><p>If 50 deployments run in a day, tracing a rogue change or failed deployment requires manually cross-referencing timestamps between systems.</p><p>With role-session-name: gha-${{ github.job }}-${{ github.run_id }}, CloudTrail logs:</p><pre>{<br>  &quot;eventSource&quot;: &quot;sts.amazonaws.com&quot;,<br>  &quot;eventName&quot;: &quot;AssumeRoleWithWebIdentity&quot;,<br>  &quot;roleSessionName&quot;: &quot;gha-test-and-build-deploy-12345678901&quot;,<br>  &quot;userIdentity&quot;: {<br>    &quot;arn&quot;: &quot;arn:aws:sts::123456789012:assumed-role/ecs-flask-dev-github-actions-role/gha-test-and-build-deploy-12345678901&quot;<br>  }<br>}</pre><p>Now, anyone investigating an alert in CloudTrail or Amazon GuardDuty can copy the run ID ( 12345678901) and immediately open the exact GitHub run:</p><pre>https://github.com/&lt;owner&gt;/&lt;repo&gt;/actions/runs/12345678901</pre><p>You instantly see the triggering commit, PR author, build status, and console logs.</p><ul><li><strong>Length:</strong> Must be between 2 and 64 characters.</li><li><strong>Allowed Characters:</strong> [\w+=,.@-] (alphanumeric, period, dash, underscore, plus).</li><li><strong>Avoid:</strong> ${{ github.ref_name }} (branches like feature/login have slashes / that STS rejects) and ${{ github.workflow }} (workflow names often contain spaces).</li></ul><h3>Troubleshooting &amp; Debugging Playbook</h3><p>When an OIDC setup fails, AWS returns a generic error to prevent information disclosure:</p><pre>Error: Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity</pre><p>Here is how to diagnose the issue in minutes using CloudTrail:</p><h3>Step #1: Query CloudTrail for the Failed Attempt</h3><p>Run the AWS CLI to inspect the rejected AssumeRoleWithWebIdentity call:</p><pre>aws cloudtrail lookup-events \<br>  --region us-east-1 \<br>  --lookup-attributes AttributeKey=EventName,AttributeValue=AssumeRoleWithWebIdentity \<br>  --max-results 5</pre><p>Look inside the CloudTrailEvent payload for:</p><pre>&quot;userName&quot;: &quot;repo:my-org@123456/my-repo@987654321:environment:dev&quot;</pre><p>Common failure scenarios and remedies:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-54nO_tdyBYQo9NWfNKwHA.png" /></figure><h3>Summary Checklist for Production Readiness</h3><p>Before pushing your OIDC setup to production, review this checklist:</p><ul><li><strong>Zero Static IAM Keys:</strong> No AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY in GitHub Secrets.</li><li><strong>Drift-Free IaC:</strong> No dynamic data &quot;tls_certificate&quot; lookups in Terraform/OpenTofu; static thumbprints used to satisfy the IAM API schema.</li><li><strong>No Wide Wildcards:</strong> Trust policy restricts repository ownership explicitly (no &quot;repo:*:*&quot;).</li><li><strong>Immutable ID Compatibility:</strong> Trust policy handles GitHub’s modern @&lt;user_id&gt; and @&lt;repo_id&gt; subject format using StringLike.</li><li><strong>Multi-Account Isolation:</strong> Deployment jobs bound to GitHub Environments (environment: &lt;name&gt;), paired with GitHub branch protection rules pinned to main.</li><li><strong>CloudTrail Traceability:</strong> role-session-name configured with gha-${{ github.job }}-${{ github.run_id }} for single-click investigation of AWS audit logs.</li><li><strong>Least Privilege Execution:</strong> Deployment IAM role grants access strictly to designated ECR repos, ECS services, and iam:PassRole restricted to ECS task execution roles.</li></ul><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/modern-aws-oidc-with-github-actions-the-zero-secret-drift-free-multi-account-guide"><em>https://cloudqubes.com</em></a><em> on September 21, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d36297c6921" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/modern-aws-oidc-with-github-actions-the-zero-secret-drift-free-multi-account-guide-8d36297c6921">Modern AWS OIDC with GitHub Actions: The Zero-Secret, Drift-Free, Multi-Account Guide</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use AI Like a Senior DevOps Engineer]]></title>
            <link>https://medium.com/codetodeploy/how-to-use-ai-like-a-senior-devops-engineer-cad6689a1477?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cad6689a1477</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 02:37:43 GMT</pubDate>
            <atom:updated>2026-09-29T15:35:32.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OHDREBm-G5jKLfWu.png" /></figure><p>We are constantly bombarded with promises of “Zero-Touch AIOps”.</p><blockquote><em>💥 </em><strong><em>Master AI &amp; Tech Skills</em></strong><br> 🎓 Get Up to 50% OFF Premium Courses<br> ⏰ Limited-Time Offer<br><a href="https://trk.udemy.com/zz4NBO"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITogvtC6mF2BUF35Qsd9pg.png" /></figure><p>Falling for that hype you feel:</p><ol><li>Either you are going to be replaced by a robot by next Tuesday,</li><li>Or the entire technology is just marketing fluff completely disconnected from the messy reality of production environments.</li></ol><p>The reality lies in the middle.</p><p>We don’t operate in pristine, autonomous utopias. We manage legacy tech debt, flaky CI/CD pipelines, complex cloud migrations, and a constantly evolving landscape of tooling.</p><p>AI is not yet capable enough to completely take over this work from humans. So, what really is happening in the industry?</p><p><strong>Instead of humans being replaced by AI, humans (DevOps engineers) are leveraging AI to manage complexity in existing workflows</strong>.</p><p>In this guide, we are going to walk through exactly how to adapt to this new situation. We’ll cover how to practically integrate AI into your daily <strong>workflows</strong>, from system design and Infrastructure as Code, to rapid prototyping and debugging. And, most importantly, we will highlight the dangerous “gotchas” you need to watch out for when using AI.</p><h3>Workflow #1: System Design</h3><p>Before you even touch a terminal or open your code editor, the first step of any infrastructure project is figuring out what on earth you are actually going to build. Traditionally, this meant staring at a whiteboard, sketching out VPCs and subnets, and debating trade-offs with your team.</p><p>Today, AI is incredibly useful for high-level system design reviews. <strong>Think of it as a highly knowledgeable, never-tired sounding board that has memorized every cloud provider’s documentation.</strong></p><p>Instead of starting from scratch, you can feed an LLM your rough, proposed architecture and explicitly ask it to evaluate the design against established industry standards. For example, you can ask it to critique your setup using the six pillars of the AWS Well-Architected Framework (Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, and Sustainability).</p><h3>How to Prompt for Architecture Reviews</h3><p>To get the best results, don’t just ask, “Is this a good design?” Give the AI a persona and constraints. Try a prompt like this:</p><blockquote>“Act as a Principal Cloud Architect. I am designing a containerized internal web app using ECS, an Application Load Balancer, and a managed PostgreSQL database. Critique this design based on the AWS Well-Architected Framework, specifically focusing on the Cost Optimization and Reliability pillars. Generate a matrix of trade-offs for this design.”</blockquote><p>The AI will instantly spit out a highly structured analysis, pointing out single points of failure, suggesting caching layers, and highlighting potential cost spikes.</p><p><strong>The “Gotcha” (Expert Review): The Trap of Over-Engineering</strong><br>This is where your role as a human reviewer is absolutely critical. You have to remember what LLMs are trained on: thousands of enterprise-grade whitepapers, highly available reference architectures, and vendor best practices designed for Fortune 500 companies.</p><p>Because of this, <strong>AI lacks business context</strong>.</p><p>If you ask an AI for a “reliable” architecture, it will almost always default to the most robust, complex solution available in its training data. It will enthusiastically recommend multi-region deployments, active-active database replication, and complex service meshes. It doesn’t know that you are just building an internal testing tool with a $50/month budget, or that your operations team consists of exactly two people who don’t have time to manage a service mesh.</p><p><strong>Real-World Example</strong><br>Imagine you are deciding between running a custom Prometheus monitoring stack on EC2 instances versus paying for a fully managed service, like Amazon Managed Service for Prometheus.</p><p>You can prompt the AI to generate a detailed comparison matrix. It will flawlessly list out the technical metrics: the granular control of EC2 versus the high availability of the managed service. It will highlight the exact maintenance overhead required for patching the EC2 instances.</p><p>The AI provides the data perfectly, but it cannot make the final decision. <em>You</em> make the final architectural decision because only you know if your team currently has the bandwidth to maintain that custom infrastructure, or if spending the extra money on the managed service is worth buying back your team’s Friday afternoons. You use the AI to map the territory, but you navigate the path.</p><h3>Workflow #2: Bootstrapping Infrastructure as Code (IaC)</h3><p>Once you have finished debating trade-offs and your system architecture is locked in, it is time to actually build the thing. This is where the transition from “architect” to “implementer” happens and where AI can save you hours of tedious work.</p><p>Let’s be honest: no one actually enjoys writing the boilerplate for Infrastructure as Code (IaC). Whether you are using Terraform, OpenTofu, or Ansible, starting a new project usually involves spending your first hour digging through documentation just to remember the exact syntax for a VPC module or the required parameters for a load balancer block.</p><p>AI completely eliminates this initialization penalty. You can prompt an LLM with your requirements and instantly receive the scaffolding. It takes seconds to generate complex data sources, resource blocks, or an initial set of Ansible playbooks. It gets you 80% of the way there immediately.</p><p><strong>The “Gotcha”: Hallucinations and Legacy Syntax</strong><br>However, that final 20% is exactly what needs human intervention. The danger of using AI for IaC is that it speaks with absolute, unwavering confidence-even when it is completely wrong.</p><p>AI frequently hallucinates generic resources, mixes up versions of provider modules, or defaults to legacy directory structures that violate modern best practices. Because the code often <em>looks</em> syntactically correct at first glance, a junior engineer might blindly copy-paste it and wonder why the pipeline immediately crashes on terraform plan. Your domain knowledge is what makes this generated code actually safe for production.</p><p><strong>Real-World Examples in the Trenches</strong><br> Let’s look at how this plays out in practice with two very common scenarios:</p><ul><li><strong>The Terraform Resource Trap:</strong> You might prompt an AI to configure networking and routing rules for an AWS environment. The AI confidently spits out a beautifully formatted data block utilizing a generic aws_prefix_list. It looks correct, but as the domain expert, you know that for the specific managed setup you are building, that resource type is completely wrong. You step in, reject the AI&#39;s suggestion, and update the data source to the required aws_ec2_managed_prefix_list before it ever reaches your version control.</li><li><strong>The Ansible Structure Failure:</strong> Imagine you are using AI to help build out a custom Ansible collection. You ask it for the directory layout and the initial YAML files. The AI might generate all the correct logic, but it lazily dumps everything into a flat, top-level directory structure. If you run that, it’s going to be an unmaintainable mess. As the human reviewer, you intervene and enforce the standard collections/ansible_collections/ nested subdirectory structure, ensuring the automation complies with organizational standards.</li></ul><p>In both cases, the AI did the heavy lifting of writing the raw code, but <em>you</em> provided the guardrails. You didn’t write the boilerplate, but you secured the execution.</p><h3>Workflow #3: Rapid Prototyping for Internal Tooling and API Automation</h3><p>DevOps engineers build a massive amount of custom internal utilities, CLI tools, and automation scripts. You aren’t just managing infrastructure; you are often building the “glue” that connects disparate systems together. This is where AI shines as a rapid prototyping partner.</p><p>Whether you use Python, Go, TypeScript, or Bash, AI excels at structuring the tedious parts. It can instantly generate the authentication logic, build out robust error handling shells, and write the boilerplate required for parsing deeply nested JSON data.</p><p><strong>The “Gotcha”: Missing the Nuance of Third-Party Payloads</strong><br> While an LLM is fantastic for getting the syntax and structure right, it frequently misses the nuanced execution context and the highly specific payload requirements of third-party systems. AI knows how a REST API <em>should</em> theoretically look, but it doesn’t always know the quirks of the specific endpoint you are targeting.</p><p><strong>Real-World Example</strong><br> Let’s say you are building a custom Python wrapper to facilitate email delivery workflows through the Microsoft Graph API. You prompt the AI to generate the authentication flow and the payload structure.</p><p>The AI might provide a beautifully structured script that constructs the HTTP request perfectly. However, if you blindly execute it, the script fails. Why? Because the AI missed an explicit requirement for that specific endpoint: you must ensure a mandatory user ID parameter is passed so the Graph API actually knows which mailbox to send the email from.</p><p>As the human reviewer, you step in, spot the missing parameter, and add the required user ID to the request logic. The AI saved you thirty minutes of writing JSON parsing and authentication headers, and you spent two minutes fixing the execution context. That is the ideal workflow.</p><h3>Workflow #4: Accelerating Pipeline and Script Debugging</h3><p>No matter how robust your system design is, pipelines will fail, and shell scripts will inevitably halt. When this happens, staring at a massive wall of red text in your terminal or CI/CD logs can be incredibly draining.</p><p>This is another area where treating AI as your assistant pays massive dividends. You can treat the AI context window as an interactive, highly-contextual debugger.</p><p>Instead of manually parsing hundreds of lines of stack traces to find the one missing semicolon or misconfigured variable, you can simply dump the entire error log into the LLM. It can instantly cross-reference the failure against the surrounding code and locate variable validation bugs, logic errors, or syntax faults that are easily missed by human eyes.</p><p><strong>The “Gotcha”: Disrupting Framework Control Flow</strong><br> The danger here is that AI is hyper-focused on making the error go away, often ignoring <em>how</em> the error should be handled within your specific framework.</p><p>An LLM might suggest a fix that technically executes and suppresses the error, but completely violates the intended error handling or control flow of your deployment engine. It might suggest wrapping a failure in a generic catch block or forcing an abrupt exit, which can leave your infrastructure in a fragmented, half-deployed state.</p><p><strong>Real-World Example</strong><br>Let’s say you have a custom Git status checking shell script that runs before a deployment, and it suddenly starts failing. You paste the script and the error into the AI. It immediately spots the issue: your upstream branch parameters are misaligned. This is a huge win. The AI found a subtle variable validation bug in seconds.</p><p>However, you now ask the AI how to halt the workflow engine if this error occurs. The AI might suggest using a standard exit 1 or a generic raise Halt. But as the human reviewer, you know you are using a specific framework like SSHKit.</p><p>If you just use a generic halt, SSHKit won’t handle the failure gracefully. You step in and reject the AI’s generic suggestion, instead enforcing the use of the proper exception class specifically required by the framework: SSHKit::Runner::ExecuteError.</p><p>The AI found the needle in the haystack, but you ensured the pipeline failed safely and cleanly according to your framework’s standards.</p><h3>Workflow #5: System Administration and Configurations</h3><p>Moving past basic Dockerfiles, AI is incredibly useful for Linux system-level orchestration, patching, and configurations. As a systems engineer, you are often tasked with making sure that applications don’t just run, but that they integrate natively with the host operating system.</p><p>You can rapidly generate configurations for modern container engines (Docker/Podman) and systemd background services. AI makes it simple to spit out the [Container] and [Service] blocks required to get a Quadlet up and running without manually referencing documentation.</p><p><strong>The “Gotcha”: Missing the System Integration Layer</strong><br> The issue here is that AI often focuses on the isolated application and misses the host-level integration. It will confidently generate a systemd service file to run a task, but it frequently fails to correctly target and bind that task to the host’s specific background timers. If you aren’t careful, you end up spinning up detached processes or manual services when you really wanted an automated, scheduled background task.</p><p><strong>Real-World Example</strong><br>Consider setting up an automated package update service on a RHEL server. You prompt the AI for the configuration. It successfully generates the base configuration file and might tell you to just start the service.</p><p>However, if you just blindly follow its instructions to enable the base service, the updates will never run on a schedule. As the human reviewer, you have to step in and verify that the setup is explicitly linked to the exact systemd timer unit. Instead of accepting a generic start command, you know the proper syntax and unit naming scheme, manually running sudo systemctl enable --now dnf-automatic.timer to ensure the scheduled task is actually activated.</p><p>The AI wrote the configuration logic, but you ensured the system orchestration functioned correctly.</p><p>The value of a modern systems engineer isn’t in writing boilerplate from memory. Your value is in architectural strategy, security enforcement, and verifying execution context. Embracing AI doesn’t replace you; it elevates you to the role of Principal Reviewer.</p><p>Using AI in your daily workflows is fine. But in your next DevOps interview, if you are asked “Tell me how you use AI at work” how will you respond?. <a href="https://newsletter.cloudqubes.com/n/the-cloud-edge/posts/how-to-ace-the-how-do-you-use-ai-devops-interview-question">Here’s how you can answer that question confidently and efficiently differentiating yourself from the next vibe coding DevOps person</a>.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/the-principal-reviewer-how-to-actually-use-ai-in-your-daily-devops-workflow"><em>https://cloudqubes.com</em></a><em> on September 16, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cad6689a1477" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/how-to-use-ai-like-a-senior-devops-engineer-cad6689a1477">How to Use AI Like a Senior DevOps Engineer</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Much AI Should I Learn as a DevOps Engineer? (The 2026 Roadmap)]]></title>
            <link>https://medium.com/codetodeploy/how-much-ai-should-i-learn-as-a-devops-engineer-the-2026-roadmap-57e890e6c689?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/57e890e6c689</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 23:00:06 GMT</pubDate>
            <atom:updated>2026-09-16T14:07:22.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v-SHGRtl4F9NS-jh.png" /></figure><blockquote><em>💥 </em><strong><em>Master AI &amp; DevOps Skills </em></strong><br> 💥 Crack Every Tech Interview with Confidence<br> 🔥 Up to <strong>70% OFF</strong> — Limited-Time Offer<br> <a href="https://www.educative.io/unlimited?aff=xkRD"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITogvtC6mF2BUF35Qsd9pg.png" /></figure><p>Scrolling through the latest systems engineering job postings, you feel a sudden wave of panic.</p><p>Every other listing seems to demand “AI/ML expertise.” Your company’s slack channels are buzzing about Large Language Models, Generative AI, and autonomous agents. Meanwhile, you’re sitting there looking at your Terraform state files, your bash scripts, and your perfectly tuned systemd timers, wondering, <em>“Do I suddenly need a master’s degree in Machine Learning? Am I supposed to know how to build a neural network now?”</em></p><p>Take a deep breath. I have good news.</p><p>You do not need to become a Data Scientist to thrive in the AI era. In fact, if you already know how to automate deployments, manage container infrastructure, and design resilient cloud architectures, you are already holding 80% of the cards the AI industry desperately needs.</p><p>Here is the reality check: Data scientists build the engines. But those engines are useless if they crash every time they hit production traffic. Your job isn’t to build the car; your job is to build the highways, the guardrails, and the traffic control systems.</p><p>However, the systems engineering toolkit <em>is</em> evolving, and you do need to make a choice. Right now, the industry is splitting into two distinct paths:</p><ol><li><strong>AI for DevOps:</strong> Using artificial intelligence to make your current job faster, less painful, and highly automated.</li><li><strong>DevOps for AI:</strong> Building the heavy-duty infrastructure required to get machine learning models out of the lab and into the real world.</li></ol><p>If you are confused about which one you should care about-and which buzzwords you can safely ignore-you’re in the right place. Let’s break down exactly how much AI you actually need to learn, what you should focus on next, and, perhaps most importantly, what you should completely ignore.</p><h3>Path A: AI for DevOps (AIOps &amp; Developer Productivity)</h3><p>If your goal is simply to be a faster, more effective systems engineer, this is where you should spend your time. “AI for DevOps” is all about embedding artificial intelligence into your existing workflows to reduce toil, manage endless alerts, and write boilerplate code.</p><p>Think of it as having a highly enthusiastic, incredibly fast junior engineer sitting next to you. They can type at lightning speed and spot patterns in massive log files, but they still need you to review their work before hitting production.</p><p>Here is exactly what you should focus on mastering in this path.</p><h3>#1 Intelligent Observability (Killing Alert Fatigue)</h3><p>We have all been there: a single microservice fails, and suddenly your Slack channels and PagerDuty are screaming with 400 cascading alerts. Historically, engineers tried to fix this by writing massive, complex regex patterns to filter logs or manually tweaking alerting thresholds.</p><p>AIOps changes the game by using machine learning to establish a baseline of “normal” behavior and automatically correlating telemetry data. If you are scraping Prometheus metrics across 300 nodes to ensure their optimum performance, AIOps tools can ingest that massive stream, filter out the noise, and group related anomalies together. Instead of getting 50 alerts about CPU spikes, you get one unified incident report saying, “Cluster B is degraded due to node failure.”</p><p><strong>What to learn:</strong> Focus on how to feed clean data into platforms like Datadog Watchdog, AWS CloudWatch anomaly detection, or native Prometheus integrations.</p><h3>#2 AI-Augmented Workflows (Prompting for IaC)</h3><p>Writing everything from scratch is over. You should be heavily utilizing AI assistants to draft your CI/CD YAML files, boilerplate Python automation scripts, and base infrastructure configurations.</p><p>When you need a script to automate an email workflow, or you are wrapping up a complex application in Docker, AI can generate the scaffolding in seconds. It gets the syntax right, lays out the basic functions, and saves you hours of staring at documentation.</p><h3>#3 The “Trust, but Verify” Principle (Your Most Valuable Skill)</h3><p>This is the most critical skill for a modern DevOps engineer. AI is incredibly confident, but it hallucinates subtle, catastrophic infrastructure details.</p><p>Your value lies in architectural validation. If you blindly copy-paste, you are going to break things. You have to train your eye to catch what the AI misses. For example:</p><ul><li>An AI might generate Terraform code using a deprecated aws_prefix_list block, and you need to know to correct it to aws_ec2_managed_prefix_list so your VPC routing actually works.</li><li>It might hallucinate the directory structure for a custom Ansible module, forgetting that standard format dictates it must live under the collections/ansible_collections/ path.</li><li>It might write a Git status-checking shell script that looks perfect on the surface, but immediately halts upon execution because the upstream branch parameters are misaligned.</li><li>It might give you a systemd service command like sudo systemctl enable --now dnf-automatic, completely missing that the proper target is the timer unit (dnf-automatic.timer).</li></ul><p>AI does not understand your specific production environment; it only understands statistical text prediction. Being the engineer who can spot the missing user ID parameter in an API script or catch the misaligned variable before it merges is what makes you irreplaceable.</p><h3>Path B: DevOps for AI (MLOps &amp; Platform Engineering)</h3><p>If you want to be the engineer who builds the infrastructure that hosts machine learning applications, this is your track. “DevOps for AI” — aka MLOps — is all about getting AI models out of a data scientist’s Jupyter notebook and safely into a production environment.</p><p>Here is the fundamental mindset shift you need to make: Traditional CI/CD pipelines handle one thing perfectly — <strong>Code</strong>. But machine learning systems are built on a three-legged stool: <strong>Code + Data + Models</strong>. If any of those three things break or degrade, the whole system fails.</p><p>The good news? You already know the underlying mechanics. You just need to learn how to apply them to heavier, more complex workloads. Here is your bridge to becoming an MLOps engineer:</p><h3>#1 Containerization (But Heavier)</h3><p>If you already know how to package applications into Docker containers or run rootless environments with Podman, you are halfway there.</p><p>The difference in AI is scale. You aren’t just moving lightweight web servers anymore; you are managing massive, multi-gigabyte container images that require hardware acceleration to function. You need to get comfortable orchestrating these heavy workloads using Kubernetes, provisioning GPU-optimized compute instances, and configuring high-throughput storage so your containers aren’t constantly waiting for data.</p><h3>#2 Model Registries (“Git” for Algorithms)</h3><p>You know how you use Git to version control your infrastructure code? Data scientists need the exact same thing for their machine learning models. A model registry is simply a centralized repository where teams track which version of an algorithm was trained, what parameters were used, and whether it is approved for production.</p><p>Tools like MLflow, Weights &amp; Biases, or cloud-native options like AWS SageMaker are the industry standards here. Your job is to set these registries up and integrate them into the automated deployment pipeline.</p><h3>#3 Model Serving (The API Layer)</h3><p>Once a model is trained, it needs to actually <em>do</em> something.</p><p>“Serving” is the process of taking a trained model and deploying it so applications can interact with it. Sometimes this means wrapping the model in a lightweight Python framework (like FastAPI) and exposing it as a REST endpoint for real-time inference.</p><p>Other times, it means setting up a batch processing job that runs over a massive dataset at 2:00 AM. As the infrastructure engineer, you need to know how to manage the load balancing, auto-scaling, and network routing for these endpoints.</p><h3>#4 Monitoring Data Drift</h3><p>In standard DevOps, you monitor CPU usage, memory consumption, and network latency. If a server spikes to 99% CPU, a dashboard flashes red.</p><p>In MLOps, a model can fail catastrophically while your servers look perfectly healthy. This happens through “Data Drift”, when the real-world data hitting the model in production starts changing, meaning the model’s predictions become inaccurate. You will need to learn how to deploy monitoring pipelines that track the statistical behavior of incoming data and automatically trigger a retraining workflow when things drift too far out of alignment.</p><h3>The Cloud Certification Map (The 2026 Exam View)</h3><p>If you are currently mapping out your study plan for your next certification, the major cloud providers have already drawn a clear line between these two disciplines. Understanding how AWS, Azure, and Google Cloud categorize their services will help you figure out exactly which documentation you need to read.</p><p><strong>If you want MLOps (DevOps for AI):</strong> You are aiming for roles that build the pipelines for data scientists.</p><ul><li><strong>AWS:</strong> Look into the AWS Certified Machine Learning Engineer — Associate (MLA-C01). You need to deeply understand Amazon SageMaker Pipelines, how to configure inference endpoints, and how to manage data access using IAM.</li><li><strong>Azure:</strong> Focus on the Azure Machine Learning workspace and Azure MLOps architecture.</li><li><strong>Google Cloud:</strong> Your core study material will revolve around Vertex AI and Kubeflow.</li></ul><p><strong>If you want AIOps (AI for DevOps):</strong> You are aiming for advanced SysOps or DevOps Professional roles, using AI to manage complex environments.</p><ul><li><strong>AWS:</strong> Focus on services like Amazon DevOps Guru, CloudWatch anomaly detection, and CodeGuru. You will see these concepts layered into the AWS Certified DevOps Engineer — Professional exams.</li><li><strong>Azure:</strong> Study Azure Application Insights (specifically Smart Detection) and Azure Monitor’s predictive alerting.</li><li><strong>Google Cloud:</strong> Dive into the Google Cloud Operations Suite (formerly Stackdriver) and its AIOps capabilities for log analytics and error reporting.</li></ul><h3>The “Do Not Learn” List (Saving You Time)</h3><p>Just as important as knowing what to study is knowing what to completely ignore. As an infrastructure engineer, do not waste your weekends trying to become a mediocre data scientist. Leave these areas to the specialists:</p><ul><li><strong>Calculus and Advanced Statistics:</strong> Unless you find linear algebra personally fascinating, you do not need it to provision a GPU cluster or deploy an API endpoint.</li><li><strong>Algorithm Training and Tuning:</strong> You do not need to know how to adjust the hyperparameters of a neural network, write training loops in PyTorch, or build a Large Language Model from scratch.</li><li><strong>Deep Data Cleaning:</strong> If a dataset is full of null values or corrupted rows, that is an issue for the Data Engineers. Your job is to make sure the ETL (Extract, Transform, Load) pipelines have the compute power they need to run, not to write the data transformations yourself.</li></ul><h3>Conclusion: Fundamentals Are Non-Negotiable</h3><p>The single biggest mistake engineers make when transitioning into the AI era is assuming the old rules no longer apply. The reality is exactly the opposite. AI tools do not replace DevOps discipline-they expose the lack of it.</p><p>You cannot prompt your way out of a fundamentally broken system architecture. If a team lacks basic version control discipline, secure secrets management, or reliable automated testing, giving them AI tools will just allow them to deploy broken systems faster.</p><p>The industry does not need systems engineers to learn how to write algorithms. It needs systems engineers who understand that an automated pipeline is only as good as the infrastructure beneath it.</p><p>So, pick a path. Either start playing with an AIOps feature in your current monitoring stack to silence those 3:00 AM alerts, or spin up a local container and deploy a pre-trained open-source model behind an API to see how serving actually works. The tools are ready for you.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/how-much-ai-should-i-learn-as-a-devops-engineer-the-2026-roadmap"><em>https://cloudqubes.com</em></a><em> on September 12, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57e890e6c689" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/how-much-ai-should-i-learn-as-a-devops-engineer-the-2026-roadmap-57e890e6c689">How Much AI Should I Learn as a DevOps Engineer? (The 2026 Roadmap)</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Is My ECS Deployment Taking 15 Minutes? 3 Real-World Gotchas and the AWS CLI Toolkit]]></title>
            <link>https://towardsaws.com/why-is-my-ecs-deployment-taking-15-minutes-3-real-world-gotchas-and-the-aws-cli-toolkit-960e9da29f17?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/960e9da29f17</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[aws-ecs]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 02:04:08 GMT</pubDate>
            <atom:updated>2026-09-09T14:29:57.066Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kKzZxDmFjPliv1Jn.png" /></figure><p>You’ve probably been there.</p><p>You push a tiny commit to your main branch. GitHub Actions kicks off. Your unit tests pass in 20 seconds. The Docker container builds and pushes to Amazon ECR in 30 seconds. You&#39;re feeling great about your continuous deployment pipeline.</p><p>And then… you hit the ECS deploy step.</p><p>The spinner spins. Five minutes pass. Ten minutes pass. You start wondering if AWS is having an outage. At the 15-minute mark, your workflow abruptly dies with a generic timeout error:</p><pre>Error: Service ecs-flask-dev-service did not reach a steady state.<br>Process completed with exit code 1.</pre><p>Here’s the thing: <strong>AWS ECS is rarely “stuck.”</strong> In almost every case, ECS is frantically doing its job behind the scenes-trying to protect your production users from a broken deployment, failing silently, and relaunching tasks in an infinite crash loop.</p><p>In this post, we’ll walk through the <strong>top 3 gotchas</strong> that silently break containerized CI/CD pipelines on AWS ECS Fargate, why they happen, and the exact <strong>4-command AWS CLI toolkit</strong> you need to diagnose any ECS deployment issue in under 30 seconds.</p><h3>The Target Architecture</h3><p>Before we dive into the failure modes, let’s visualize what a modern, secure ECS CI/CD pipeline looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hxlstHfsz_efy8aOlUVa0g.png" /><figcaption>CICD pipeline for ECS</figcaption></figure><p>We’re running a Python Flask application served by Gunicorn on AWS ECS Fargate, with infrastructure provisioned via OpenTofu and deployments orchestrated by GitHub Actions using <strong>OpenID Connect (OIDC)</strong>.</p><p>Now, let’s break down where things go sideways.</p><h3>Gotcha #1: The OIDC “Not Authorized” Handshake Trap</h3><p>If you’re still storing long-lived AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in GitHub Secrets, you&#39;re exposing your AWS account to unnecessary risk. The gold standard today is <strong>OIDC (OpenID Connect)</strong>: GitHub Actions requests a temporary JSON Web Token (JWT) and exchanges it directly with AWS STS for short-lived credentials.</p><p>Sounds clean in theory. But on your first deployment, you often hit this brick wall:</p><pre>Assuming role with OIDC<br>Assuming role with OIDC<br>Error: Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity</pre><h3>Why does this happen?</h3><p>AWS IAM evaluates the <strong>Trust Policy</strong> on your deployment role with extreme scrutiny. Three subtle mismatches usually cause this:</p><ol><li><strong>Default Variable Oversights</strong>: When using IaC modules, the github_repo variable might default to a placeholder like my-org/my-repo. When GitHub calls from your-username/your-repo, the sub (subject) claim in the token fails the StringEquals / StringLike check.</li><li><strong>Case Sensitivity</strong>: AWS IAM conditions are case-sensitive. If your GitHub username has mixed casing (e.g. MyOrg) and your policy specifies repo:myorg/..., AWS will reject the request.</li><li><strong>Outdated Thumbprints</strong>: AWS IAM OpenID Connect providers require the root CA thumbprint of GitHub’s certificate authority. If your IaC queries GitHub’s dynamic leaf certificate rather than the official intermediate CA thumbprints, AWS STS cannot verify the token signature.</li></ol><h3>The Fix</h3><p>In your OpenTofu/Terraform OIDC module, use GitHub’s official root thumbprints and make your sub condition resilient:</p><pre>resource &quot;aws_iam_openid_connect_provider&quot; &quot;github&quot; {<br>  url             = &quot;https://token.actions.githubusercontent.com&quot;<br>  client_id_list  = [&quot;sts.amazonaws.com&quot;]<br>  thumbprint_list = [<br>    &quot;6938fd4d98bab03faadb97b34396831e3780aea1&quot;,<br>    &quot;1c58a3a8518e8759bf075b76b750d4f2df264fcd&quot;<br>  ]<br>}<br><br>resource &quot;aws_iam_role&quot; &quot;github_actions&quot; {<br>  name = &quot;ecs-github-deploy-role&quot;<br><br>  assume_role_policy = jsonencode({<br>    Version = &quot;2012-10-17&quot;<br>    Statement = [{<br>      Effect = &quot;Allow&quot;<br>      Principal = {<br>        Federated = 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>        }<br>        StringLike = {<br>          &quot;token.actions.githubusercontent.com:sub&quot; = &quot;repo:your-github-username/your-repo:*&quot;<br>        }<br>      }<br>    }]<br>  })<br>}</pre><blockquote><strong><em>Pro Tip:</em></strong><em> In your </em><em>.github/workflows/deploy-app.yml, always specify </em><em>permissions: id-token: write on the specific </em><strong><em>job level</em></strong><em>, not just the root workflow level, to ensure the runner has permission to mint the JWT.</em></blockquote><h3>Gotcha #2: The Task Definition Family vs. Service Name Mixup</h3><p>Once your authentication works, the pipeline needs to fetch the latest Task Definition, swap out the container image tag with the new Git commit SHA, and register a new revision.</p><p>That’s when you see this:</p><pre>Run aws ecs describe-task-definition \<br>  --task-definition ecs-flask-dev-service \<br>  --query taskDefinition &gt; task-definition.json<br><br>aws: [ERROR]: An error occurred (ClientException) when calling DescribeTaskDefinition: <br>Unable to describe task definition.</pre><h3>Why does this happen?</h3><p>It’s easy to accidentally pass the <strong>ECS Service Name</strong> ( ecs-flask-dev-service) to --task-definition.</p><p>AWS ECS treats Task Definitions and Services as completely distinct entities. --task-definition expects either the <strong>family name</strong> ( ecs-flask-dev-task) or a full ARN ( arn:aws:ecs:...:task-definition/ecs-flask-dev-task:12).</p><h3>The Fix</h3><p>Declare explicit environment variables in your workflow:</p><pre>env:<br>  ECS_SERVICE: &quot;ecs-flask-dev-service&quot;<br>  ECS_TASK_DEFINITION: &quot;ecs-flask-dev-task&quot;  # Family name, not service name!<br><br>steps:<br>  - name: Download Current ECS Task Definition<br>    run: |<br>      aws ecs describe-task-definition \<br>        --task-definition ${{ env.ECS_TASK_DEFINITION }} \<br>        --query taskDefinition &gt; task-definition.json</pre><h3>Gotcha #3: The Internal Port Mismatch Loop (The 15-Minute Timeout)</h3><p>This is the king of all ECS deployment gotchas.</p><p>Your image builds. The new task registers. The deployment starts. And then… you wait. And wait.</p><pre>(service ecs-flask-dev-service) (task 8beb6986...) (port 5000) is unhealthy in (target-group ecs-flask-dev-tg) due to (reason Health checks failed).<br>(service ecs-flask-dev-service) has stopped 1 running tasks: (task 8beb6986...).<br>(service ecs-flask-dev-service) has started 1 tasks: (task c7d9961e...).</pre><h3>Why does this happen?</h3><p>Look at what happens across your stack during a rolling deployment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9o_VDPp-CofSyrbHGjDGw.png" /></figure><p>If your Dockerfile has:</p><pre>CMD [&quot;gunicorn&quot;, &quot;--chdir&quot;, &quot;src&quot;, &quot;--bind&quot;, &quot;0.0.0.0:5001&quot;, &quot;app:app&quot;]</pre><p>…while your OpenTofu configuration has:</p><pre>resource &quot;aws_lb_target_group&quot; &quot;app&quot; {<br>  port        = 5000<br>  target_type = &quot;ip&quot;<br>  ...<br>}</pre><p>The container starts up perfectly, boots Gunicorn on 5001, and sits there happily. Meanwhile, the Application Load Balancer probes port 5000, gets Connection Refused, marks the task unhealthy after 2 minutes, and orders ECS to kill it.</p><p>ECS obliges, terminates the container, launches another one with the same image, and the loop repeats until your CI/CD job hits its hard timeout.</p><h3>The Fix</h3><p>Ensure strict alignment across all 4 touchpoints:</p><ol><li><strong>Application</strong>: gunicorn --bind 0.0.0.0:5000</li><li><strong>Dockerfile</strong>: EXPOSE 5000</li><li><strong>ECS Task Definition</strong>: portMappings = [{ containerPort = 5000 }]</li><li><strong>ALB Target Group</strong>: port = 5000</li></ol><h3>The 4-Command AWS CLI Troubleshooting Toolkit</h3><p>When your deployment is running slowly or failing, don’t guess in the AWS Web Console. Run these 4 commands from your terminal:</p><h3>1. View Real-Time Service Events</h3><pre>aws ecs describe-services \<br>  --cluster ecs-flask-dev-cluster \<br>  --services ecs-flask-dev-service \<br>  --region us-east-1 \<br>  --query &#39;services[0].events[:6].[createdAt,message]&#39; \<br>  --output table</pre><ul><li><strong>What it tells you</strong>: Look for messages like is unhealthy in target-group due to (Health checks failed) or has stopped 1 running tasks.</li></ul><h3>2. Inspect Target Group Health</h3><pre># Get Target Group ARN<br>TG_ARN=$(aws elbv2 describe-target-groups \<br>  --names ecs-flask-dev-tg \<br>  --region us-east-1 \<br>  --query &#39;TargetGroups[0].TargetGroupArn&#39; \<br>  --output text)<br><br># Check target health states<br>aws elbv2 describe-target-health \<br>  --target-group-arn $TG_ARN \<br>  --region us-east-1 \<br>  --output table</pre><ul><li><strong>What it tells you</strong>: Shows whether your container IPs are initial, healthy, or unhealthy with specific error reasons (Target.FailedHealthChecks vs Target.ResponseCodeMismatch).</li></ul><h3>3. Stream Live CloudWatch Container Logs</h3><pre>aws logs tail /ecs/ecs-flask-dev --region us-east-1 --since 10m</pre><ul><li><strong>What it tells you</strong>: See the exact startup output of your app: text [INFO] Starting gunicorn 22.0.0 [INFO] Listening at: <a href="http://0.0.0.0:5000/">http://0.0.0.0:5000</a></li></ul><h3>4. Check Rolling Deployment Progress</h3><pre>aws ecs describe-services \<br>  --cluster ecs-flask-dev-cluster \<br>  --services ecs-flask-dev-service \<br>  --region us-east-1 \<br>  --query &#39;services[0].deployments[*].{Status:status,Rollout:rolloutState,Desired:desiredCount,Running:runningCount,Pending:pendingCount}&#39; \<br>  --output table</pre><ul><li><strong>What it tells you</strong>: Shows whether your deployment is in IN_PROGRESS or COMPLETED state and whether tasks are shifting from old to new revisions.</li></ul><h3>How to Cut Deployment Times from 5 Minutes to 45 Seconds</h3><p>Once your containers are healthy, you might still notice that rolling updates take 4–5 minutes per release. You can optimize this dramatically with two configuration tweaks:</p><h3>1. Tune ALB Target Group Timers</h3><p>By default, ALBs use conservative timers (30-second health check intervals and 300-second connection draining). For stateless web APIs, you can safely tune these down:</p><pre>resource &quot;aws_lb_target_group&quot; &quot;app&quot; {<br>  port        = 5000<br>  protocol    = &quot;HTTP&quot;<br>  target_type = &quot;ip&quot;<br><br>  health_check {<br>    path                = &quot;/health&quot;<br>    interval            = 15  # Check every 15s instead of 30s<br>    timeout             = 5<br>    healthy_threshold   = 2   # Mark healthy after 2 successes (30s)<br>    unhealthy_threshold = 2<br>  }<br><br>  deregistration_delay = 15   # Drain old connections in 15s instead of 300s<br>}</pre><h3>2. Enable the ECS Deployment Circuit Breaker</h3><p>If a bad container image ever slips through into production, you don’t want your pipeline hanging for 15 minutes. Enable the native circuit breaker:</p><pre>resource &quot;aws_ecs_service&quot; &quot;app&quot; {<br>  name            = &quot;ecs-flask-dev-service&quot;<br>  cluster         = aws_ecs_cluster.main.id<br>  task_definition = aws_ecs_task_definition.app.arn<br>  desired_count   = 2<br><br>  deployment_minimum_healthy_percent = 100<br>  deployment_maximum_percent         = 200<br><br>  deployment_circuit_breaker {<br>    enable   = true<br>    rollback = true<br>  }<br>}</pre><p>With deployment_circuit_breaker enabled, ECS automatically detects task startup failures, cancels the deployment, and rolls back to the previous working image in under <strong>60 seconds</strong>.</p><h3>Takeaways</h3><ol><li><strong>Security First</strong>: Eliminate long-lived IAM keys from GitHub Secrets. Use GitHub OIDC with scoped trust policies (repo:&lt;user&gt;/&lt;repo&gt;:*).</li><li><strong>Zero-Downtime Math</strong>: minimum_healthy_percent = 100 and maximum_percent = 200 ensures ECS launches new containers and verifies their health <em>before</em> draining any old traffic.</li><li><strong>Prevent State Overwrites</strong>: When managing ECS in OpenTofu/Terraform, always add lifecycle { ignore_changes = [task_definition, desired_count] } to your service definition so infrastructure runs don&#39;t revert new application deployments.</li><li><strong>Debug with the CLI First</strong>: When a deployment hangs, check describe-services events and describe-target-health immediately. The logs never lie.</li></ol><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/why-is-my-ecs-deployment-taking-15-minutes-3-real-world-gotchas-and-the-aws-cli-toolkit"><em>https://cloudqubes.com</em></a><em> on September 4, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=960e9da29f17" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/why-is-my-ecs-deployment-taking-15-minutes-3-real-world-gotchas-and-the-aws-cli-toolkit-960e9da29f17">Why Is My ECS Deployment Taking 15 Minutes? 3 Real-World Gotchas and the AWS CLI Toolkit</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use AWS CLI like a Pro: The Ultimate DevOps Guide to JMESPath for output formatting]]></title>
            <link>https://medium.com/codetodeploy/how-to-use-aws-cli-like-a-pro-the-ultimate-devops-guide-to-jmespath-for-output-formatting-18b1b5613b33?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/18b1b5613b33</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-cli]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 02:47:30 GMT</pubDate>
            <atom:updated>2026-08-27T12:31:44.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ag1HK8eFBrNA4SSq.png" /></figure><p>You are in the middle of troubleshooting an incident.</p><p>You run aws ec2 describe-instances and hit enter.<br> Your terminal is instantly flooded with a 10,000-line wall of JSON.</p><blockquote><em>💥 </em><strong><em>Master AI &amp; Tech Skills </em></strong><br> 💥 Crack Every Tech Interview with Confidence<br> 🔥 Up to <strong>70% OFF</strong> — Limited-Time Offer<br> <a href="https://www.educative.io/unlimited?aff=xkRD"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITogvtC6mF2BUF35Qsd9pg.png" /></figure><p>To find the one piece of data in this wall of text — say, a list of Instance IDs — you could do something like this.</p><pre>aws ec2 describe-instances | grep InstanceId | awk -F &#39;&quot;&#39; &#39;{print $4}&#39; | tr -d &#39;,&#39;</pre><p>It works. But this bash script hacking is suboptimal. The moment AWS decides to change the order of their JSON keys, or an unexpected nested array appears, this will not work. So, if you intend to save this for reuse, you may get unexpected results in future.</p><p>Also, if you want to print their availability zones alongside the instance IDs , how would you do this with grep and awk? You need to write a whole bash script. But it is inefficient. And may be dangerous in production.</p><p>So, let’s stop treating AWS API responses like plain text files and start treating them like the queryable databases they are.</p><p>Enter <strong>JMESPath</strong>.</p><p>JMESPath is a query language for JSON, and it is built natively into the AWS CLI via the --query parameter. It allows you to parse, filter, and reshape complex JSON payloads safely and programmatically, without ever leaving the AWS CLI or relying on external tools like jq.</p><h3>The Golden Rule of the AWS CLI: Filters vs. Queries</h3><p>Before we write a single line of JMESPath, we need to establish the most important rule of the AWS CLI: understanding the boundary between the AWS API (Server-side) and your local machine (Client-side).</p><ul><li><strong>Server-Side (</strong><strong>--filters):</strong> This is you telling the AWS API, <em>&quot;Only send me data that matches these rules.&quot;</em> You use filters to reduce the amount of data traveling over the network. For example, filtering for instances only in us-east-1.</li><li><strong>Client-Side (</strong><strong>--query):</strong> This is you using JMESPath to shape the data <em>after</em> it arrives on your machine. You use queries to extract exactly the fields you want from the payload AWS sent back.</li></ul><p><strong>Think of it like this:</strong> --filters is asking the librarian to only bring you books about cloud computing. --query is you taking those books to your desk and extracting only the exact paragraphs you care about into a neat table.</p><h3>What You Will Learn in This Deep Dive</h3><p>If you master JMESPath, you will write cleaner automation, troubleshoot faster, and build resilient scripts that don’t break when APIs evolve. In this guide, we are going completely down the rabbit hole. We will cover:</p><ol><li><strong>Navigating the JSON Tree:</strong> How to traverse dictionaries and arrays.</li><li><strong>Shaping the Output:</strong> The critical difference between flattening and projecting data.</li><li><strong>Filtering &amp; Logic:</strong> Using conditionals (&gt;, &lt;, ==) and logical operators.</li><li><strong>Built-In Functions:</strong> Sorting, string matching, and counting resources dynamically.</li><li><strong>Unpacking AWS Tags:</strong> How to defeat the final boss of AWS JSON parsing.</li><li><strong>Quoting Gotchas:</strong> Why your Mac scripts fail on Windows, and how to fix them.</li></ol><p>Put away awk and grep. Let&#39;s get started.</p><h3>Setting Up Your Sandbox (Optional but Recommended)</h3><p>Before you start writing complex JMESPath queries, you need to fix your feedback loop.</p><p>When you are learning, you will make syntax errors. If your workflow is to run aws ec2 describe-instances --query &#39;...&#39; over and over, you are making a full network round-trip to the AWS API every time you hit enter. Not only is this painfully slow, but in large environments, it can trigger AWS rate limiting ( ThrottlingException).</p><p><strong>The Trick: Test Locally First</strong></p><p>Run your base AWS CLI command once without any queries, and dump the raw JSON output into a local file:</p><pre>aws ec2 describe-instances &gt; data.json</pre><p>Now you have a static dataset to play with. To run JMESPath queries against this local file, you can install jp, the official command-line tool for JMESPath.</p><h3>Installing jp</h3><p>Since jp is written in Go, it is a lightweight, standalone binary that works everywhere without requiring Python or Node.js.</p><p><strong>macOS:</strong></p><pre>brew install jmespath/jmespath/jp</pre><p><strong>Linux:</strong></p><pre>sudo wget https://github.com/jmespath/jp/releases/latest/download/jp-linux-amd64 -O /usr/local/bin/jp<br>sudo chmod +x /usr/local/bin/jp</pre><p><strong>Windows:</strong><br> Download the latest jp.exe from the <a href="https://github.com/jmespath/jp/releases">official GitHub releases page</a> and add it to your System PATH.</p><p>Once jp is installed you can test queries with your saved json without touching the AWS API:</p><pre>jp -f data.json &#39;Reservations[0].Instances[0].InstanceId&#39;</pre><p>Think of an AWS JSON response as a filesystem. You have folders (Dictionaries/Objects) and ordered lists (Arrays). To find the data you want, you just need to know how to traverse the path.</p><h3>Dictionaries and Dot Notations</h3><p>When dealing with a JSON object (data wrapped in curly braces { }), you use <strong>dot notation</strong> to go a level deeper. It works exactly like calling properties in Python or JavaScript.</p><p>Let’s say you queried an IAM user and got this payload:</p><pre>$ aws iam get-user --user-name cloud_app<br>{<br>    &quot;User&quot;: {<br>        &quot;Path&quot;: &quot;/&quot;,<br>        &quot;UserName&quot;: &quot;liyum_app&quot;,<br>        &quot;UserId&quot;: &quot;AIDA54WIF7N7EMBNCM6G&quot;,<br>        &quot;Arn&quot;: &quot;arn:aws:iam::XXYYZZ:user/cloud_app&quot;,<br>        &quot;CreateDate&quot;: &quot;2024-10-07T09:11:03+00:00&quot;,<br>        &quot;Tags&quot;: [<br>            {<br>                &quot;Key&quot;: &quot;SDMK092CD&quot;,<br>                &quot;Value&quot;: &quot;route_53&quot;<br>            }<br>        ]<br>    }<br>}</pre><p>To extract just the user ID, you step through the keys:</p><pre>$ aws iam get-user --user-name liyum_app --query &#39;User.UserId&#39;<br>&quot;AIDA54WIF7N736SBNCM6G&quot;</pre><h3>Arrays and Indexing</h3><p>When dealing with arrays — a list of items (data wrapped in square brackets [ ]) - dot notation won&#39;t work. You have to tell JMESPath <em>which</em> item in the list you want using <strong>zero-based indexing</strong>.</p><p>Listing all security groups return an array of SecurityGroups.</p><pre>$ aws ec2 describe-security-groups<br>{<br>    &quot;SecurityGroups&quot;: [<br>        {<br>            &quot;GroupId&quot;: &quot;sg-0f36301959195d034&quot;,<br>            .<br>            .<br>            .<br>        },<br>        {<br>            &quot;GroupId&quot;: &quot;sg-0f36301959195d035&quot;,<br>            .<br>            .<br>            .<br>        }<br>        {<br>            &quot;GroupId&quot;: &quot;sg-0f36301959195d036&quot;,<br>            .<br>            .<br>            .<br>        },<br>}</pre><p>To grab the GroupId of the very first security group in that list, you combine indexing with dot notation:</p><pre>$ aws ec2 describe-security-groups --query &#39;SecurityGroups[0].GroupId&#39;<br>&quot;sg-0f36301959195d034&quot;</pre><h3>The AWS Wrapper Problem: Why --query &#39;Instances&#39; Fails</h3><p>This brings us to the biggest stumbling block for beginners. If you run aws ec2 describe-instances, you might assume you can just query the Instances directly. But if you try --query &#39;Instances&#39;, AWS returns null.</p><p>Why? Because of <strong>The EC2 Wrapper</strong>.</p><p>Historically, AWS allowed you to launch multiple instances in a single request. To track this, the API wraps your instances inside a Reservations array. Your instances are actually buried two levels deep:</p><pre>{<br>  &quot;Reservations&quot;: [<br>    {<br>      &quot;ReservationId&quot;: &quot;r-12345&quot;,<br>      &quot;Instances&quot;: [<br>        { &quot;InstanceId&quot;: &quot;i-0abc123&quot; },<br>        { &quot;InstanceId&quot;: &quot;i-0def456&quot; }<br>      ]<br>    }<br>  ]<br>}</pre><p>To get the Instance ID of the very first instance inside the very first reservation, you have to traverse the entire path with indexes:</p><pre>aws ec2 describe-instances --query &#39;Reservations[0].Instances[0].InstanceId&#39;</pre><p>But what if you want <em>all</em> instances, not just the first one? You can’t just hardcode [0]. You need a way to strip away that Reservations wrapper and pull out all the instances at once.</p><p>That is where <strong>Flattening and Projections</strong> come in.</p><h3>Level 2: Shaping the Output (Flattening and Projections)</h3><p>In the last section, we hit a wall. AWS wraps EC2 instances inside a Reservations array. If you want to fetch <em>all</em> your instances, you can&#39;t just hardcode an index like Reservations[0]. You need to iterate through every reservation and pull out the instances inside them.</p><p>To do this, we use the wildcard * or the flatten operator [].</p><h3>The Flattening Operators: [*] vs []</h3><p>Let’s look at what happens if you use the standard list projection [*]:</p><pre>aws ec2 describe-instances --query &#39;Reservations[*].Instances[*].InstanceId&#39;</pre><p>If you run this, AWS gives you a deeply nested nightmare: an array containing arrays of Instance IDs. Because [*] <strong>preserves the shape</strong> of the original JSON, it keeps the instances neatly boxed inside their respective reservations. If you try to pipe this into a bash while loop, it will break immediately.</p><p>Here is where the magic happens. Replace the [*] with the flatten operator []:</p><pre>aws ec2 describe-instances --query &#39;Reservations[].Instances[].InstanceId&#39;</pre><p>The [] operator says: <em>&quot;Iterate through this array, but crush the walls down.&quot;</em> It takes all those separate instance arrays and flattens them into a single, continuous, one-dimensional list of Instance IDs.</p><p>Whenever you are dealing with paginated or wrapped AWS resources (like EC2 instances, Route53 record sets, or CloudWatch metrics), the flatten operator [] is your best friend.</p><h3>Shaping the Data (Projections)</h3><p>Now that you have a flat list of instances, you probably want more than just the Instance ID. What if you want the ID, the instance type, and the private IP address?</p><p>Instead of asking JMESPath for a single string, you ask it for a <strong>Projection</strong>. You can project your data into two formats: Lists or Hashes.</p><h4>1. Multi-Select Lists (Perfect for Bash Scripting)</h4><p>If you wrap your desired keys in square brackets [ ], JMESPath returns a raw array of values for every resource.</p><pre>aws ec2 describe-instances \<br>  --query &#39;Reservations[].Instances[].[InstanceId, InstanceType, PrivateIpAddress]&#39; \<br>  --output text</pre><p><strong>Why this rocks.</strong> When you combine a multi-select list with --output text, AWS strips away all the JSON brackets and commas, leaving you with clean, tab-separated columns. You can instantly pipe this output directly into an awk command or a bash read loop without any messy parsing.</p><h4>2. Multi-Select Hashes (Perfect for Human Eyes)</h4><p>If you wrap your keys in curly braces { }, you can create a brand new, custom JSON object. You can even alias the keys to make them easier to read.</p><pre>aws ec2 describe-instances \<br>  --query &#39;Reservations[].Instances[].{ID: InstanceId, Size: InstanceType, IP: PrivateIpAddress}&#39; \<br>  --output table</pre><p>When you combine a multi-select hash with --output table, the AWS CLI uses your custom keys (ID, Size, IP) to generate a beautifully formatted ASCII table right in your terminal. This is the ultimate troubleshooting flex during an incident response call.</p><p>Now we can extract exactly what we want and format it perfectly. But what if we only want to see instances that are currently running, or volumes that are larger than 100GB? For that, we need logic.</p><h3>Level 3: Filtering and Logic</h3><p>Flattening and projecting data is great, but we rarely want <em>all</em> the data. During an incident, you don’t care about the 500 instances that are stopped; you only care about the 3 that are currently running.</p><p>To filter arrays, JMESPath uses the ? operator. Think of it as a WHERE clause in SQL.</p><h3>Conditional Filtering</h3><p>To filter a list, you open your square brackets, add the ? symbol, and write your condition.</p><p>Let’s filter our flattened EC2 list to only show running instances:</p><pre>aws ec2 describe-instances \<br>  --query &#39;Reservations[].Instances[?State.Name==`running`].InstanceId&#39;</pre><p><em>Note on quoting: Because the entire query is wrapped in single quotes for the bash shell (</em><em>&#39; &#39;), we use backticks (``</em><em>) around the wordrunning`. In JMESPath, backticks denote a literal JSON string. We will dive deeper into quoting gotchas later, but for now, just remember to use backticks for strings inside your queries.</em></p><h3>Numeric and Logical Operators (&amp;&amp;, ||)</h3><p>You aren’t limited to basic string matching. JMESPath supports standard comparators (&gt;, &lt;, !=) and logical operators (AND &amp;&amp;, OR ||).</p><p>Let’s look at a classic CloudOps cost-optimization scenario. You want to find all EBS volumes that are unattached ( available) AND are larger than 100GB so you can delete them.</p><pre>aws ec2 describe-volumes \<br>  --query &#39;Volumes[?State==`available` &amp;&amp; Size &gt; `100`].{ID: VolumeId, Size: Size}&#39; \<br>  --output table</pre><p>Instead of pulling down data on thousands of volumes and writing a complex awk script to evaluate the sizes, JMESPath evaluates the logic natively before the text ever prints to your terminal.</p><h3>Level 4: Built-In Functions (The Secret Weapon)</h3><p>JMESPath includes a robust set of functions that let you manipulate data dynamically.</p><p>Here are the three functions you will use most often in DevOps architectures.</p><h3>1. Counting with length()</h3><p>How many Elastic IPs are currently allocated in your account? Usually, an engineer will list the IPs and pipe the output to wc -l. There is a better way. You can pass an array directly into the length() function:</p><pre>aws ec2 describe-addresses --query &#39;length(Addresses)&#39;</pre><p>This returns a single integer. It is lightning-fast and completely eliminates the risk of wc -l accidentally counting blank lines or table headers.</p><h3>2. Sorting with sort_by()</h3><p>Let’s say you are writing an infrastructure-as-code automation pipeline, and you need to programmatically fetch the exact ImageId of the absolute latest Amazon Linux 2023 AMI.</p><p>AWS might return 50 different AMIs. You can use sort_by() to order them by their CreationDate in ascending order. Since sort_by puts the oldest first and the newest last, you can use negative indexing [-1] to grab the very last item in the sorted array:</p><pre>aws ec2 describe-images \<br>  --owners amazon \<br>  --filters &quot;Name=name,Values=al2023-ami-2023.*-x86_64&quot; \<br>  --query &#39;sort_by(Images, &amp;CreationDate)[-1].ImageId&#39; \<br>  --output text</pre><p><em>Notice the </em><em>&amp; before </em><em>CreationDate. In JMESPath, </em><em>&amp; represents an expression reference, telling the sort function which key to evaluate against.</em></p><h3>3. String Matching (starts_with, contains)</h3><p>Sometimes you need to find resources based on naming conventions rather than exact matches. If you need to locate all S3 buckets that belong to your production environment (assuming they follow a prod- naming standard), you can evaluate them using starts_with() inside a filter block:</p><pre>aws s3api list-buckets \<br>  --query &#39;Buckets[?starts_with(Name, `prod-`)].Name&#39;</pre><p>At this point, you can navigate nested JSON, reshape it into tables, filter it with logic, and process it with functions. You are operating at a senior level.</p><p>But there is one final boss standing between you and complete AWS CLI mastery, and it breaks almost everyone’s scripts: <strong>AWS Tags</strong>.</p><h3>Unpacking AWS Tags</h3><p>You can filter arrays, you can sort AMIs by date, and you can project data into beautiful ASCII tables. But eventually, your manager will ask for a simple report: <em>“Get me a list of all running instances and their names.”</em></p><p>You run your query, and suddenly everything falls apart.</p><p>Why? Because AWS does not store tags the way a normal developer would. A sane JSON structure for a tagged resource would look like a simple dictionary:</p><pre>&quot;Tags&quot;: {<br>  &quot;Environment&quot;: &quot;Production&quot;,<br>  &quot;Name&quot;: &quot;Web-Server-01&quot;<br>}</pre><p>If AWS did this, extracting the name would be as easy as querying Tags.Name. But they don&#39;t. Because AWS needs to enforce strict schema validation across their API, they format tags as an array of key-value objects:</p><pre>&quot;Tags&quot;: [<br>  { &quot;Key&quot;: &quot;Environment&quot;, &quot;Value&quot;: &quot;Production&quot; },<br>  { &quot;Key&quot;: &quot;Name&quot;, &quot;Value&quot;: &quot;Web-Server-01&quot; }<br>]</pre><p>To get the name of your server, you can’t just use dot notation. You have to search through the array, find the specific object where the Key is equal to &quot;Name&quot;, and then extract its Value.</p><p>To do this, we need to introduce a new tool: the JMESPath Pipe Operator.</p><h3>The Pipe Operator (|)</h3><p>Do not confuse this with a bash pipe. Inside the single quotes of your --query string, the | symbol acts as a JMESPath projection evaluator. It takes the result of the expression on the left and feeds it as the input to the expression on the right.</p><p>This is crucial because when we filter the Tags array, the result is still an array-and we need to drill down into it.</p><p>This is the exact syntax you need to memorize (or save to your snippets). Let’s break down exactly how it defeats the AWS tag structure, step by step.</p><p><strong>Step 1: The Filter</strong><br>Tags[?Key==Name]<br> First, we look at the Tags array and use the ? operator to filter it. We are telling JMESPath: <em>&quot;Return only the dictionaries inside this array where the &#39;Key&#39; equals &#39;Name&#39;.&quot;</em><br> Because filters always return an array, the output of this step looks like this:<br>[ { &quot;Key&quot;: &quot;Name&quot;, &quot;Value&quot;: &quot;Web-Server-01&quot; } ]</p><p><strong>Step 2: The Pipe</strong><br>|<br> We take that filtered array and pipe it to the right side of our query so we can manipulate it further.</p><p><strong>Step 3: The Extraction</strong><br>[0].Value<br> Because our piped data is an array containing a single object, we use[0] to grab that first object. Now that we have the dictionary itself, we use dot notation .Value to extract the final string.</p><h3>Putting It All Together</h3><p>Let’s combine this with everything we’ve learned in the previous sections. We are going to flatten our EC2 instances, filter only the running ones, and create a custom table that projects the Instance ID, the Private IP, and the value of the “Name” tag.</p><pre>aws ec2 describe-instances \<br>  --query &#39;Reservations[].Instances[?State.Name==`running`].{ID: InstanceId, IP: PrivateIpAddress, ServerName: Tags[?Key==`Name`]|[0].Value}&#39; \<br>  --output table</pre><p>If you can write and understand that query, you have officially mastered the AWS CLI. You are extracting deeply nested, inconsistently structured data, reshaping it, and formatting it for human readability in a single, native command.</p><p>But before you drop these scripts into your team’s CI/CD pipelines, there is one last trap you need to avoid: OS-specific quoting rules.</p><h3>Quoting Gotchas: Why Your Script Fails on Windows</h3><p>Picture this: You just spent an hour crafting the perfect, elegant JMESPath query on your Mac. You drop it into your team’s shared documentation. The next day, a teammate running Windows PowerShell copies and pastes your command, and their terminal explodes with syntax errors.</p><p>Welcome to quoting hell.</p><p>The AWS CLI uses the underlying operating system’s shell to interpret your commands <em>before</em> they are sent to the JMESPath engine. Because Bash (Linux/macOS) and PowerShell (Windows) handle quotes and escape characters completely differently, a query that works flawlessly on one OS will often crash on the other.</p><p>Here are the rules of engagement to ensure your scripts actually work for everyone on your team.</p><h3>The Linux &amp; macOS Rule (Bash/Zsh)</h3><p>On Unix-based systems, you want to prevent your shell from trying to interpret or expand anything inside your query.</p><ul><li><strong>Outer Query:</strong> Wrap the entire --query argument in <strong>single quotes</strong> (&#39; &#39;).</li><li><strong>Inner Literal Strings:</strong> Use <strong>backticks</strong> () to denote literal strings inside your JMESPath expression.</li></ul><p><strong>The Mac/Linux Standard:</strong></p><pre>aws ec2 describe-instances \<br>  --query &#39;Reservations[].Instances[?State.Name==`running`].InstanceId&#39;</pre><h3>The Windows Rule (PowerShell)</h3><p>If you run that exact command in PowerShell, it fails. Why? Because in PowerShell, the backtick (``) is the escape character (just like the backslash` is in Bash).</p><p>When you run running in PowerShell, the shell swallows the backticks before the AWS CLI even sees them. The JMESPath engine ends up receiving the bare word running instead of a quoted string, causing a parsing error.</p><p>To fix this for Windows users, you must flip your quote structure:</p><ul><li><strong>Outer Query:</strong> Wrap the entire --query argument in <strong>double quotes</strong> (&quot; &quot;).</li><li><strong>Inner Literal Strings:</strong> Use <strong>single quotes</strong> (&#39; &#39;) for the literal strings inside your expression.</li></ul><p><strong>The PowerShell Standard:</strong></p><pre>aws ec2 describe-instances `<br>  --query &quot;Reservations[].Instances[?State.Name==&#39;running&#39;].InstanceId&quot;</pre><p><em>Note: We also swapped the bash line-continuation backslash </em><em>\ for the PowerShell line-continuation backtick ``` at the end of the first line.</em></p><h3>The Cross-Platform CI/CD Strategy</h3><p>If you are writing automation scripts for a CI/CD pipeline (like GitHub Actions or GitLab CI), always explicitly define the shell environment (e.g., shell: bash) for your steps. This guarantees that your Linux-style quoting will execute correctly, regardless of the underlying runner&#39;s default OS.</p><p>When writing runbooks or internal documentation, it is a massive professional courtesy to either standardise your team on Bash (via WSL or Git Bash on Windows) or provide both the Bash and PowerShell syntax for complex queries.</p><h3>The DevOps Playbook: 4 Real-World Scenarios</h3><p>Theory is great, but execution is what matters. Here is the CloudQubes playbook-four highly practical, copy-paste ready queries that solve actual engineering problems.</p><p><em>Note: These snippets are formatted for Linux/macOS (Bash). If you are using Windows PowerShell, remember to swap the outer single quotes for double quotes, and the inner backticks for single quotes.</em></p><h3>1. Cost Optimization: Hunting Zombie Volumes</h3><p>When instances are terminated, engineers often forget to check the box to delete the associated storage. Over time, these unattached EBS volumes quietly bleed your cloud budget. This query finds all volumes in the available state (meaning they aren&#39;t attached to anything) and outputs their ID, size, and type into a clean table.</p><pre>aws ec2 describe-volumes \<br>  --query &#39;Volumes[?State==`available`].{ID: VolumeId, Size: Size, Type: VolumeType}&#39; \<br>  --output table</pre><p><em>Pro-Tip: You can pipe this directly into an </em><em>aws ec2 delete-volume loop once you verify the output.</em></p><h3>2. Security Audit: Finding Open SSH Ports</h3><p>Leaving port 22 open to the world ( 0.0.0.0/0) is a major security violation. Instead of clicking through hundreds of security groups in the AWS console, this query drills into the nested IpPermissions array to find the exact Group IDs violating this rule.</p><pre>aws ec2 describe-security-groups \<br>  --query &#39;SecurityGroups[?IpPermissions[?ToPort==`22` &amp;&amp; IpRanges[?CidrIp==`0.0.0.0/0`]]].GroupId&#39; \<br>  --output text</pre><h3>3. Automation Pipeline: Fetching the Latest AMI</h3><p>Hardcoding AMI IDs in your CI/CD pipelines or Packer templates is a bad practice because AMIs are regional and constantly updated. This query fetches all Amazon Linux 2023 images owned by AWS, sorts them chronologically by creation date, and grabs the single newest ImageId.</p><pre>aws ec2 describe-images \<br>  --owners amazon \<br>  --filters &quot;Name=name,Values=al2023-ami-2023.*-x86_64&quot; \<br>  --query &#39;sort_by(Images, &amp;CreationDate)[-1].ImageId&#39; \<br>  --output text</pre><h3>4. Operations: The Ultimate EC2 Inventory</h3><p>This is the holy grail for your daily operations. It flattens the EC2 reservations, filters out stopped or terminated instances, and builds a custom table showing exactly what you need during an incident: the Instance ID, the Private IP, and the value of the “Name” tag.</p><pre>aws ec2 describe-instances \<br>  --query &#39;Reservations[].Instances[?State.Name==`running`].{ID: InstanceId, IP: PrivateIpAddress, ServerName: Tags[?Key==`Name`]|[0].Value}&#39; \<br>  --output table</pre><h3>Wrapping up</h3><p>When you first encounter JMESPath, the syntax can feel like a steep learning curve. But think about the alternative: writing brittle, multi-stage bash pipelines that break the second AWS adds a new key to their JSON responses.</p><p>By shifting the heavy lifting away from grep and awk and into the native AWS API client, you build tooling that is robust, predictable, and incredibly fast. You stop being someone who just runs commands, and you start acting like an architect who controls the data flow.</p><p>The next time you find yourself reaching for a text manipulation tool to parse an AWS response, stop. Build the query natively. Your future self (and your team’s on-call engineers) will thank you.</p><p><strong>Over to you:</strong> What is the most complex data extraction problem you’ve solved using the AWS CLI? Drop your best JMESPath queries in the comments below.</p><p>If you found this deep dive useful, make sure you are subscribed to <a href="https://newsletter.cloudqubes.com/">The Cloud Edge</a> the complimentary newsletter from CloudQubes where we break down real-world cloud engineering techniques every week.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/how-to-use-aws-cli-like-a-pro-the-ultimate-devops-guide-to-jmespath-for-output-formatting"><em>https://cloudqubes.com</em></a><em> on August 27, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18b1b5613b33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/how-to-use-aws-cli-like-a-pro-the-ultimate-devops-guide-to-jmespath-for-output-formatting-18b1b5613b33">How to use AWS CLI like a Pro: The Ultimate DevOps Guide to JMESPath for output formatting</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQS vs. Kinesis Data Streams: Decoupling vs. Streaming on the AWS SAA-C03]]></title>
            <link>https://medium.com/codetodeploy/sqs-vs-kinesis-data-streams-decoupling-vs-streaming-on-the-aws-saa-c03-ff8ddc2dfed2?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff8ddc2dfed2</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 22:41:06 GMT</pubDate>
            <atom:updated>2026-08-25T07:54:02.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*687co2wFo5TuUd1b.png" /></figure><p>The AWS Solutions Architect Associate (SAA-C03) exam heavily emphasizes designing loosely coupled, fault-tolerant systems.</p><blockquote><em>💥 </em><strong><em>Master AI &amp; Tech Skills </em></strong><br> 💥 Crack Every Tech Interview with Confidence<br> 🔥 Up to <strong>70% OFF</strong> — Limited-Time Offer<br> <a href="https://www.educative.io/unlimited?aff=xkRD"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITogvtC6mF2BUF35Qsd9pg.png" /></figure><p>When a scenario requires you to ingest data and separate the producers of that data from the consumers, you will almost always be forced to choose between Amazon SQS and Amazon Kinesis Data Streams.</p><p>Think of <strong>Amazon SQS (Simple Queue Service)</strong> as the task master. It is a traditional, fully managed message queue built for asynchronous task execution. Producers drop messages in the queue, and a worker pulls them out, processes them, and deletes them. It is the ultimate service for simple 1-to-1 application decoupling.</p><p><strong>Amazon Kinesis Data Streams</strong>, on the other hand, is a real-time streaming engine. It is built to ingest massive, continuous flows of data-like application logs, IoT telemetry, or website clickstreams. Crucially, data is <em>not</em> deleted when read. It persists in the stream for up to 365 days by default, allowing multiple independent consumers to read, replay, and analyze the exact same data simultaneously.</p><p>Let’s break down the fundamental differences in how these two services handle data consumption and how to spot the exact keywords the SAA-C03 exam uses to test them.</p><h3>Key Differences: The SAA-C03 Decision Matrix</h3><p>Understanding the fundamental difference in how these two services handle data consumption is the key to eliminating wrong answers on the exam.</p><p>Here is how Amazon SQS and Amazon Kinesis Data Streams stack up against each other:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ybz_RY2cWZLWS2bPCzkwg.png" /></figure><h3>The Decision Logic in a Nutshell</h3><p>When breaking down an exam question, ask yourself: <em>What happens after the data is read?</em></p><ul><li><strong>If the worker needs to read a task, process it, and delete it so no one else processes it:</strong> <strong>Amazon SQS</strong> is the correct service.</li><li><strong>If multiple applications need to read the exact same data independently, or if you need to replay historical data:</strong> <strong>Amazon Kinesis Data Streams</strong> is the only viable option.</li></ul><h3>The 3 Core Architectural Constraints to Memorize</h3><p>When reading exam scenarios, look out for these three technical deal-breakers. If you spot one of these constraints, the choice between Amazon SQS and Amazon Kinesis Data Streams becomes completely black-and-white.</p><h3>1. Multiple Independent Consumers (The Fan-Out Requirement)</h3><ul><li><strong>SQS constraint:</strong> SQS is designed for a single pool of workers. If you need an analytics application to read the incoming data stream to update a live dashboard, and a <em>completely separate</em> backup application to read the exact same data to archive it in Amazon S3, a single SQS queue fails natively. The first application to pull and process the message will delete it, leaving nothing for the second application.</li><li><strong>Kinesis solution:</strong> Kinesis retains the data in the stream after it is read. You can attach multiple independent consumer applications to the exact same stream, and they can all read the same records simultaneously at their own pace.</li></ul><h3>2. Data Replayability (Rewinding the Clock)</h3><ul><li><strong>SQS constraint:</strong> SQS is an ephemeral staging area. Once a worker successfully processes a message and calls the DeleteMessage API, that data is gone forever. You cannot &quot;rewind&quot; the queue to re-process yesterday&#39;s tasks if a deployment went wrong.</li><li><strong>Kinesis solution:</strong> Because Kinesis retains data (for 24 hours by default, and up to 365 days), consumers can rewind their stream “checkpoint” and replay historical data. If an exam scenario explicitly asks for the ability to “replay data” after a system failure, Kinesis Data Streams is the answer.</li></ul><h3>3. Strict Ordering at Massive Scale</h3><ul><li><strong>SQS constraint:</strong> A standard SQS queue provides “best-effort” ordering, meaning messages can occasionally arrive out of order. While an SQS FIFO (First-In-First-Out) queue guarantees strict order, it comes with a native hard limit on throughput (typically up to 3,000 messages per second with batching).</li><li><strong>Kinesis solution:</strong> Kinesis provides a perfect middle ground for massive scale. It guarantees strict chronological ordering of records <em>within a specific shard</em> based on a Partition Key (e.g., all logs generated by User-A go to the same shard in exact order), while allowing you to scale the overall stream to ingest gigabytes of data per second simply by adding more shards.</li></ul><h3>How the SAA-C03 Sets the Trap</h3><p>The SAA-C03 exam relies heavily on subtle clues embedded in the problem description to lead unprepared test-takers toward plausible-but incorrect-distractor options. Here are the most common traps involving Amazon SQS and Kinesis Data Streams:</p><h3>1. The “Dashboard and Archive” Trap (Fan-Out)</h3><ul><li><strong>The Scenario:</strong> The question describes a massive influx of website clickstream data. The data needs to be processed in real-time to detect fraudulent clicks on a dashboard, but it <em>also</em> needs to be saved to an Amazon S3 bucket for long-term analytics.</li><li><strong>The Trap:</strong> Picking SQS because it “decouples” the web tier.</li><li><strong>The Solution:</strong> The correct answer is <strong>Amazon Kinesis Data Streams</strong> (often paired with Kinesis Data Firehose). Because two separate downstream systems need to process the exact same flow of data, a single SQS queue fails natively. In Kinesis, both the real-time processor and the archiver can read the same stream simultaneously.</li></ul><h3>2. The “Worker Fleet” Trap (Stateless Queuing)</h3><ul><li><strong>The Scenario:</strong> A company needs to process thousands of uploaded video files or e-commerce orders. The company uses a fleet of EC2 instances (or AWS Lambda functions) to process these items. The order does not matter; they just need to scale up workers to pull tasks and scale down when the work is done.</li><li><strong>The Trap:</strong> Picking Kinesis because it sounds like “high-volume processing.”</li><li><strong>The Solution:</strong> The correct answer is <strong>Amazon SQS</strong>. This is a classic asynchronous task queue where messages just need to be processed once and deleted. Kinesis adds unnecessary complexity for simple worker-queue decoupling.</li></ul><h3>3. The “Throughput Exceeded” Trap (Scaling Mechanics)</h3><ul><li><strong>The Scenario:</strong> A Kinesis Data Stream is receiving heavy traffic and suddenly throws a ProvisionedThroughputExceededException. The exam asks how to resolve the issue to handle the incoming data spikes.</li><li><strong>The Trap:</strong> Choosing an option to use SQS as a buffer <em>in front of</em> Kinesis, or increasing the data retention period.</li><li><strong>The Solution:</strong> The capacity of a Kinesis stream is defined by its shards. If you hit throughput limits, the answer is to <strong>add more shards</strong> (or configure the stream to On-Demand mode). SQS automatically scales to accommodate spikes, but Kinesis Provisioned mode requires shard management.</li></ul><h3>Test Your Knowledge: Keyword Spotting</h3><p>The best way to prepare for the SAA-C03 is to practice spotting the “trap” keywords. Let’s look at two sample questions to see how this plays out in practice.</p><blockquote><strong><em>Sample Question 1:</em></strong><em><br> A company has deployed a fleet of IoT sensors across multiple factories. The sensors generate continuous telemetry data. The company needs an architecture that allows a real-time analytics application to monitor the data for temperature spikes, while a secondary backup application continuously reads the same data to archive it into Amazon S3. Which service should the Solutions Architect recommend to ingest the sensor data?</em></blockquote><ul><li><strong>Keywords to spot:</strong> “continuous telemetry data” (streaming data), “real-time analytics application”, “secondary backup application continuously reads the same data” (1-to-many consumption).</li><li><strong>The Answer:</strong> <strong>Amazon Kinesis Data Streams</strong>. A single SQS queue cannot serve the exact same messages to two independent applications natively, because the first application to process the message would delete it. Kinesis retains the data, allowing multiple consumers to read the exact same stream simultaneously.</li></ul><blockquote><strong><em>Sample Question 2:</em></strong><em><br> An e-commerce architecture uses an Amazon API Gateway and AWS Lambda to process user image uploads. During peak sales events, the system receives more images than the backend rendering servers can process, causing timeouts. The processing order of the images does not matter, but the system must ensure no image processing tasks are lost during scaling. Which AWS service should be introduced to decouple the API from the backend servers?</em></blockquote><ul><li><strong>Keywords to spot:</strong> “processing tasks” (asynchronous work), “order does not matter” (standard queuing is sufficient), “ensure no image processing tasks are lost” (task buffering).</li><li><strong>The Answer:</strong> <strong>Amazon SQS</strong>. This is a standard worker-queue scenario. The backend servers just need to pull independent tasks from a queue at their own pace, process them, and delete them once complete. Kinesis would add unnecessary complexity for a simple stateless task buffer.</li></ul><h3>Keep learning always</h3><p>On the SAA-C03 exam, the battle between Amazon SQS and Amazon Kinesis Data Streams almost always comes down to one fundamental question: <strong>What happens after the data is read?</strong></p><p>If the scenario describes a backlog of tasks (like sending emails, processing orders, or rendering video) where a message must be processed exactly once and then deleted so no other worker picks it up, choose <strong>Amazon SQS</strong>.</p><p>If the scenario describes a continuous flow of data (like logs, telemetry, or real-time metrics) where multiple applications need to read the exact same data simultaneously, or where you might need to rewind and replay historical data, choose <strong>Amazon Kinesis Data Streams</strong>.</p><p>Stop second-guessing your SAA-C03 architectures. Memorize these constraints, and you will instantly eliminate the distractor options on exam day. Subscribe to the <a href="https://cloudqubes.com/daily-practice">daily exam question</a> to get bite-sized, highly targeted AWS scenarios delivered straight to your inbox every day.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/sqs-vs-kinesis-data-streams-decoupling-vs-streaming-on-the-aws-saa-c03"><em>https://cloudqubes.com</em></a><em> on August 17, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff8ddc2dfed2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/sqs-vs-kinesis-data-streams-decoupling-vs-streaming-on-the-aws-saa-c03-ff8ddc2dfed2">SQS vs. Kinesis Data Streams: Decoupling vs. Streaming on the AWS SAA-C03</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ALB vs. NLB: Nailing Load Balancer Questions on the AWS Certified Solutions Architect Exam…]]></title>
            <link>https://medium.com/codetodeploy/alb-vs-nlb-nailing-load-balancer-questions-on-the-aws-certified-solutions-architect-exam-a3bd26e445ee?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3bd26e445ee</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 23:31:51 GMT</pubDate>
            <atom:updated>2026-08-18T16:00:51.284Z</atom:updated>
            <content:encoded><![CDATA[<h3>ALB vs. NLB: Nailing Load Balancer Questions on the AWS Certified Solutions Architect Exam (SAA-C03)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p8yLhSBD07hzUZqK.png" /></figure><p>The AWS Solutions Architect Associate (SAA-C03) is not an exam that evaluates what you know.</p><blockquote><em>💥 </em><strong><em>Master AI &amp; Tech Skills </em></strong><br> 💥 Crack Every Tech Interview with Confidence<br> 🔥 Up to <strong>70% OFF</strong> — Limited-Time Offer<br> <a href="https://www.educative.io/unlimited?aff=xkRD"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITogvtC6mF2BUF35Qsd9pg.png" /></figure><p>It’s a test of your ability to build solutions on AWS. So the exam presents many questions that have more than one technical solution and you have to isolate the best among them.</p><p>When it comes to distributing traffic, the exam consistently pits the Application Load Balancer (ALB) against the Network Load Balancer (NLB). On the surface, they both route incoming traffic to backend targets. But in an exam scenario, picking the wrong one based on a single hidden constraint will sink your architecture.</p><p>Think of the <strong>Application Load Balancer (ALB)</strong> as your highly intelligent, Layer 7 traffic cop. It reads the actual HTTP/HTTPS payload, understands URL paths and headers, and makes smart, content-aware routing decisions. It is the undisputed go-to for modern web applications, microservices, and containerized workflows.</p><p>The <strong>Network Load Balancer (NLB)</strong>, on the other hand, is your Layer 4 speed demon. It doesn’t care about what is inside the application payload; it only looks at IPs and ports. Built for raw performance, it handles millions of requests per second and absorbs sudden, extreme traffic spikes instantly-all while providing the rock-solid stability of a static IP address.</p><p>Let’s break down exactly where these two diverge and how the exam uses those differences to set traps.</p><h3>Key Differences: The SAA-C03 Decision Matrix</h3><p>To pass the SAA-C03, you don’t need to memorize every feature flag; you need to understand the <strong>hard architectural boundaries</strong> that make one service impossible to use over the other.</p><p>Here is how the ALB and NLB stack up side-by-side:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-x-FdJhsPVukYFfnhTY3w.png" /></figure><h3>The 3 Core Architectural Constraints to Memorize</h3><p>When reading exam scenarios, look out for these three technical deal-breakers:</p><h4>1. Static IP Requirements vs. Dynamic Scaling</h4><ul><li><strong>ALB constraint:</strong> An ALB gives you a DNS name, not a fixed set of IP addresses. If your architecture must interface with legacy on-premises firewalls that require hardcoded, whitelisted IP addresses, a standalone ALB fails immediately.</li><li><strong>NLB solution:</strong> An NLB assigns a deterministic, static Elastic IP to each Availability Zone it spans, giving you a fixed front-door address.</li></ul><h4>2. Protocol Capabilities (Layer 7 vs. Non-HTTP Traffic)</h4><ul><li><strong>ALB constraint:</strong> ALB strictly handles web protocols. If your application relies on raw TCP stream processing, UDP (such as DNS, gaming, or streaming), or custom binary protocols, an ALB cannot inspect or route that traffic.</li><li><strong>NLB solution:</strong> NLB operates at the transport layer, making it protocol-agnostic for any TCP/UDP workload.</li></ul><h4>3. Traffic Spikes and Latency Sensitivities</h4><ul><li><strong>ALB constraint:</strong> While an ALB scales to immense loads, sudden traffic spikes (e.g., doubling traffic in under a minute during a flash sale) require time for AWS to scale out the underlying ALB nodes.</li><li><strong>NLB solution:</strong> NLB is architected to absorb instant, unpredictable bursts of millions of requests per second with sub-millisecond latencies without requiring pre-warming.</li></ul><h3>How the SAA-C03 Sets the Trap</h3><p>The exam rarely asks you to simply define an ALB or an NLB. Instead, it presents a business requirement with one critical constraint hidden in the text. Here are the classic traps to watch for:</p><h3>1. The Static IP Trap</h3><ul><li><strong>The Scenario:</strong> A legacy on-premises data center needs to connect to your AWS environment, and the on-premises firewalls require hardcoded, whitelisted IP addresses.</li><li><strong>The Trap:</strong> You might see HTTP/HTTPS traffic mentioned and immediately jump to ALB as the answer.</li><li><strong>The Solution:</strong> An ALB’s IPs change dynamically. You <em>must</em> use an NLB to get static Elastic IPs, or use a hybrid approach (placing an NLB in front of an ALB).</li></ul><h3>2. The “Sudden Spike” Trap</h3><ul><li><strong>The Scenario:</strong> A company is launching a highly anticipated product, or running a major ad campaign, and expects a massive, instantaneous surge of millions of users in seconds.</li><li><strong>The Trap:</strong> Defaulting to ALB just because it is a web application.</li><li><strong>The Solution:</strong> ALBs require time (or manual pre-warming by AWS Support) to scale out for sudden, massive spikes. An NLB natively absorbs extreme, sudden volatility without dropping connections.</li></ul><h3>3. The Microservices Trap</h3><ul><li><strong>The Scenario:</strong> Traffic hitting https://example.com/api needs to route to one Auto Scaling Group, while https://example.com/images needs to route to an S3 bucket or another ASG.</li><li><strong>The Trap:</strong> The question might mention high performance, tempting you toward the NLB.</li><li><strong>The Solution:</strong> NLBs operate at Layer 4 and cannot read the URL path. You absolutely need the Layer 7 intelligence of an ALB for path-based or host-based routing.</li></ul><h3>Test Your Knowledge: Keyword Spotting</h3><p>Let’s look at two sample questions to see how this plays out in practice.</p><blockquote><strong><em>Sample Question 1:</em></strong><em><br> A company is migrating a legacy web application to AWS consisting of a fleet of EC2 instances. The company’s security team mandates that the application must be protected against common web exploits like SQL injection. Furthermore, the application routes traffic to different backend services depending on the URL path. Which load balancing solution should the Solutions Architect choose?</em></blockquote><ul><li><strong>Keywords to spot:</strong> “protected against common web exploits” (requires AWS WAF integration), “depending on the URL path” (requires Layer 7 path-based routing).</li><li><strong>The Answer:</strong> <strong>Application Load Balancer (ALB)</strong>. An NLB cannot natively route by URL path or integrate directly with AWS WAF.</li></ul><blockquote><strong><em>Sample Question 2:</em></strong><em><br> A gaming company is launching a new real-time multiplayer game that uses UDP for communication. The launch is highly anticipated, and the engineering team expects millions of concurrent connections within the first few minutes of launch. The backend servers require the load balancer to have a static IP address to integrate with a third-party analytics provider. Which load balancer meets these requirements?</em></blockquote><ul><li><strong>Keywords to spot:</strong> “uses UDP” (Layer 4 traffic), “millions of concurrent connections within the first few minutes” (sudden spike without pre-warming), “static IP address” (fixed endpoint requirement).</li><li><strong>The Answer:</strong> <strong>Network Load Balancer (NLB)</strong>. An ALB does not support UDP, cannot provide a static IP, and requires pre-warming for sudden, massive scaling.</li></ul><h3>Keep learning and practicing</h3><p>Mastering the nuances between services like the Application Load Balancer and the Network Load Balancer is the secret to passing the SAA-C03. The exam doesn’t just want to know if you can build an architecture. As is the case in the real world, the exam wants to know if you can build the <em>right</em> architecture when boxed in by strict security boundaries, legacy network constraints, or extreme scaling demands.</p><p>When you encounter a load balancer question, always look for the hidden constraint. Is there a demand for a static IP? Are they expecting UDP traffic? Is there an instantaneous, massive spike in users without time to pre-warm? Spotting these exact keywords will immediately eliminate the wrong answers and guide you to the correct solution.</p><p>Don’t let similar-sounding services cost you easy points on exam day. If you found this architectural breakdown helpful, subscribe to the <a href="https://cloudqubes.com/daily-practice">daily exam question</a> at CloudQubes.</p><p>You’ll get a mock exam question delivered straight to your inbox every single day to build a learning streak based on the science of <a href="https://cloudqubes.com/blog/hacking-the-brain-s-bandwidth-the-psychology-of-microlearning">microlearning</a>.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/alb-vs-nlb-nailing-load-balancer-questions-on-the-aws-certified-solutions-architect-exam-saa-c03"><em>https://cloudqubes.com</em></a><em> on August 7, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://www.linkedin.com/in/bhuwan-kc-583505319/?isSelfProfile=true"><strong>Linkedin</strong></a>| <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3bd26e445ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/alb-vs-nlb-nailing-load-balancer-questions-on-the-aws-certified-solutions-architect-exam-a3bd26e445ee">ALB vs. NLB: Nailing Load Balancer Questions on the AWS Certified Solutions Architect Exam…</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech Specialization: The Strategy in 2026 to stay relevant and employable]]></title>
            <link>https://medium.com/codetodeploy/tech-specialization-the-strategy-in-2026-to-stay-relevant-and-employable-621edbdc4919?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/621edbdc4919</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[cloud-engineer]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 23:53:56 GMT</pubDate>
            <atom:updated>2026-08-07T17:56:00.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvv_VfRpWV6xJfkW0NP61A.png" /></figure><p>The tech job market is in a turmoil.</p><p>If you’ve spent any time on tech forums or LinkedIn lately, you’ve probably seen the posts: “IT is no longer a gold mine,” or “Entry-level jobs are impossible to find.”And honestly? They’re kind of right-at least, if you’re playing by the old rules.</p><blockquote><em>💥 </em><strong><em>Master AI &amp; Tech Skills</em></strong><br> 🎓 <strong>Get Up to 50% OFF Premium Courses</strong><br> ⏰ <strong>Limited-Time Offer</strong><br><a href="https://trk.udemy.com/zz4NBO"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxDkNDjRHjK7f_3bGfwA3Q.png" /></figure><p>A few years ago, you could graduate with a standard IT or Computer Science degree, build a basic React To-Do app, label yourself a “Full Stack Developer,” and comfortably land a high-paying job.</p><p>Today, that reality is gone. The entry-level market is incredibly saturated, and if you apply as a generalist, you are competing with thousands of other graduates who have the exact same resume and the exact same portfolio.</p><p>Welcome to the Generalist Trap.</p><p>But here is the good news: the tech industry isn’t dying, shrinking, or closing its doors. It is simply maturing.The jobs are absolutely still there, and companies are actually desperate for talent.</p><p>The catch?</p><p>They don’t want generalists anymore. They want specialists.</p><p>The hiring criteria has shifted from “knowing a little bit about everything” to “knowing a lot about specific, high-demand infrastructure.”If you want to build a financially rewarding, future-proof career today, you have to look at where enterprise budgets are actually flowing.</p><p>The era of the generic coder is fading, making way for the era of the Cloud Architect, the Data Engineer, the AI/ML Specialist, and the DevSecOps professional.</p><p>Don’t just take my word for it. Check out the data below to see how these specialized fields are dominating the market in demand and growth compared to standard development roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/0*Lhxi7bPI9kBadrVp.png" /></figure><p>Note: <em>The “Enterprise Demand Score” isn’t a random number. It’s a composite metric used by major labor analytics firms. They calculate it by combining the raw volume of job postings, the year-over-year growth rate of the skill, the lack of available talent (supply vs. demand), and the earning potential of the role.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*X6YCO51_3DB7gOw6.png" /></figure><h3>The 2026 Specialization Blueprint</h3><p>As you can see companies are scaling back on generic coding roles, and expanding on specialized roles.</p><p>Here are the five specialized disciplines driving the tech economy in 2026-and why each one represents a massive opportunity if you’re willing to go deeper than a standard computer science curriculum.</p><h3>#1. Cloud Architecture &amp; Engineering (The Bedrock)</h3><p>Think of cloud computing as the utility grid of modern software. Almost every app, enterprise database, and AI model lives in AWS, Microsoft Azure, or Google Cloud.</p><p>As companies move away from simple “lift-and-shift” migrations toward complex multi-cloud ecosystems, they desperately need engineers who can design scalable, resilient, and cost-effective cloud architectures.</p><p>* <em>Why it’s booming: *</em> Cloud isn’t just a discipline; it’s the underlying infrastructure for everything else on this list.</p><p><strong>Core focus:</strong> Infrastructure as Code (Terraform), cloud networking, security, and multi-cloud strategy.</p><h3>#2. Data Engineering</h3><p>Here’s an open secret in tech: AI models and flashy analytics dashboards are completely useless if the underlying data is broken, missing, or messily organized.</p><p>Data Engineers are the unsung heroes who build the high-speed pipelines that collect, clean, and transport massive volumes of raw data into warehouse systems like Snowflake and Databricks.</p><p><strong>Why it’s booming:</strong> Companies are drowning in data, but starved for clean, structured information. Data Engineering has become one of the highest-paid technical tracks in software.</p><p><strong>Core focus:</strong> Advanced SQL, Python, real-time streaming (Kafka), ETL/ELT pipelines, and data warehousing.</p><h3>#3. AI/ML &amp; MLOps Engineering</h3><p>We’ve officially moved past the phase where AI is just a fun gimmick or a chatbot experiment. Enterprise companies are now embedding AI directly into their core production software.</p><p>However, writing a quick prompt using an API isn’t enough to make you an AI engineer. Companies need specialists who understand how to fine-tune models, optimize LLM infrastructure, manage Model Context Protocol (MCP) servers, and reliably deploy models into production without burning through cloud budgets.</p><p><strong>Why it’s booming:</strong> Building an AI prototype is easy; running a secure, enterprise-scale AI system in production is extremely hard.</p><p><strong>Core focus:</strong> Python, PyTorch, MLOps pipelines, vector databases, and LLM orchestration.</p><h3>#4. DevOps &amp; Platform Engineering</h3><p>Developers want to write feature code; companies want to ship that code to users fast without breaking the system. That’s where DevOps and Platform Engineers come in.</p><p>Instead of managing servers manually, Platform Engineers build internal developer platforms and automated pipelines so engineering teams can deploy software smoothly with a single click.</p><p><strong>Why it’s booming:</strong> Speed and reliability win market share. Companies pay top dollar for engineers who can automate deployment pipelines and manage cloud infrastructure at scale.</p><p><strong>Core focus:</strong> CI/CD pipelines, Docker, Kubernetes, Ansible, and Site Reliability Engineering (SRE) observability.</p><h3>#5. Cybersecurity &amp; DevSecOps</h3><p>With data breaches making headlines weekly and cloud networks becoming more complex, security is no longer an afterthought tucked away in a separate department. It’s being built directly into every line of code.</p><p>DevSecOps engineers bridge the gap between software development, cloud infrastructure, and security compliance, ensuring that applications are hardened against attacks from day one.</p><p><strong>Why it’s booming:</strong> Cybersecurity has virtually zero unemployment. As threat vectors grow more sophisticated, companies can’t afford not to hire security specialists.</p><p><strong>Core focus:</strong> Zero Trust architecture, identity &amp; access management (IAM), cloud security compliance, and automated security scanning.</p><h3>How to Specialize Without Burning Out</h3><p>Okay, take a deep breath. Looking at that list above can feel incredibly overwhelming. You might be thinking, “I just spent three years learning how to center a div and write basic Java, and now you want me to learn Kubernetes and vector databases?!</p><p>“Don’t panic. You don’t need to learn all of it. In fact, trying to learn all of it is exactly what you shouldn’t do.</p><p>Here is your game plan:</p><ol><li>Stop Trying to Learn Everything.<br> The absolute fastest way to burn out is jumping from a Python data engineering tutorial on Monday to a Docker crash course on Wednesday. Stop tutorial-hopping. Pick one track. Pair your existing coding knowledge with one specific infrastructure pillar (e.g., Node.js + AWS Cloud Architecture). Be the person who is undeniably great at one valuable thing, rather than mediocre at ten.</li><li>The Power of Certification (Your Proof of Work)<br> So, how do you actually prove to an employer that you aren’t just another generalist with a standard degree?<br> Certifications.<br> In this highly specialized market, certifications like the AWS Certified Solutions Architect or Azure Administrator act as your verified proof-of-work. They are the ultimate resume-filter bypass. They show recruiters and technical managers that you have standardized, tested knowledge in the exact complex systems they are struggling to hire for.</li><li>The Microlearning Advantage<br> Here is the catch: you cannot cram for these specializations over a weekend. Mastering cloud architecture or data pipelines is like learning a new language. If you try to watch a 14-hour YouTube bootcamp video in one sitting, your brain will simply reject it.<br> The secret?<br><strong>Microlearning</strong>. <br> Consistent, daily, bite-sized learning. Spending just 5 to 10 minutes every single day actively engaging with a concept will build deeper, more permanent comprehension than a stressed-out weekend cram session.</li></ol><h3>Are happy and content with your current role?</h3><p>No worries.</p><p>If not, one of the best things you can do is to get specialized and switch roles.</p><p>When switching roles, certifications are your friend.</p><p>Sure. You don’t have time to watch 40-hour video courses. You’ve got more important things in life. So, why not harness the power of microlearning for certification prep.</p><p>Go to <a href="https://cloudqubes.com/daily-practice">daily practice at CloudQubes</a> and sign up to receive a free cloud exam question everyday and start a daily exam practice streak.</p><p>Spend 5 minutes, while you are commuting or having coffee, to read the question and answer.</p><p>You can start prepping for your next certification right away.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/tech-specialization-the-strategy-in-2026-to-stay-relevant-and-employable"><em>https://cloudqubes.com</em></a><em> on August 5, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://www.linkedin.com/in/bhuwan-kc-583505319/?isSelfProfile=true"><strong>Linkedin</strong></a>| <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=621edbdc4919" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/tech-specialization-the-strategy-in-2026-to-stay-relevant-and-employable-621edbdc4919">Tech Specialization: The Strategy in 2026 to stay relevant and employable</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anthropic’s July 2026 Certification Rollout: A Guide for Cloud & Systems Engineers]]></title>
            <link>https://medium.com/codetodeploy/anthropics-july-2026-certification-rollout-a-guide-for-cloud-systems-engineers-74e38ae208c7?source=rss-b0085b39c43e------2</link>
            <guid isPermaLink="false">https://medium.com/p/74e38ae208c7</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Indika Kodagoda]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 22:49:57 GMT</pubDate>
            <atom:updated>2026-08-01T05:23:07.195Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JVCto1Zx33GGV8VU.png" /></figure><p>For a long time, the AI space felt like it belonged to people building web chatbots.</p><blockquote><strong><em>💥 Master Any Skills in 3 Months</em></strong><br><em> </em>📚 Up to <strong>50% OFF</strong> Premium Courses<br> ⏰ Limited-Time Offer<br><a href="https://trk.udemy.com/zz4NBO"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkQFf0NUnzoFbVEVQCF5WQ.png" /></figure><p>But over the last few months, the landscape has completely shifted. We’ve moved past simple text inputs. Now, it’s all about integrating intelligent, autonomous agents into CI/CD pipelines, building custom network daemons, and securely hooking LLMs into existing infrastructure.</p><p>This is where Anthropic’s massive July 2026 update comes in. Back in March, they rolled out their first proctored exam-the Claude Certified Architect, Foundations-alongside a $100 million investment in their partner network.</p><p>Fast forward to July, and they’ve aggressively expanded that single credential into a comprehensive four-track certification suite delivered through Pearson VUE. The new lineup includes an Associate track for business users, a Developer track for hands-on API builders, and two Architect tiers (Foundations and Professional) for those designing enterprise-grade systems.</p><p>So, why should systems engineers care? Because validating your ability to securely deploy Model Context Protocol (MCP) servers, manage agentic architecture, and orchestrate automated workflows is rapidly becoming as fundamental as understanding your Ansible collections.</p><p>Let’s break down these four new tracks, figure out which one actually makes sense for your day-to-day engineering work, and get you ready for exam day.</p><h3>The 4 Certification Tracks Explained</h3><p>Anthropic’s rollout covers everything from basic operations to full enterprise-scale architecture. Here’s a breakdown of the four exams to help you figure out where you fit in.</p><h3>1. Claude Certified Associate, Foundations (CCAO-F)</h3><ul><li><strong>Who it’s for:</strong> Operations, product managers, and business folks.</li><li><strong>The lowdown:</strong> This is the entry-level credential. It’s designed for those who manage projects and need to build structured workflows without writing actual code. If your daily grind involves writing Docker compose files or deploying OpenTofu modules, you can safely skip this one. It’s a great starting point for those advising on AI adoption, but as an engineer, you’ll want to aim higher.</li></ul><h3>2. Claude Certified Developer, Foundations (CCDV-F)</h3><ul><li><strong>Who it’s for:</strong> Software and API engineers.</li><li><strong>The lowdown:</strong> Now we’re talking. If you’re building Python network daemons to parse telemetry data, this track validates the hands-on building part. It’s a 53-question exam that heavily tests the Claude API, the Agent SDK, and custom tool use. Expect a lot of focus on building Model Context Protocol (MCP) servers and optimizing prompts and context windows. If your Git history is full of API integration scripts, this is exactly where you start.</li></ul><h3>3. Claude Certified Architect, Foundations (CCAR-F)</h3><ul><li><strong>Who it’s for:</strong> Systems architects and DevOps engineers.</li><li><strong>The lowdown:</strong> This track steps back from the pure code and focuses on system topologies and orchestration. It dives deep into deciding when to build tools versus standalone MCP servers, structuring multi-agent hierarchies, and managing context limits at a broader system level. Interestingly, it places a 20% weight directly on configuring Claude Code, including CLAUDE.md path scoping and slash commands. If you are designing the infrastructure that allows an LLM to safely query a fleet of 300 infrastructure switches without hallucinating, this scenario-based exam proves you know how to architect it securely.</li></ul><h3>4. Claude Certified Architect, Professional (CCAR-P)</h3><ul><li><strong>Who it’s for:</strong> Enterprise IT leaders and senior solution architects.</li><li><strong>The lowdown:</strong> This is the capstone certification. It assumes you already know the technical foundations and extends into enterprise lifecycle management and stakeholder communication. This track is for those who own the end-to-end delivery of agentic systems and are responsible for the overarching governance, cost-optimization, and security guardrails across the entire organization.</li></ul><h3>Why Systems &amp; Cloud Engineers Need to Pay Attention</h3><p>For a long time, the barrier between “AI” and “Core Infrastructure” was pretty thick. You might have used an LLM to help write a quick bash script or untangle a nasty regex, but you certainly weren’t letting it anywhere near your production state files.</p><p>That era is over. AI is stepping directly into the control plane, and here is why these certifications-and the architectural skills they represent-are becoming mandatory for modern infrastructure work:</p><ul><li><strong>The Evolution of Infrastructure as Code (IaC):</strong> We aren’t just using AI to write boilerplate anymore; we are integrating it directly into our deployment pipelines to validate, refactor, and audit configurations. When you’re managing intricate Terraform deployments and need to enforce the exact usage of resources like aws_ec2_managed_prefix_list, or ensuring your custom ansible_collections follow the proper directory structures, you need an LLM workflow that understands your repository&#39;s specific guardrails.</li><li><strong>Intelligent Network Daemons:</strong> Think about custom system monitoring. If you are building a Python-based network automation daemon to listen for fault statuses across hundreds of infrastructure switches, the API track (CCDV-F) becomes highly relevant. Instead of rigid threshold alerts, you can integrate Claude to evaluate the context and severity of an event before it decides to page you at 2 AM.</li><li><strong>The MCP Standard is the New Integration Baseline:</strong> The Model Context Protocol (MCP) is rapidly becoming as fundamental to our work as understanding REST or gRPC. Just as we rely on rock-solid Linux tools systemctl, we are now expected to build and maintain secure, continuous connections between our internal enterprise APIs and Claude.</li></ul><p>Earning these new credentials isn’t about proving you know how to chat with an AI. It’s about proving you know how to build and orchestrate these integrations without exposing your network data or letting an autonomous agent cause a localized outage.</p><h3>Exam Logistics: What to Expect</h3><p>If you decide to pull the trigger on one of these exams, here is exactly what exam day looks like:</p><ul><li><strong>Delivery &amp; Proctoring:</strong> Anthropic has partnered with Pearson VUE. You can take the exam via their OnVUE online proctoring system (from your home office) or head to a physical Pearson test center if you want to avoid dealing with webcam desk-sweeps.</li><li><strong>Time &amp; Format:</strong> You’ll get 120 minutes to work through 53 to 63 questions. The format is a mix of standard multiple-choice and multi-select (e.g., “Choose the two correct configurations”).</li><li><strong>The Cut Score:</strong> There is no easy curve here. You need a 720 on a scaled score of 100 to 1,000 to pass.</li><li><strong>Validity &amp; Renewals:</strong> The tech is moving fast, so the certification is only valid for 12 months. The good news? Anthropic offers a free, unproctored assessment if you renew on time, meaning you don’t have to pay the $99-$175 fee or sit for another proctored session every year.</li><li><strong>Access:</strong> Currently, registration routes through the Anthropic Partner Academy, which means your organization needs to be part of the Claude Partner Network. (If your company isn’t in it yet, joining at the foundational tier is free).</li></ul><h3>Conclusion: Stop Prompting, Start Architecting</h3><p>Earning one of these credentials-especially the Developer or Architect tracks-isn’t about proving you know how to chat with an AI. It’s about proving you know how to build and orchestrate secure LLM integrations without exposing your network data or letting an autonomous agent accidentally tear down a production database.</p><p>The AI industry has officially moved into the infrastructure layer. If you want to stay ahead of the curve, it’s time to master agentic architecture, custom tool use, and the Model Context Protocol.</p><p><strong>Ready to get started?</strong></p><p>Start your exam preparation right away without dedicating to a 40 hour course. Subscribe to our <a href="https://cloudqubes.com/daily-practice">exam practice streak</a> to receive a free, scenario-based daily practice question straight to your inbox to help you prep for Cloud and AI exams.</p><p><em>Originally published at </em><a href="https://cloudqubes.com/blog/anthropic-s-july-2026-certification-rollout-a-guide-for-cloud-systems-engineers"><em>https://cloudqubes.com</em></a><em> on July 30, 2026.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://www.linkedin.com/in/bhuwan-kc-583505319/?isSelfProfile=true"><strong>Linkedin</strong></a>| <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74e38ae208c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/anthropics-july-2026-certification-rollout-a-guide-for-cloud-systems-engineers-74e38ae208c7">Anthropic’s July 2026 Certification Rollout: A Guide for Cloud &amp; Systems Engineers</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>