-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
48 lines (37 loc) · 803 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from enum import Enum
import aws_cdk as cdk
from src.stack import DemoApi
class AWSAccount(Enum):
"""AWS Account IDs"""
DEVELOPMENT = "267631547124"
STAGING = "123456789012"
PRODUCTION = "987654321098"
app = cdk.App()
DemoApi(
scope=app,
id="DemoApi-Development",
env=cdk.Environment(
account=AWSAccount.DEVELOPMENT.value,
region="us-east-1",
),
stage="development",
)
DemoApi(
scope=app,
id="DemoApi-Staging",
env=cdk.Environment(
account=AWSAccount.STAGING.value,
region="us-east-1",
),
stage="staging",
)
DemoApi(
scope=app,
id="DemoApi-Production",
env=cdk.Environment(
account=AWSAccount.PRODUCTION.value,
region="us-east-1",
),
stage="production",
)
app.synth()