# aws-samples/aws-microservices-deploy-options architecture

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

- Interactive diagram: https://gitdiagram.com/aws-samples/aws-microservices-deploy-options
- Repository: https://github.com/aws-samples/aws-microservices-deploy-options

## Overview

This repository is a deployment-options sample for a three-service application, not the service implementations themselves. The documented user workflow is that webapp calls greeting and name to produce a response. The tree also contains deployment definitions for Docker Swarm, multiple ECS modes, Kubernetes variants, and Lambda. Service-to-service edges and the Docker/ECS deployment options are documented in the README; the remaining deployment artifacts are represented from the tree, so their runtime wiring is not asserted.

Main entry points: [`apps/docker/docker-compose.yaml`](https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/docker/docker-compose.yaml) (Docker Swarm), [`apps/ecs/deployment`](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/deployment) (ECS CloudFormation), [`apps/ecs/ec2/templates`](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/ec2/templates) (ECS EC2), [`apps/ecs/ecs-cli`](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/ecs-cli) (ECS CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_services["Application services"]
  node_webapp["Webapp"]
  node_greeting["Greeting service"]
  node_name["Name service"]
end

subgraph group_containers["Container deployments"]
  node_docker_swarm["Docker Swarm"]
  node_helm["Kubernetes Helm"]
  node_ksonnet["Kubernetes Ksonnet"]
  node_kubepack["Kubernetes Kubepack"]
  node_k8s_standalone["Kubernetes manifests<br/>[manifest.yml]"]
  node_istio["Istio routing"]
end

subgraph group_cloud["Cloud deployments"]
  node_ecs_cf["ECS CloudFormation"]
  node_ecs_ec2["ECS EC2"]
  node_ecs_cli["ECS CLI"]
  node_fargate["ECS Fargate"]
  node_lambda["Lambda deployment<br/>[sam.yaml]"]
end

node_user(("Application user"))

node_user -->|"requests app"| node_webapp
node_webapp -->|"calls greeting"| node_greeting
node_webapp -->|"calls name"| node_name
node_webapp -->|"deploys with"| node_docker_swarm
node_webapp -->|"deploys on ECS"| node_ecs_cf
node_webapp -->|"deploys on ECS"| node_ecs_ec2
node_webapp -->|"deploys via CLI"| node_ecs_cli
node_webapp -->|"deploys on Fargate"| node_fargate

click node_docker_swarm "https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/docker/docker-compose.yaml"
click node_ecs_cf "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/deployment"
click node_ecs_ec2 "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/ec2/templates"
click node_ecs_cli "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/ecs-cli"
click node_fargate "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/fargate/templates"
click node_helm "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/helm/myapp/templates"
click node_ksonnet "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/ksonnet/myapp/components"
click node_kubepack "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/kubepack/manifests/app"
click node_k8s_standalone "https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/k8s/standalone/manifest.yml"
click node_istio "https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/istio"
click node_lambda "https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/lambda/sam.yaml"

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_webapp,node_greeting,node_name,node_user toneBlue
class node_docker_swarm,node_helm,node_ksonnet,node_kubepack,node_k8s_standalone,node_istio toneAmber
class node_ecs_cf,node_ecs_ec2,node_ecs_cli,node_fargate,node_lambda toneMint
```

## Components

### Application services

- **Webapp**
- **Greeting service**
- **Name service**

### Container deployments

- [Docker Swarm](https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/docker/docker-compose.yaml): `apps/docker/docker-compose.yaml`
- [Kubernetes Helm](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/helm/myapp/templates): `apps/k8s/helm/myapp/templates`
- [Kubernetes Ksonnet](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/ksonnet/myapp/components): `apps/k8s/ksonnet/myapp/components`
- [Kubernetes Kubepack](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/kubepack/manifests/app): `apps/k8s/kubepack/manifests/app`
- [Kubernetes manifests](https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/k8s/standalone/manifest.yml): `apps/k8s/standalone/manifest.yml`
- [Istio routing](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/k8s/istio): `apps/k8s/istio`

### Cloud deployments

- [ECS CloudFormation](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/deployment): `apps/ecs/deployment`
- [ECS EC2](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/ec2/templates): `apps/ecs/ec2/templates`
- [ECS CLI](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/ecs-cli): `apps/ecs/ecs-cli`
- [ECS Fargate](https://github.com/aws-samples/aws-microservices-deploy-options/tree/master/apps/ecs/fargate/templates): `apps/ecs/fargate/templates`
- [Lambda deployment](https://github.com/aws-samples/aws-microservices-deploy-options/blob/master/apps/lambda/sam.yaml): `apps/lambda/sam.yaml`

### Other components

- **Application user**

## Connections

- Application user → Webapp: requests app (evidence: `readme.adoc`)
- Webapp → Greeting service: calls greeting (evidence: `readme.adoc`)
- Webapp → Name service: calls name (evidence: `readme.adoc`)
- Webapp → Docker Swarm: deploys with (evidence: `readme.adoc`)
- Webapp → ECS CloudFormation: deploys on ECS (evidence: `readme.adoc`)
- Webapp → ECS EC2: deploys on ECS (evidence: `readme.adoc`)
- Webapp → ECS CLI: deploys via CLI (evidence: `readme.adoc`)
- Webapp → ECS Fargate: deploys on Fargate (evidence: `readme.adoc`)
