-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.py
30 lines (21 loc) · 902 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
#!/usr/bin/env python3
# (c) 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved.
# This AWS Content is provided subject to the terms of the AWS Customer
# Agreement available at https://aws.amazon.com/agreement or other written
# agreement between Customer and Amazon Web Services, Inc.
from aws_cdk import App, Aspects, Tags
from cdk_nag import AwsSolutionsChecks
from egress_backend.egress_backend_stack import EgressBackendStack
ENVIRONMENT_TYPE = "Prod"
app = App()
egress_backend_stack = EgressBackendStack(
app, "EgressAppBackend", env_id=ENVIRONMENT_TYPE
)
Tags.of(egress_backend_stack).add("Environment", ENVIRONMENT_TYPE)
for tag_key, tag_value in app.node.try_get_context(ENVIRONMENT_TYPE)[
"resource_tags"
].items():
Tags.of(egress_backend_stack).add(tag_key, tag_value)
# Stack security scanning
Aspects.of(app).add(AwsSolutionsChecks())
app.synth()