-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.yaml
More file actions
79 lines (70 loc) · 2.28 KB
/
main.yaml
File metadata and controls
79 lines (70 loc) · 2.28 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
AWSTemplateFormatVersion: '2010-09-09'
Description: >-
SSM Parameter Store entries. Values may differ between prod and non-prod environments
Parameters:
StackName:
Type: String
Environment:
Type: String
Conditions:
IsProd: !Equals [ !Ref Environment, prod ]
Resources:
EnabledSiteODSCodesParameter:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub ${StackName}-PSUNotifyEnabledSiteODSCodes
Description: "List of site ODS codes for which notifications are enabled"
Type: String
Value: !If
- IsProd
- > # Prod notification enabled
FA565
- > # Non-prod
FA565
EnabledSystemsParameter:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub ${StackName}-PSUNotifyEnabledSystems
Description: "List of application names for which notifications are enabled"
Type: String
Value: !If
- IsProd
- > # Prod notification enabled
Apotec Ltd - Apotec CRM - Production,
CrxPatientApp,
nhsPrescriptionApp,
Titan PSU Prod
- > # Non-prod
Internal Test System,
Apotec Ltd - Apotec CRM - Production,
CrxPatientApp,
nhsPrescriptionApp,
Titan PSU Prod
BlockedSiteODSCodesParameter:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub ${StackName}-PSUNotifyBlockedSiteODSCodes
Description: "List of site ODS codes for which notifications are blocked"
Type: String
Value: !If
- IsProd
- > # Prod notification disabled
A83008
- > # Non-prod
A83008
Outputs:
EnabledSiteODSCodesParameterName:
Description: "Name of the SSM parameter holding enabled site ODS codes"
Value: !Ref EnabledSiteODSCodesParameter
Export:
Name: !Sub ${StackName}-PSUNotifyEnabledSiteODSCodesParam
EnabledSystemsParameterName:
Description: "Name of the SSM parameter holding enabled system names"
Value: !Ref EnabledSystemsParameter
Export:
Name: !Sub ${StackName}-PSUNotifyEnabledSystemsParam
BlockedSiteODSCodesParameterName:
Description: "Name of the SSM parameter holding blocked site ODS codes"
Value: !Ref BlockedSiteODSCodesParameter
Export:
Name: !Sub ${StackName}-PSUNotifyBlockedSiteODSCodesParam