forked from aws-samples/graviton-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
38 lines (30 loc) · 1.99 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
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0
#!/usr/bin/env python3
from aws_cdk import core
from graviton2.rds_graviton.rds_mysql_5 import CdkRds5Stack
from graviton2.rds_graviton.rds_mysql_8 import CdkRds8Stack
from graviton2.rds_graviton.rds_restore import CdkRdsRestoreStack
from graviton2.vpc_base.vpc import CdkVpcStack
from graviton2.cs_graviton.eks_graviton2 import CdkEksStack
from graviton2.cs_graviton.ecs_graviton2 import CdkEcsStack
from graviton2.cs_graviton.pipeline_graviton2 import CdkPipelineStack
from graviton2.cs_graviton.pipeline_netcore_graviton2 import CdkPipelineDotNetStack
from graviton2.elasticsearch_graviton.es import CdkElasticsearchStack
#from graviton2.emr_graviton.emr_graviton2 import CdkEmrStack
class GravitonID(core.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.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.emr_module = CdkEmrStack(self, self.stack_name + "-emr", self.base_module.vpc)
self.es_module = CdkElasticsearchStack(self, self.stack_name + "-es", self.base_module.vpc)
if __name__ == '__main__':
app = GravitonID()
app.synth()