File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ Resources:
9696 Location : parameters/main.yaml
9797 Parameters :
9898 StackName : !Ref AWS::StackName
99+ Environment : !Ref Environment
99100
100101 Tables :
101102 Type : AWS::Serverless::Application
Original file line number Diff line number Diff line change 11AWSTemplateFormatVersion : ' 2010-09-09'
22Description : >-
3- SSM Parameter Store entries. Can be temporarily updated in the console, but will be overwritten by deployments.
3+ SSM Parameter Store entries. Values may differ between prod and non-prod environments
44
55Parameters :
66 StackName :
77 Type : String
88
9+ Environment :
10+ Type : String
11+
12+ Conditions :
13+ IsProd : !Equals [ !Ref Environment, prod ]
14+
915Resources :
1016 EnabledSiteODSCodesParameter :
1117 Type : AWS::SSM::Parameter
1218 Properties :
1319 Name : !Sub ${StackName}-PSUNotifyEnabledSiteODSCodes
1420 Description : " List of site ODS codes for which notifications are enabled"
1521 Type : StringList
16- # comma-separated list
17- Value : >
18- FA565
22+ Value : !If
23+ - IsProd
24+ - > # Prod notification enabled
25+ FA565
26+ - > # Non-prod
27+ FA565
1928
2029 EnabledSystemsParameter :
2130 Type : AWS::SSM::Parameter
2231 Properties :
2332 Name : !Sub ${StackName}-PSUNotifyEnabledSystems
2433 Description : " List of application names for which notifications are enabled"
2534 Type : StringList
26- # comma-separated list
27- Value : >
28- Internal Test System,
29- Apotec Ltd - Apotec CRM - Production,
30- CrxPatientApp,
31- nhsPrescriptionApp,
32- Titan PSU Prod
35+ Value : !If
36+ - IsProd
37+ - > # Prod notification enabled
38+ Apotec Ltd - Apotec CRM - Production,
39+ CrxPatientApp,
40+ nhsPrescriptionApp,
41+ Titan PSU Prod
42+ - > # Non-prod
43+ Internal Test System,
44+ Apotec Ltd - Apotec CRM - Production,
45+ CrxPatientApp,
46+ nhsPrescriptionApp,
47+ Titan PSU Prod
3348
3449 BlockedSiteODSCodesParameter :
3550 Type : AWS::SSM::Parameter
3651 Properties :
3752 Name : !Sub ${StackName}-PSUNotifyBlockedSiteODSCodes
3853 Description : " List of site ODS codes for which notifications are blocked"
3954 Type : StringList
40- # comma-separated list
41- Value : >
42- A83008
55+ Value : !If
56+ - IsProd
57+ - > # Prod notification enabled
58+ A83008
59+ - > # Non-prod
60+ A83008
4361
4462Outputs :
4563 EnabledSiteODSCodesParameterName :
You can’t perform that action at this time.
0 commit comments