-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
55 lines (45 loc) · 1.42 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
#!/usr/bin/env python3
import os
from aws_cdk import core
from stacks.awstags_stack import AwsTagsStack
from stacks.aws_session_stack import AwsSessionStack
from stacks.dynamodb_stack import DbStack
GLOBAL_SERVICES_REGION = "us-east-1"
app = core.App()
AwsTagsStack(app,
"aws-tags-stack",
env=core.Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"],
region=os.environ["CDK_DEFAULT_REGION"]
),
tags={
"Project": "AwsTags"
})
AwsSessionStack(app,
"aws-session-stack",
env=core.Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"],
region=os.environ["CDK_DEFAULT_REGION"]
),
tags={
"Project": "AwsTags"
})
AwsSessionStack(app,
"aws-session-stack-us",
env=core.Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"],
region=GLOBAL_SERVICES_REGION
),
tags={
"Project": "AwsTags"
})
# DbStack(app,
# "db-stack",
# env=core.Environment(
# account=os.environ["CDK_DEFAULT_ACCOUNT"],
# region=os.environ["CDK_DEFAULT_REGION"]
# ),
# tags={
# "Project": "AwsTags"
# })
app.synth()