# dheeraj3choudhary/terraform-and-aws-devops-project architecture

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

- Interactive diagram: https://gitdiagram.com/dheeraj3choudhary/terraform-and-aws-devops-project
- Repository: https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project

## Overview

This repository is a collection of five AWS/Terraform project examples, not one shared application. The README describes a web application tier, a Flask app deployed on ECS Fargate, Terraform infrastructure automation, a serverless app, and an S3/Glue ETL pipeline. The graph keeps these independent workflows separate. Source excerpts establish the serverless handlers’ DynamoDB operations, the Flask page, and the Glue job’s data flow; infrastructure details beyond the README are not inferred from unsampled Terraform files.

Main entry points: [`s3_read_write_etl_glue_pipeline/data_file/script.py`](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/data_file/script.py) (Glue transformation job), [`AWS_WebApplication_Tier_Project/main.tf`](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/AWS_WebApplication_Tier_Project/main.tf) (Web tier provisioning), [`python_app_ecs_project/main.tf`](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/python_app_ecs_project/main.tf) (ECS provisioning), [`Infra_automation_with_terraform_functions/main.tf`](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Infra_automation_with_terraform_functions/main.tf) (Infrastructure automation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_webtier["Web application tier"]
  node_webinfra["Web tier provisioning<br/>[main.tf]"]
  node_awsweb{{"AWS web layer"}}
end

subgraph group_ecs["ECS Flask app"]
  node_ecsinfra["ECS provisioning<br/>[main.tf]"]
  node_flask["Flask showcase<br/>[app.py]"]
  node_fargate{{"ECS Fargate"}}
end

subgraph group_automation["Terraform automation"]
  node_tfautomation["Infrastructure automation<br/>[main.tf]"]
  node_awsinfra{{"AWS infrastructure"}}
end

subgraph group_serverless["Serverless data app"]
  node_getitem["Get item handler<br/>[GetItem.py]"]
  node_postitem["Create/update handler<br/>[PostItem.py]"]
  node_deleteitem["Delete item handler<br/>[DeleteItem.py]"]
  node_dynamo[("DynamoDB table")]
end

subgraph group_etl["S3 Glue ETL"]
  node_sourcecsv["Source data<br/>[organizations.csv]"]
  node_gluejob["Glue transformation job<br/>[script.py]"]
  node_catalog[("Glue Data Catalog")]
  node_targetbucket[("Target S3 bucket")]
  node_glueinfra["Pipeline provisioning<br/>[buckets.tf]"]
end

node_operator(("Project operator"))
node_serverlessuser(("API caller"))

node_operator -->|"provisions"| node_webinfra
node_webinfra -.->|"deploys"| node_awsweb
node_operator -->|"provisions"| node_ecsinfra
node_ecsinfra -->|"deploys"| node_fargate
node_operator -.->|"visits"| node_flask
node_operator -->|"runs"| node_tfautomation
node_tfautomation -.->|"provisions"| node_awsinfra
node_serverlessuser -.->|"requests"| node_getitem
node_serverlessuser -.->|"requests"| node_postitem
node_serverlessuser -.->|"requests"| node_deleteitem
node_getitem -->|"reads"| node_dynamo
node_postitem -->|"writes"| node_dynamo
node_deleteitem -->|"deletes"| node_dynamo
node_operator -->|"provisions"| node_glueinfra
node_glueinfra -.->|"configures"| node_gluejob
node_gluejob -->|"reads"| node_catalog
node_catalog -->|"supplies data"| node_gluejob
node_gluejob -->|"writes"| node_targetbucket

click node_webinfra "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/AWS_WebApplication_Tier_Project/main.tf"
click node_ecsinfra "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/python_app_ecs_project/main.tf"
click node_flask "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/python_app_ecs_project/app.py"
click node_tfautomation "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Infra_automation_with_terraform_functions/main.tf"
click node_getitem "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Build_AWS_Serverless_App/GetItem.py"
click node_postitem "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Build_AWS_Serverless_App/PostItem.py"
click node_deleteitem "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Build_AWS_Serverless_App/DeleteItem.py"
click node_sourcecsv "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/data_file/organizations.csv"
click node_gluejob "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/data_file/script.py"
click node_glueinfra "https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/buckets.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_webinfra,node_awsweb toneBlue
class node_ecsinfra,node_flask,node_fargate toneAmber
class node_tfautomation,node_awsinfra,node_serverlessuser toneMint
class node_getitem,node_postitem,node_deleteitem,node_dynamo toneRose
class node_sourcecsv,node_gluejob,node_catalog,node_targetbucket,node_glueinfra,node_operator toneIndigo
```

## Components

### Web application tier

- [Web tier provisioning](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/AWS_WebApplication_Tier_Project/main.tf): `AWS_WebApplication_Tier_Project/main.tf`
- **AWS web layer**

### ECS Flask app

- [ECS provisioning](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/python_app_ecs_project/main.tf): `python_app_ecs_project/main.tf`
- [Flask showcase](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/python_app_ecs_project/app.py): `python_app_ecs_project/app.py`
- **ECS Fargate**

### Terraform automation

- [Infrastructure automation](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Infra_automation_with_terraform_functions/main.tf): `Infra_automation_with_terraform_functions/main.tf`
- **AWS infrastructure**

### Serverless data app

- [Get item handler](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Build_AWS_Serverless_App/GetItem.py): `Build_AWS_Serverless_App/GetItem.py`
- [Create/update handler](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Build_AWS_Serverless_App/PostItem.py): `Build_AWS_Serverless_App/PostItem.py`
- [Delete item handler](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/Build_AWS_Serverless_App/DeleteItem.py): `Build_AWS_Serverless_App/DeleteItem.py`
- **DynamoDB table**

### S3 Glue ETL

- [Source data](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/data_file/organizations.csv): `s3_read_write_etl_glue_pipeline/data_file/organizations.csv`
- [Glue transformation job](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/data_file/script.py): `s3_read_write_etl_glue_pipeline/data_file/script.py`
- **Glue Data Catalog**
- **Target S3 bucket**
- [Pipeline provisioning](https://github.com/dheeraj3choudhary/terraform-and-aws-devops-project/blob/main/s3_read_write_etl_glue_pipeline/buckets.tf): `s3_read_write_etl_glue_pipeline/buckets.tf`

### Other components

- **Project operator**
- **API caller**

## Connections

- Project operator → Web tier provisioning: provisions (evidence: `README.md`)
- Web tier provisioning → AWS web layer: deploys (evidence: `README.md`)
- Project operator → ECS provisioning: provisions (evidence: `README.md`)
- ECS provisioning → ECS Fargate: deploys (evidence: `README.md`)
- Project operator → Flask showcase: visits
- Project operator → Infrastructure automation: runs (evidence: `README.md`)
- Infrastructure automation → AWS infrastructure: provisions (evidence: `README.md`)
- API caller → Get item handler: requests
- API caller → Create/update handler: requests
- API caller → Delete item handler: requests
- Get item handler → DynamoDB table: reads (evidence: `Build_AWS_Serverless_App/GetItem.py`)
- Create/update handler → DynamoDB table: writes (evidence: `Build_AWS_Serverless_App/PostItem.py`)
- Delete item handler → DynamoDB table: deletes (evidence: `Build_AWS_Serverless_App/DeleteItem.py`)
- Project operator → Pipeline provisioning: provisions (evidence: `README.md`)
- Pipeline provisioning → Glue transformation job: configures
- Glue transformation job → Glue Data Catalog: reads (evidence: `s3_read_write_etl_glue_pipeline/data_file/script.py`)
- Glue Data Catalog → Glue transformation job: supplies data (evidence: `s3_read_write_etl_glue_pipeline/data_file/script.py`)
- Glue transformation job → Target S3 bucket: writes (evidence: `s3_read_write_etl_glue_pipeline/data_file/script.py`)
