-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
33 lines (28 loc) · 988 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
import aws_cdk as cdk
from sauerpod.sauerpod_storage import SauerpodStorageStack
from sauerpod.sauerpod_logic import SauerpodLogicStack
from sauerpod.sauerpod_publish import SauerpodPublishStack
from sauerpod.sauerpod_publish_alt import SauerpodPublishStackAlt
app = cdk.App()
sss = SauerpodStorageStack(
scope=app,
construct_id="sauerpod-storage-stack",
description="github.com/jangroth/sauerpod - storage bucket and ddb table",
)
sps = SauerpodPublishStack(
scope=app,
construct_id="sauerpod-publish-stack",
storage_bucket=sss.storage_bucket,
description="github.com/jangroth/sauerpod - cloudfront distribution",
)
sps.add_dependency(sss)
sls = SauerpodLogicStack(
scope=app,
construct_id="sauerpod-logic-stack",
description="github.com/jangroth/sauerpod - state machine with core logic",
)
sls.add_dependency(sps)
slss = SauerpodPublishStackAlt(app, "sauerpod-publish-stack-alt")
slss.add_dependency(sps)
app.synth()