Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup diagrams #25

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ cdk.out/
# Ignore build Go files in ./bin but keep the infra/bin directories
!infra/bin/
bin/

.venv/
7 changes: 7 additions & 0 deletions diagrams/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
setup:
#!/usr/bin/env bash
poetry install

generate:
#!/usr/bin/env bash
poetry run python overview.py -o ./out/overview.png
7 changes: 7 additions & 0 deletions diagrams/overview.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram("Web Service", show=False, filename="./bin/overview"):
ELB("lb") >> EC2("web") >> RDS("userdb")
174 changes: 174 additions & 0 deletions diagrams/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions diagrams/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tool.poetry]
name = "dmarc-monitor-diagrams"
version = "0.1.0"
description = ""
authors = ["Robert Sturla <[email protected]>"]
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.12"
diagrams = "^0.23.4"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"