1
1
from shared .common import *
2
2
from shared .internal .security import IAM , IAMPOLICY
3
- from shared .internal .network import VPC , IGW , NATGATEWAY
4
- from shared .internal .compute import LAMBDA , EC2
3
+ from shared .internal .network import VPC , IGW , NATGATEWAY , ELB , ELBV2 , ROUTETABLE , SUBNET , NACL , SG , VPCPEERING
4
+ from shared .internal .network import VPCENDPOINT
5
+ from shared .internal .compute import LAMBDA , EC2 , EKS
5
6
from shared .internal .database import RDS , ELASTICACHE , DOCUMENTDB
6
7
from shared .internal .storage import EFS , S3POLICY
7
8
from shared .internal .analytics import ELASTICSEARCH , MSK
@@ -14,18 +15,44 @@ def __init__(self, vpc_options: VpcOptions):
14
15
self .vpc_options = vpc_options
15
16
16
17
def run (self ):
18
+
19
+ """ IAM and VPC validations """
17
20
IAM (self .vpc_options ).run ()
18
21
VPC (self .vpc_options ).run ()
19
- LAMBDA (self .vpc_options ).run ()
22
+
23
+ """ Compute resources """
20
24
EC2 (self .vpc_options ).run ()
25
+ LAMBDA (self .vpc_options ).run ()
26
+ EKS (self .vpc_options ).run ()
27
+
28
+ """ Database resources """
21
29
RDS (self .vpc_options ).run ()
22
- EFS (self .vpc_options ).run ()
23
30
ELASTICACHE (self .vpc_options ).run ()
24
- IAMPOLICY (self .vpc_options ).run ()
25
- S3POLICY (self .vpc_options ).run ()
26
- ELASTICSEARCH (self .vpc_options ).run ()
27
31
DOCUMENTDB (self .vpc_options ).run ()
32
+
33
+ """ Application resources """
28
34
SQSPOLICY (self .vpc_options ).run ()
35
+
36
+ """ Storage resources """
37
+ EFS (self .vpc_options ).run ()
38
+ S3POLICY (self .vpc_options ).run ()
39
+
40
+ """ Analytics resources """
41
+ ELASTICSEARCH (self .vpc_options ).run ()
29
42
MSK (self .vpc_options ).run ()
43
+
44
+ """ Security resources """
45
+ IAMPOLICY (self .vpc_options ).run ()
46
+
47
+ """ Network resources """
30
48
IGW (self .vpc_options ).run ()
31
49
NATGATEWAY (self .vpc_options ).run ()
50
+ ELB (self .vpc_options ).run ()
51
+ ELBV2 (self .vpc_options ).run ()
52
+ ROUTETABLE (self .vpc_options ).run ()
53
+ SUBNET (self .vpc_options ).run ()
54
+ NACL (self .vpc_options ).run ()
55
+ SG (self .vpc_options ).run ()
56
+ VPCPEERING (self .vpc_options ).run ()
57
+ VPCENDPOINT (self .vpc_options ).run ()
58
+
0 commit comments