-
Notifications
You must be signed in to change notification settings - Fork 6
Streamlit Deployment
Huzefaaa2 edited this page May 13, 2026
·
10 revisions
Run the v1 Foundation demo:
pip install -e .
streamlit run streamlit_app.pyRun the v2 Enterprise + Intelligence demo:
pip install -e .
streamlit run streamlit_app_v2.pyRun the v3-v5 Governance demo:
pip install -e .
streamlit run streamlit_app_v3_v5.py| App | Purpose | URL |
|---|---|---|
| v1 Foundation | Terraform scanning, state leak checks, schema-aware validation | https://terraform-guardrail.streamlit.app/ |
| v2 Enterprise + Intelligence | Policy authoring, org baselines, drift gates, evidence export, risk profiles, suggested fixes, waiver demos | https://terraform-guardrail-enterprise.streamlit.app/ |
| v3-v5 Governance | Policy packs, explainability, SARIF/JUnit, remediation plans, PR dry runs, scheduled scans, evidence schedules, health and trend dashboards | https://terraform-guardrail-governance.streamlit.app/ |
All apps link to each other and to the author profile: https://www.linkedin.com/in/huzefaaa
- Push the repo to GitHub.
- Create one Streamlit Cloud app for v1.
- Main file: streamlit_app.py.
- Create a second Streamlit Cloud app for v2.
- Main file: streamlit_app_v2.py.
- Create a third Streamlit Cloud app for v3-v5.
- Main file: streamlit_app_v3_v5.py.
- Deploy (Streamlit installs dependencies from requirements.txt).
Recommended settings:
- Branch:
main - Python version: read from runtime.txt
- Theme: read from .streamlit/config.toml
- Secrets: none required for the public v1, v2, or v3-v5 demos
- v2 app URL/name:
terraform-guardrail-enterprise - v3-v5 app URL/name:
terraform-guardrail-governance
Run the v1 Foundation app:
docker build -f Dockerfile.streamlit -t terraform-guardrail-streamlit:v1 .
docker run --rm -p 8501:8501 terraform-guardrail-streamlit:v1Run the v2 Enterprise + Intelligence app:
docker build -f Dockerfile.streamlit.v2 -t terraform-guardrail-streamlit:v2 .
docker run --rm -p 8502:8501 terraform-guardrail-streamlit:v2Run the v3-v5 Governance app:
docker build -f Dockerfile.streamlit.v3_v5 -t terraform-guardrail-streamlit:v3-v5 .
docker run --rm -p 8503:8501 terraform-guardrail-streamlit:v3-v5- If a cloud app reports
ImportErrorforterraform_guardrail, reboot the app so Streamlit Cloud reinstalls fromrequirements.txt. The apps also include a reposrc/fallback for stale cloud builds. - Use Python from
runtime.txtand keeprequirements.txtat the repo root.