create AWS infra

This commit is contained in:
2026-05-15 10:26:43 -04:00
parent 6563b4cc4b
commit 1bc5052d22
21 changed files with 1502 additions and 0 deletions

28
app.py Normal file
View File

@@ -0,0 +1,28 @@
import os
import aws_cdk as cdk
from src.commands.utils import load_config
from src.infra.stack import QaiStack
app = cdk.App()
config_path = app.node.try_get_context("config") or "config.yaml"
stack_name = app.node.try_get_context("stack_name") or "QaiCliStack"
account_id = app.node.try_get_context("account_id") or os.getenv("CDK_DEFAULT_ACCOUNT")
delete_bucket_data = str(app.node.try_get_context("delete_bucket_data") or "false").lower() == "true"
cfg = load_config(config_path)
QaiStack(
app,
stack_name,
config=cfg,
delete_bucket_data=delete_bucket_data,
env=cdk.Environment(
account=account_id,
region=cfg.aws.region,
),
)
app.synth()