-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.py
31 lines (20 loc) · 852 Bytes
/
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
#!/usr/bin/env python3
from aws_cdk import core
from app_stacks.vpc_stack import VpcStack
from app_stacks.elasticache_stack import ElasticacheForAppPerformanceStack
app = core.App()
# VPC Stack for hosting EC2 and ElastiCache
vpc_stack = VpcStack(app, "elasticache-for-app-performance-vpc-stack")
# ElastiCache
ec2_stack = ElasticacheForAppPerformanceStack(
app, "elasticache-for-app-performance", vpc=vpc_stack.vpc)
# Stack Level Tagging
core.Tag.add(app, key="Owner",
value=app.node.try_get_context('owner'))
core.Tag.add(app, key="OwnerProfile",
value=app.node.try_get_context('github_profile'))
core.Tag.add(app, key="GithubRepo",
value=app.node.try_get_context('github_repo_url'))
core.Tag.add(app, key="ToKnowMore",
value=app.node.try_get_context('youtube_profile'))
app.synth()