-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.py
More file actions
50 lines (41 loc) · 1.26 KB
/
Copy pathapp.py
File metadata and controls
50 lines (41 loc) · 1.26 KB
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
#!/usr/bin/env python3
from aws_cdk import (
core,
)
from app_stack import YourAppStack
from pipeline.pipeline_stack import PipelineStack
app = core.App()
env = {'account': '9999999999999', 'region': 'xx-xxxx-9'}
tags = {
# Tailor these as you wish
'Workload': 'your-app',
'Team': 'YourTeam',
'Name': 'Your Name',
'Email': 'your.name@example.com',
'Phone': '9999999999999',
}
YourAppStack(app, "app-dev", env=env, tags=tags)
YourAppStack(app, "app-staging", env=env, tags=tags)
YourAppStack(app, "app-prod", env=env, tags=tags)
dev_stack = PipelineStack(
app, 'pipeline-dev', env=env, tags=tags,
project_name='YourApp', stage='dev',
git_repo='your-gitcommit-repo', git_branch='master',
service_stacks=['app-dev'],
sns_emails=['your.name@example.com'],
)
PipelineStack(
app, 'pipeline-staging', env=env, tags=tags,
project_name='YourApp', stage='staging',
git_repo='your-gitcommit-repo', git_branch='staging',
service_stacks=['app-staging'],
sns_emails=None,
)
PipelineStack(
app, 'pipeline-prod', env=env, tags=tags,
project_name='YourApp', stage='prod',
git_repo='your-gitcommit-repo', git_branch='prod',
service_stacks=['app-prod'],
sns_emails=['some.other.name@example.com'],
)
app.synth()