-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26e5c15
commit 0accb53
Showing
11 changed files
with
272 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
##### IDE's ##### | ||
# VisualStudioCode | ||
/.vscode/ | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace | ||
.history | ||
|
||
# IntelliJ IDEA | ||
.idea/* | ||
|
||
##### Database ##### | ||
*.accdb | ||
*.db | ||
*.dbf | ||
*.mdb | ||
*.pdb | ||
*.sqlite3 | ||
alembic/versions/* | ||
|
||
|
||
##### Logs ##### | ||
*.log | ||
*.log* | ||
|
||
##### Python ##### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64 | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
bin/ | ||
|
||
# Environments | ||
Makefile | ||
.env | ||
.env.* | ||
.env.local | ||
!.env.example | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
.flaskenv | ||
pyvenv.cfg | ||
|
||
# PyInstaller | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# PEP 582 | ||
__pypackages__/ | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
|
||
# ruff | ||
.ruff_cache/ | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# C extensions | ||
*.so | ||
|
||
##### Heroku (old) ##### | ||
Procfile | ||
|
||
# Serverless | ||
node_modules/ | ||
.serverless/ | ||
|
||
# wsgi | ||
wsgi_handler.py | ||
serverless_wsgi.py | ||
.serverless-wsgi | ||
|
||
#OSx | ||
.DS_Store | ||
|
||
run.Ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# 📊 Diagram as Code Scripts | ||
|
||
This directory contains scripts to generate infrastructure diagrams using Python. | ||
|
||
## 🚀 Getting Started | ||
|
||
### Prerequisites | ||
|
||
Ensure you have the following installed: | ||
|
||
- Python (managed by `pyenv`) | ||
- `pyenv` | ||
- `pipenv` | ||
|
||
### 📂 Project Structure | ||
|
||
``` | ||
. | ||
├── live_core.py # Diagram as Code script for live production infrastructure | ||
├── Pipfile # Pipenv configuration file | ||
├── Pipfile.lock # Pipenv lock file | ||
└── .python-version # Python version file managed by pyenv | ||
``` | ||
|
||
### 🔧 Setup Instructions | ||
|
||
1. **Install `pyenv`**: | ||
|
||
```sh | ||
curl https://pyenv.run | bash | ||
``` | ||
|
||
Follow the instructions to add `pyenv` to your shell. | ||
|
||
2. **Install the required Python version**: | ||
|
||
```sh | ||
pyenv install | ||
pyenv local | ||
``` | ||
|
||
3. **Install `pipenv`**: | ||
|
||
```sh | ||
pip install --user pipenv | ||
``` | ||
|
||
4. **Create and activate a virtual environment using `pipenv`**: | ||
|
||
```sh | ||
pipenv install | ||
pipenv shell | ||
``` | ||
|
||
5. **Install project dependencies**: | ||
|
||
```sh | ||
pipenv install --dev | ||
``` | ||
|
||
### 📜 Usage | ||
|
||
To generate the infrastructure diagram, run the following command inside the `pipenv` shell: | ||
|
||
```sh | ||
python live_core.py | ||
``` | ||
|
||
This will create a diagram of the live production infrastructure, showcasing the relationships between different AWS components. | ||
|
||
### 📦 Dependencies | ||
|
||
This project relies on the following Python packages: | ||
|
||
- `diagrams` | ||
- Other dependencies specified in `Pipfile` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.