-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
39 lines (32 loc) · 953 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
import aws_cdk as cdk
from constructs_package.constants import AwsAccountId
from constructs_package.constants import AwsRegion
from constructs_package.constants import AwsStage
from infra.constructs.b1.static_site import HostedZoneType
from infra.stack import FrontendStack
app = cdk.App()
FrontendStack(
scope=app,
id=f"Frontend-{AwsStage.SANDBOX}",
env=cdk.Environment(
account=AwsAccountId.SANDBOX, region=AwsRegion.US_EAST_1
),
hosted_zone_type=HostedZoneType.PRIVATE,
)
FrontendStack(
scope=app,
id=f"Frontend-{AwsStage.STAGING}",
env=cdk.Environment(
account=AwsAccountId.STAGING, region=AwsRegion.US_EAST_1
),
hosted_zone_type=HostedZoneType.PRIVATE,
)
FrontendStack(
scope=app,
id=f"Frontend-{AwsStage.PRODUCTION}",
env=cdk.Environment(
account=AwsAccountId.PRODUCTION, region=AwsRegion.US_EAST_1
),
hosted_zone_type=HostedZoneType.PUBLIC,
)
app.synth()