# arjayaprakash-maker/github_workflow architecture

> Architecture diagram of the GitHub repository arjayaprakash-maker/github_workflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arjayaprakash-maker/github_workflow
- Repository: https://github.com/arjayaprakash-maker/github_workflow

## Overview

This repository provisions AWS infrastructure through a GitHub Actions-triggered Terraform workflow. A user selects plan, apply, or destroy and supplies an environment and project name; Terraform manages a rotating customer-managed KMS key, an encrypted S3 bucket, an encrypted DynamoDB table, and an encrypted Secrets Manager credentials secret. Terraform outputs resource names and ARNs after apply. The graph reflects documented behavior only: no workflow or Terraform source excerpts were provided, so implementation details beyond the README are not inferred.

Main entry points: [`terraform/main.tf`](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/main.tf) (Terraform configuration), [`terraform/kms.tf`](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/kms.tf) (Rotating CMK), [`.github/workflows/terraform.yml`](https://github.com/arjayaprakash-maker/github_workflow/blob/main/.github/workflows/terraform.yml) (Terraform workflow), [`terraform/s3.tf`](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/s3.tf) (Encrypted S3 bucket)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow orchestration"]
  node_workflow["Terraform workflow<br/>[terraform.yml]"]
  node_terraform["Terraform configuration<br/>[main.tf]"]
  node_inputs["Terraform inputs<br/>[variables.tf]"]
  node_outputs["Resource outputs<br/>[outputs.tf]"]
end

subgraph group_security["Key management"]
  node_kms["Rotating CMK<br/>[kms.tf]"]
end

subgraph group_data_services["AWS data services"]
  node_s3[("Encrypted S3 bucket<br/>[s3.tf]")]
  node_dynamodb[("Encrypted DynamoDB table<br/>[dynamodb.tf]")]
  node_secrets[("Credentials secret<br/>[secrets_manager.tf]")]
end

node_user(("Repository user"))

node_user -->|"runs workflow"| node_workflow
node_workflow -->|"runs Terraform"| node_terraform
node_inputs -->|"configures inputs"| node_terraform
node_terraform -->|"provisions key"| node_kms
node_terraform -->|"provisions bucket"| node_s3
node_terraform -->|"provisions table"| node_dynamodb
node_terraform -->|"provisions secret"| node_secrets
node_s3 -->|"encrypts with"| node_kms
node_dynamodb -->|"encrypts with"| node_kms
node_secrets -->|"encrypts with"| node_kms
node_terraform -->|"prints after apply"| node_outputs

click node_workflow "https://github.com/arjayaprakash-maker/github_workflow/blob/main/.github/workflows/terraform.yml"
click node_terraform "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/main.tf"
click node_inputs "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/variables.tf"
click node_outputs "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/outputs.tf"
click node_kms "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/kms.tf"
click node_s3 "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/s3.tf"
click node_dynamodb "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/dynamodb.tf"
click node_secrets "https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/secrets_manager.tf"

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_workflow,node_terraform,node_inputs,node_outputs,node_user toneBlue
class node_kms toneAmber
class node_s3,node_dynamodb,node_secrets toneMint
```

## Components

### Workflow orchestration

- [Terraform workflow](https://github.com/arjayaprakash-maker/github_workflow/blob/main/.github/workflows/terraform.yml): `.github/workflows/terraform.yml`
- [Terraform configuration](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/main.tf): `terraform/main.tf`
- [Terraform inputs](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/variables.tf): `terraform/variables.tf`
- [Resource outputs](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/outputs.tf): `terraform/outputs.tf`

### Key management

- [Rotating CMK](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/kms.tf): `terraform/kms.tf`

### AWS data services

- [Encrypted S3 bucket](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/s3.tf): `terraform/s3.tf`
- [Encrypted DynamoDB table](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/dynamodb.tf): `terraform/dynamodb.tf`
- [Credentials secret](https://github.com/arjayaprakash-maker/github_workflow/blob/main/terraform/secrets_manager.tf): `terraform/secrets_manager.tf`

### Other components

- **Repository user**

## Connections

- Repository user → Terraform workflow: runs workflow (evidence: `README.md`)
- Terraform workflow → Terraform configuration: runs Terraform (evidence: `README.md`)
- Terraform inputs → Terraform configuration: configures inputs (evidence: `README.md`)
- Terraform configuration → Rotating CMK: provisions key (evidence: `README.md`)
- Terraform configuration → Encrypted S3 bucket: provisions bucket (evidence: `README.md`)
- Terraform configuration → Encrypted DynamoDB table: provisions table (evidence: `README.md`)
- Terraform configuration → Credentials secret: provisions secret (evidence: `README.md`)
- Encrypted S3 bucket → Rotating CMK: encrypts with (evidence: `README.md`)
- Encrypted DynamoDB table → Rotating CMK: encrypts with (evidence: `README.md`)
- Credentials secret → Rotating CMK: encrypts with (evidence: `README.md`)
- Terraform configuration → Resource outputs: prints after apply (evidence: `README.md`)
