# genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint architecture

> Architecture diagram of the GitHub repository genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint
- Repository: https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint

## Overview

This repository is a Genesys Cloud deployment blueprint: a GitHub Actions pipeline runs Terraform/CX-as-Code deployments across organizations, with Terraform Cloud managing deployment state and platform checks gating production. It also includes an AWS email-classification example used with a Genesys flow. The README documents the deployment relationships; only the classifier and platform-test source were sampled, so links involving unsampled Terraform and workflow internals are limited to documented relationships.

Main entry points: [`blueprint/genesys-cloud-cx-as-code/main.tf`](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/main.tf) (CX-as-Code deployment), [`.github/workflows/deploy-flow.yaml`](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/workflows/deploy-flow.yaml) (GitHub Actions), [`blueprint/scripts/platform_tests.py`](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/scripts/platform_tests.py) (Platform tests), [`blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/main.tf`](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/main.tf) (Architect flow deployment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Deployment pipeline"]
  node_github["GitHub Actions<br/>[deploy-flow.yaml]"]
  node_terraform_cloud[("Terraform Cloud")]
  node_apply_action["Terraform apply action<br/>[action.yaml]"]
  node_dev_tools["Genesys dev tools<br/>[action.yaml]"]
end

subgraph group_cx["Genesys Cloud configuration"]
  node_cx_root["CX-as-Code deployment<br/>[main.tf]"]
  node_users["Users and roles<br/>[main.tf]"]
  node_queues["Routing queues<br/>[main.tf]"]
  node_email_routes["Email routes<br/>[main.tf]"]
  node_data_actions["Data actions<br/>[main.tf]"]
  node_flow_deploy["Architect flow deployment<br/>[main.tf]"]
  node_email_flow["Email classifier flow"]
  node_genesys_cloud[("Genesys Cloud organizations")]
end

subgraph group_classifier["Email classification"]
  node_aws_lambda["Classifier API<br/>[app.py]"]
  node_comprehend["Amazon Comprehend"]
  node_classifier_iam["Classifier IAM policies"]
end

subgraph group_validation["Platform validation"]
  node_platform_tests["Platform tests<br/>[platform_tests.py]"]
end

node_operator(("Deployment operator"))

node_operator -->|"triggers deployment"| node_github
node_github -.->|"runs action"| node_apply_action
node_github -.->|"uses tools"| node_dev_tools
node_github -->|"executes deployment"| node_cx_root
node_cx_root -->|"manages state"| node_terraform_cloud
node_cx_root -->|"deploys objects"| node_genesys_cloud
node_cx_root -.->|"configures"| node_users
node_cx_root -.->|"configures"| node_queues
node_cx_root -.->|"configures"| node_email_routes
node_cx_root -.->|"configures"| node_data_actions
node_cx_root -.->|"deploys flows"| node_flow_deploy
node_flow_deploy -.->|"deploys definition"| node_email_flow
node_aws_lambda -->|"classifies text"| node_comprehend
node_classifier_iam -.->|"grants access"| node_comprehend
node_platform_tests -->|"checks queues and actions"| node_genesys_cloud
node_platform_tests -->|"gates production"| node_github

click node_github "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/workflows/deploy-flow.yaml"
click node_apply_action "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/actions/genesys-cloud-apply-terraform/action.yaml"
click node_dev_tools "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/actions/genesys-cloud-dev-tools/action.yaml"
click node_cx_root "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/main.tf"
click node_users "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/users/main.tf"
click node_queues "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/queues/main.tf"
click node_email_routes "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/email_routes/main.tf"
click node_data_actions "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/data_actions/main.tf"
click node_flow_deploy "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/main.tf"
click node_email_flow "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/EmailComprehendFlow.yaml"
click node_aws_lambda "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/aws-sam-email-classifier/emailclassifier/app.py"
click node_classifier_iam "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/aws-comprehend/EmailClassifierBucketAccessRole-TrustPolicy.json"
click node_platform_tests "https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/scripts/platform_tests.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_github,node_terraform_cloud,node_apply_action,node_dev_tools toneBlue
class node_cx_root,node_users,node_queues,node_email_routes,node_data_actions,node_flow_deploy,node_email_flow,node_genesys_cloud toneAmber
class node_aws_lambda,node_comprehend,node_classifier_iam toneMint
class node_platform_tests toneRose
class node_operator toneIndigo
```

## Components

### Deployment pipeline

- [GitHub Actions](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/workflows/deploy-flow.yaml): `.github/workflows/deploy-flow.yaml`
- **Terraform Cloud**
- [Terraform apply action](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/actions/genesys-cloud-apply-terraform/action.yaml): `.github/actions/genesys-cloud-apply-terraform/action.yaml`
- [Genesys dev tools](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/.github/actions/genesys-cloud-dev-tools/action.yaml): `.github/actions/genesys-cloud-dev-tools/action.yaml`

### Genesys Cloud configuration

- [CX-as-Code deployment](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/main.tf): `blueprint/genesys-cloud-cx-as-code/main.tf`
- [Users and roles](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/users/main.tf): `blueprint/genesys-cloud-cx-as-code/modules/users/main.tf`
- [Routing queues](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/queues/main.tf): `blueprint/genesys-cloud-cx-as-code/modules/queues/main.tf`
- [Email routes](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/email_routes/main.tf): `blueprint/genesys-cloud-cx-as-code/modules/email_routes/main.tf`
- [Data actions](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/data_actions/main.tf): `blueprint/genesys-cloud-cx-as-code/modules/data_actions/main.tf`
- [Architect flow deployment](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/main.tf): `blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/main.tf`
- [Email classifier flow](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/EmailComprehendFlow.yaml): `blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/EmailComprehendFlow.yaml`
- **Genesys Cloud organizations**

### Email classification

- [Classifier API](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/aws-sam-email-classifier/emailclassifier/app.py): `blueprint/aws-sam-email-classifier/emailclassifier/app.py`
- **Amazon Comprehend**
- [Classifier IAM policies](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/aws-comprehend/EmailClassifierBucketAccessRole-TrustPolicy.json): `blueprint/aws-comprehend/EmailClassifierBucketAccessRole-TrustPolicy.json`

### Platform validation

- [Platform tests](https://github.com/genesyscloudblueprints/cx-as-code-cicd-gitactions-blueprint/blob/main/blueprint/scripts/platform_tests.py): `blueprint/scripts/platform_tests.py`

### Other components

- **Deployment operator**

## Connections

- Deployment operator → GitHub Actions: triggers deployment (evidence: `README.md`)
- GitHub Actions → Terraform apply action: runs action
- GitHub Actions → Genesys dev tools: uses tools
- GitHub Actions → CX-as-Code deployment: executes deployment (evidence: `README.md`)
- CX-as-Code deployment → Terraform Cloud: manages state (evidence: `README.md`)
- CX-as-Code deployment → Genesys Cloud organizations: deploys objects (evidence: `README.md`)
- CX-as-Code deployment → Users and roles: configures
- CX-as-Code deployment → Routing queues: configures
- CX-as-Code deployment → Email routes: configures
- CX-as-Code deployment → Data actions: configures
- CX-as-Code deployment → Architect flow deployment: deploys flows
- Architect flow deployment → Email classifier flow: deploys definition
- Classifier API → Amazon Comprehend: classifies text (evidence: `blueprint/aws-sam-email-classifier/emailclassifier/app.py`)
- Classifier IAM policies → Amazon Comprehend: grants access
- Platform tests → Genesys Cloud organizations: checks queues and actions (evidence: `blueprint/scripts/platform_tests.py`)
- Platform tests → GitHub Actions: gates production (evidence: `README.md`)
