work

Tokio Marine Kiln

Building the AWS infrastructure for a near real time data pipeline.

Digital Endeavours built greenfield AWS infrastructure for a near real time pipeline from SQL Server to Snowflake. The infrastructure included hosting for the change data capture product’s agent. Analytics and reporting teams got current data from one of the client’s tier 1 applications without adding query load to its SQL Server database.

Digital Endeavours wrote the infrastructure as code from scratch in Terraform, extending the client’s GitLab CI pipelines to build, validate, test and deploy it. Configuration approaches were validated with the change data capture product’s vendor. Servers were replaced rather than patched. Packer and Ansible rebuilt the server images weekly to pick up security patches, and each image passed security scanning and compliance checks in the pipeline before it was approved. Terraform then deployed from the latest approved image, so patches reached the servers quickly and every deployment was consistent.

The change data capture product ran in a hybrid model, with the vendor’s cloud as the control plane and data processing kept inside the client’s network. Digital Endeavours chose Docker on EC2 from the vendor’s supported options and ran the agent in Auto Scaling Groups, separate from the source systems. The agent connected outbound to the vendor for its configuration and image updates, and if an instance failed, the Auto Scaling Group replaced it from the latest approved image. Pipeline data was staged in S3 and encrypted with KMS, IAM policies gave each component only the access it needed, and security groups limited traffic to the paths the pipeline used.

Data transformation took several hours, partly because of how the product handled the volume, and with a greenfield platform the client wanted to know whether infrastructure changes would help. Digital Endeavours investigated together with the contractor handling the data side. Resizing the agent’s instances made no difference, and a closer look at how the agent operated found nothing to suggest further infrastructure changes would. That showed the infrastructure wasn’t the deciding factor and gave project management realistic timelines to plan around.

Digital Endeavours documented the build in a low level design, with a notes section of supporting detail. The platform was handed over to a permanent member of the client’s staff, with knowledge transfer and a detailed list of outstanding technical debt, so the next priorities were clear.

Results

The pipeline went live as Digital Endeavours moved off the project, and has had further features added since. Its infrastructure was built from code, server images were rebuilt weekly with security patches, and failed instances were replaced automatically.

Key Technologies

CI/CD & IaC: GitLab CI, Terraform, Ansible, Packer
Infrastructure: AWS (EC2, Auto Scaling Groups, S3, KMS, IAM), Docker
Data Platforms: SQL Server, Snowflake
Security: OpenSSL, AWS KMS