-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.py
executable file
·49 lines (39 loc) · 1.34 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python3
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from aws_cdk.core import App
from pathlib import Path
from infra.standard_utils import Env
from infra.baseline_stack import BaselineStack # common s3bucket resource
from infra.template_stack import TemplateStack # worker template resource
from infra.pipeline_stack import PipelineStack
deploy = Env.GetDeploy()
prefix = Env.GetPrefix()
suffix = Env.GetSuffix()
if __name__ == '__main__':
app = App()
# baseline_stack = BaselineStack(
# scope = app,
# id = f'TDD-{deploy}-Baseline',
# prefix = prefix,
# suffix = suffix
# )
template_stack = TemplateStack(
scope = app,
id = f'TDD-{deploy}-Template',
prefix = prefix,
suffix = suffix,
source = Path('source/augment-ui').absolute()
)
pipeline_stack = PipelineStack(
scope = app,
id = f'TDD-{deploy}-Pipeline',
prefix = prefix,
suffix = suffix,
source = Path('source/lambdas').absolute(),
liquid = template_stack.get_resources()['liquid_uri']
)
# template_stack.add_dependency(baseline_stack)
# pipeline_stack.add_dependency(baseline_stack)
pipeline_stack.add_dependency(template_stack)
app.synth()