-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
25 lines (20 loc) · 791 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
#!/usr/bin/env python3
import os
from aws_cdk import App, Environment
from lib.stack import StacksetDriftDetectionStack, StacksetDriftDetectionStackProps
app = App()
_ = StacksetDriftDetectionStack(
app,
"StacksetDriftDetectionStack",
env=Environment(
account=os.environ["CDK_DEFAULT_ACCOUNT"],
region=os.environ["CDK_DEFAULT_REGION"],
),
props=StacksetDriftDetectionStackProps(
stackset_names=["ExampleStackSetName"], # Provide a list of StackSet names to monitor
schedule_expression="cron(0 5 ? * 2 *)", # Provide a schedule interval (cron or rate)
notification_email_endpoints=[""], # Provide a list of email addresses
notification_https_endpoints=[""], # Provide a list of HTTPS endpoints
),
)
app.synth()