Case Study · Security & Compliance

Automating a mandated security sensor on federal EC2 instances

Client Canadian federal department (multi-account AWS landing zone)
Engagement Security & Compliance
Timeline September to December 2025 (about 4 months), within an engagement running since September 2023
Our Role AWS cloud architecture, infrastructure as code, and DevOps engineering
CENTRAL AUTOMATION Reaches All Environments Amazon EKS · ArgoCD Crossplane XRDs & Compositions (Upbound CLI) SHARED DISTRIBUTION Amazon S3 Installers (Windows & Linux) Shared Automation Runbook 40+ WORKLOAD ACCOUNTS Existing + Automated New Accounts AWS CONFIG Detects New EC2 Triggers Runbook SYSTEMS MANAGER Windows & Linux Snyk Sensor Install Parameter Store: Per-Account Pinned Versions IAM & Organizations SCPs Secure the Sensor Eligible Instances: Seconds to Minutes COMPLIANCE Operations & Security Daily Version Check Systems Manager SBOM Reconfiguration on Version or Runbook Change Compliance Dashboards Change Notifications ITSG-33 Evidence
MULTI-ACCOUNT SECURITY SENSOR AUTOMATION AWS CONFIG · SYSTEMS MANAGER · CROSSPLANE · ARGOCD

Our role

Ottawa Cloud Consulting (OCC) provided AWS cloud architecture, infrastructure as code, and DevOps engineering for this four-month project (September to December 2025), delivered inside an ongoing client engagement running since September 2023. The client is a Canadian federal department operating a multi-account AWS landing zone on AWS Secure Environment Accelerator (ASEA) and AWS Landing Zone Accelerator (LZA) that hosts workloads for multiple Government of Canada departments. We designed and built the automated sensor deployment platform for that landing zone.

The challenge

The client faced a new requirement to run the Host Based Sensor, a mandated Snyk-based security sensor, across Amazon Elastic Compute Cloud (EC2) instances in its multi-account AWS landing zone, starting with only installer runbooks.

Coverage had to span both Windows and Linux instances in existing and future workload accounts while resisting accidental or deliberate removal. At the same time, the setup had to allow account-level configuration. Without the sensor in place, the environment's Authority to Operate (ATO)—the formal approval to run a system—was at risk.

What we did

  1. Built event-driven installation. We used AWS Config to detect new EC2 instances and trigger AWS Systems Manager automation across 40+ workload accounts and any new account created through automated deployment. One cross-platform automation document (runbook) detects whether an instance runs Windows or Linux, then installs and updates the sensor.
  2. Centralized distribution. We built a central automation account to reach all environments, storing versioned Windows and Linux installers in Amazon Simple Storage Service (S3) and sharing automation documents across workload accounts.
  3. Added account controls. We used Parameter Store (Systems Manager's configuration store) for account-level settings and pinned versions. We automated daily version validation with Systems Manager software bill of materials (SBOM) compliance evidence and immediate reconfiguration whenever a sensor version or automation document changes.
  4. Locked down changes. We wrote AWS Identity and Access Management (IAM) policies and AWS Organizations service control policies (SCPs) to resist removal, stopping workload accounts from altering the sensor and securing the automation process.
  5. Packaged for GitOps. We packaged Crossplane (a Kubernetes cloud-provisioning tool) composite resource definitions (XRDs)—the custom interface a team requests—and compositions—the templates that turn a request into cloud resources—with Upbound's command-line tool (Upbound CLI). ArgoCD (a Git-driven deployment controller) deploys them from the central automation account's Amazon Elastic Kubernetes Service (EKS) cluster.

Results

  • Replaced per-workload sensor installs with environment-wide automation covering 40+ workload accounts and any new account created through automated deployment.
  • Sensor installed on eligible EC2 instances within seconds to minutes of instance creation; a new sensor version marked instances out of compliance and triggered automatic reinstall.
  • The client's authority marked the related ITSG-33 (Government of Canada information technology security risk-management guidance from the Canadian Centre for Cyber Security) ATO control compliant, supported by OCC's deployment methodology, compliance report, automated remediation of non-compliant instances, and evidence documentation.
  • Operations and Security teams gained Systems Manager compliance dashboards and event-driven notifications of change and non-compliance, where sensor state had previously been known only to the security monitoring team.

What the client kept

  • Single cross-platform Systems Manager install-and-update automation document and versioned Windows and Linux installers in Amazon S3
  • Central automation account setup sharing automation documents across all environments
  • Parameter Store configuration and agent version-pinning model
  • AWS IAM policies and AWS Organizations SCPs securing the sensor and automation
  • Custom Crossplane XRDs and compositions deployed by ArgoCD from the central automation account's Amazon EKS cluster
  • Systems Manager compliance dashboards and event-driven change and non-compliance notifications
  • Deployment methodology, compliance report, and ITSG-33 evidence documentation

More work from this engagement

This project was a separate four-month effort inside the same ongoing engagement with this Canadian federal department (running since September 2023), which also includes two concurrent workstreams: