eotk: import instance information from terraform

This commit is contained in:
Iain Learmonth 2022-05-13 15:40:59 +01:00
parent 567fcce0bb
commit ce520b87a5
11 changed files with 233 additions and 74 deletions

16
app/portal/eotk.py Normal file
View file

@ -0,0 +1,16 @@
from flask import render_template, Blueprint
from sqlalchemy import desc
from app.models.onions import Eotk
bp = Blueprint("eotk", __name__)
@bp.route("/list")
def eotk_list():
instances = Eotk.query.filter(Eotk.destroyed == None).order_by(desc(Eotk.added)).all()
return render_template("list.html.j2",
section="eotk",
title="EOTK Instances",
item="eotk",
items=instances)