# prudhvitejapentakota/python-aws-platform-demo architecture

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

- Interactive diagram: https://gitdiagram.com/prudhvitejapentakota/python-aws-platform-demo
- Repository: https://github.com/prudhvitejapentakota/python-aws-platform-demo

## Overview

This repository is an end-to-end AWS deployment demo: a GitHub Actions deployment uses OIDC and Terraform to publish a Python Lambda behind a public Function URL, with CloudWatch Logs for observability. At runtime, an HTTP caller supplies an optional name; the Lambda accepts GET requests and returns a JSON health response and greeting. Infrastructure and workflow details are represented at their tree-supported paths; their relationships are based on the README, since those files were not sampled.

Main entry points: [`terraform`](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform) (Terraform deployment), [`.github/workflows/deploy.yml`](https://github.com/prudhvitejapentakota/python-aws-platform-demo/blob/main/.github/workflows/deploy.yml) (GitHub Actions), [`app/handler.py`](https://github.com/prudhvitejapentakota/python-aws-platform-demo/blob/main/app/handler.py) (Request handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Deployment"]
  node_actions["GitHub Actions<br/>[deploy.yml]"]
  node_oidc["OIDC credentials"]
end

subgraph group_infrastructure["AWS Infrastructure"]
  node_iam["AWS IAM role"]
  node_terraform["Terraform deployment"]
  node_state[("Terraform state")]
  node_logs[("CloudWatch Logs")]
end

subgraph group_runtime["Application Runtime"]
  node_lambda["Lambda function"]
  node_url["Function URL"]
  node_handler["Request handler<br/>[handler.py]"]
end

node_caller(("HTTP caller"))

node_actions -->|"requests credentials"| node_oidc
node_oidc -->|"assumes role"| node_iam
node_actions -->|"runs deployment"| node_terraform
node_terraform -->|"stores state"| node_state
node_terraform -->|"provisions"| node_lambda
node_terraform -->|"provisions"| node_url
node_terraform -->|"provisions"| node_logs
node_caller -->|"sends request"| node_url
node_url -->|"invokes"| node_lambda
node_lambda -->|"dispatches to"| node_handler
node_lambda -->|"writes logs"| node_logs

click node_actions "https://github.com/prudhvitejapentakota/python-aws-platform-demo/blob/main/.github/workflows/deploy.yml"
click node_iam "https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform"
click node_terraform "https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform"
click node_state "https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform"
click node_lambda "https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform"
click node_url "https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform"
click node_handler "https://github.com/prudhvitejapentakota/python-aws-platform-demo/blob/main/app/handler.py"
click node_logs "https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform"

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_actions,node_oidc toneBlue
class node_iam,node_terraform,node_state,node_logs toneAmber
class node_lambda,node_url,node_handler toneMint
class node_caller toneIndigo
```

## Components

### Deployment

- [GitHub Actions](https://github.com/prudhvitejapentakota/python-aws-platform-demo/blob/main/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`
- **OIDC credentials**

### AWS Infrastructure

- [AWS IAM role](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform): `terraform`
- [Terraform deployment](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform): `terraform`
- [Terraform state](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform): `terraform`
- [CloudWatch Logs](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform): `terraform`

### Application Runtime

- [Lambda function](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform): `terraform`
- [Function URL](https://github.com/prudhvitejapentakota/python-aws-platform-demo/tree/main/terraform): `terraform`
- [Request handler](https://github.com/prudhvitejapentakota/python-aws-platform-demo/blob/main/app/handler.py): `app/handler.py`

### Other components

- **HTTP caller**

## Connections

- GitHub Actions → OIDC credentials: requests credentials (evidence: `README.md`)
- OIDC credentials → AWS IAM role: assumes role (evidence: `README.md`)
- GitHub Actions → Terraform deployment: runs deployment (evidence: `README.md`)
- Terraform deployment → Terraform state: stores state (evidence: `README.md`)
- Terraform deployment → Lambda function: provisions (evidence: `README.md`)
- Terraform deployment → Function URL: provisions (evidence: `README.md`)
- Terraform deployment → CloudWatch Logs: provisions (evidence: `README.md`)
- HTTP caller → Function URL: sends request (evidence: `README.md`)
- Function URL → Lambda function: invokes (evidence: `README.md`)
- Lambda function → Request handler: dispatches to (evidence: `README.md`)
- Lambda function → CloudWatch Logs: writes logs (evidence: `README.md`)
