45 lines
1 KiB
Python
45 lines
1 KiB
Python
#!/usr/bin/env python3
|
|
import os
|
|
|
|
import aws_cdk as cdk
|
|
|
|
from tradhoxdomain.tradhoxdomain_stack import TradhoxdomainStack
|
|
from partner.partner_stack import PartnerStack
|
|
from shopping.shopping_stack import ShoppingStack
|
|
|
|
|
|
app = cdk.App()
|
|
|
|
# Partner stack in ap-south-2
|
|
partner_stack = PartnerStack(
|
|
app, "PartnerStack",
|
|
env=cdk.Environment(
|
|
account=os.getenv("CDK_DEFAULT_ACCOUNT"),
|
|
region="ap-south-2",
|
|
),
|
|
cross_region_references=True,
|
|
)
|
|
|
|
# Shopping stack in ap-south-2
|
|
shopping_stack = ShoppingStack(
|
|
app, "ShoppingStack",
|
|
env=cdk.Environment(
|
|
account=os.getenv("CDK_DEFAULT_ACCOUNT"),
|
|
region="ap-south-2",
|
|
),
|
|
cross_region_references=True,
|
|
)
|
|
|
|
# Domain stack in ap-south-2
|
|
TradhoxdomainStack(
|
|
app, "TradhoxdomainStack",
|
|
env=cdk.Environment(
|
|
account=os.getenv("CDK_DEFAULT_ACCOUNT"),
|
|
region="ap-south-2",
|
|
),
|
|
cross_region_references=True,
|
|
partner_distribution=partner_stack.distribution,
|
|
shopping_distribution=shopping_stack.distribution,
|
|
)
|
|
|
|
app.synth()
|