Skip to content

CDCgov/phdi-azure

Repository files navigation

Public Health Data Infrastructure Azure

General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.

Overview

The purpose of this repository is to implement our cloud-based Starter Kit pipeline in Azure. Our Starter Kit is composed of Building Blocks—modular software tools that, when combined together, can improve data quality and reduce data cleaning workloads—developed from the PHDI SDK. This repository will allow users to begin deploying these Building Blocks to their own Azure environment. For more information for using our repository beyond what is contained in this README, please refer to our Getting Started document, which offers additional resources on how to set up a local development environment, how these Building Blocks are deployed, and more.

Problem Scope

Current public health systems that digest, analyze, and respond to data are siloed. Lacking access to actionable data, our national, as well as state, local, and territorial infrastructure, isn’t pandemic-ready. To address this challenge, CDC and the U.S. Digital Service (USDS) established the Pandemic-Ready Interoperability Modernization Effort (PRIME), a multi-year collaboration to strengthen data quality and information technology systems in state and local health departments. The Public Health Data Infrastructure (PHDI) project emerged from that collaboration. Our objective is to help the CDC best support public health authorities in moving towards a modern public health data infrastructure. This project offers a suite of modular, scalable tools to ingest public health messages, based on Building Blocks. See our public website for more details.

PHDI is a sibling project to PRIME ReportStream, which focuses on improving the delivery of COVID-19 test data to public health departments, and PRIME SimpleReport, which provides a better way for organizations and testing facilities to report COVID-19 rapid tests to public health departments.

How to Deploy Our Starter Kit to Azure

To deploy this pipeline to your own Azure environment, follow these steps.

Be sure to replace all instances of myuser in GitHub URLs with your user or organization name.

  1. Install the az CLI.

  2. Install the GitHub CLI.

  3. Fork this repository into your personal or organization account.

  4. Clone your newly forked repository to your local machine by running:

    git clone https://github.com/myuser/phdi-azure.git
    
  5. Navigate to the new repository directory with:

    cd phdi-azure
    
  6. Authenticate the Azure cloud CLI by running:

    for Unix based systems

    ./quick-start.sh
    

    for Windows based systems

    quick-start.ps1
    
  7. If you did not install the GitHub CLI, follow these steps to set the secrets output before proceeding.

  8. Set up a storage account for Terraform state by running the GitHub Action at this URL:
    https://github.com/myuser/phdi-azure/actions/workflows/terraformSetup.yaml

  9. Create an environment named dev in your repository at this URL:
    https://github.com/myuser/phdi-azure/settings/environments/new

  10. Deploy to your newly created dev environment by running the GitHub Action at this URL, selecting dev as the environment input:
    https://github.com/myuser/phdi-azure/actions/workflows/deployment.yaml

  11. Success! You should now see resources in your Azure project ready for data ingestion.

Main Components

There are five major components to this repository.

Azure Container Applications

The PHDI Building Blocks, expressed as containerized web services, are deployed in Azure as Azure Container Applications (ACA). ACA is a fully managed serverless platform for deploying containers, similar to AWS Fargate and GCP Cloud Run. Since ACA is serverless, Azure abstracts all aspects of the underlying infrastructure for running and scaling these services. This allows us to simply provide ACA with the images for our containerized Building Blocks. When the Starter Kit deploys, these images are pulled from the public registry associated with the CDCgov/phdi repository. You may access these images directly here.

Serverless Functions

The pipeline deployed by the Starter Kit processes data as it is received in real time. We achieve this event-driven behavior by using an Azure Function to “listen” for new data to be uploaded. Azure Functions are Azure's version of serverless functions, similar to Lambda in Amazon Web Services (AWS). Serverless functions provide a relatively simple way to run services with modest runtime duration, memory, and compute requirements in the cloud. The serverless-functions directory contains the Python source code for this Azure Function.

Pipeline Orchestration

Since the Building Blocks are designed to be composable, users will likely want to chain several together into pipelines. We use Microsoft's Azure Data Factory (ADF) to define the process that requires the use of multiple Building Blocks. These pipelines can be configured using the ADF interface (web UI).

Infrastructure as Code

Every resource required to use the Building Blocks and pipelines implemented in this repository are defined using Terraform. This makes it simple for users to deploy all of the functionality provided in this repository to their own Azure environments. The Terraform code can be found in the terraform directory.

Continuous Integration and Continuous Deployment

In order to ensure high code quality and reliability, we have implemented a Continuous Integration (CI) pipeline consisting of a suite of tests all new contributions must pass before they are merged into main. We have also built a Continuous Deployment (CD) pipeline that automatically deploys the code in the repository to linked Azure environments when changes are made. The combined CI/CD pipeline is implemented with GitHub Actions in the .github directory. More information on the CI/CD pipeline can be found in the DevOps document.

Additional Starter Kit Setup Guidance

Additional documentation for setting up our Starter Kit pipeline in Azure can be found below:

  • Getting Started: Helps developers understand the technical implementation of our Starter Kit
  • Implementation Guide: Offers a detailed guide for implementing the Starter Kit pipeline provided in this repository
  • Execution Guide: Gives instructions for how to run the Starter Kit pipeline with sample data

Standard Notices

Public Domain Standard Notice

This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.

License Standard Notice

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest and acknowledge that you have no expectation of payment, unless pursuant to an existing contract or agreement.

Privacy Standard Notice

This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.

Contributing Standard Notice

Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.

All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.

Records Management Standard Notice

This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.

Related Documents

Additional Standard Notices

Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published