-
Notifications
You must be signed in to change notification settings - Fork 25
/
app.py
72 lines (64 loc) · 2.83 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0
#!/usr/bin/env python3
import aws_cdk as cdk
from graviton.rds_graviton.rds_mysql_5 import CdkRds5Stack
from graviton.rds_graviton.rds_mysql_8 import CdkRds8Stack
from graviton.rds_graviton.rds_pgsql_14 import CdkPgSQLStack
from graviton.rds_graviton.rds_pg_restore import CdkRdsPgRestoreStack
from graviton.rds_graviton.rds_restore import CdkRdsRestoreStack
from graviton.vpc_base.vpc import CdkVpcStack
from graviton.cs_graviton.eks_graviton import CdkEksStack
from graviton.cs_graviton.ecs_graviton import CdkEcsStack
from graviton.cs_graviton.pipeline_graviton import CdkPipelineStack
from graviton.cs_graviton.pipeline_netcore_graviton import CdkPipelineDotNetStack
from graviton.opensearch_graviton.open_search import CdkOpenSearchStack
from graviton.perf_graviton.perf import CdkPerfStack
from graviton.ec2_graviton.ec2 import CdkEC2Stack
from graviton.aurora_graviton.aurora import CdkAuroraStack
class GravitonID(cdk.App):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.stack_name = "GravitonID"
self.base_module = CdkVpcStack(self, self.stack_name + "-base")
self.rds_5_module = CdkRds5Stack(
self, self.stack_name + "-rds-5", self.base_module.vpc
)
self.rds_8_module = CdkRds8Stack(
self, self.stack_name + "-rds-8", self.base_module.vpc
)
self.rds_pg14_module = CdkPgSQLStack(
self, self.stack_name + "-rds-pg14", self.base_module.vpc
)
self.restore_pg_module = CdkRdsPgRestoreStack(
self, self.stack_name + "-rds-pg-restore",self.base_module.vpc
)
self.restore_module = CdkRdsRestoreStack(
self, self.stack_name + "-rds-restore", self.base_module.vpc
)
self.eks_module = CdkEksStack(
self, self.stack_name + "-eks", self.base_module.vpc
)
self.ecs_module = CdkEcsStack(
self, self.stack_name + "-ecs", self.base_module.vpc
)
self.pipeline_module = CdkPipelineStack(
self, self.stack_name + "-pipeline", self.base_module.vpc
)
self.pipeline_dotnet_module = CdkPipelineDotNetStack(
self, self.stack_name + "-pipeline-dotnet", self.base_module.vpc
)
self.es_module = CdkOpenSearchStack(
self, self.stack_name + "-os", self.base_module.vpc
)
self.perf_module = CdkPerfStack(
self, self.stack_name + "-perf", self.base_module.vpc
)
self.ec2_module = CdkEC2Stack(
self, self.stack_name + "-ec2", self.base_module.vpc
)
self.ec2_module = CdkAuroraStack(
self, self.stack_name + "-aurora", self.base_module.vpc
)
if __name__ == "__main__":
app = GravitonID()
app.synth()