Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
ARTIFACT_BUCKET_PREFIX: PR-${{needs.get_issue_number.outputs.issue_number}}
AWS_ENVIRONMENT: dev
APIGEE_ENVIRONMENT: internal-dev
ENABLE_MUTUAL_TLS: false
ENABLE_MUTUAL_TLS: true
BUILD_ARTIFACT: packaged_code
TRUSTSTORE_FILE: psu-truststore.pem
VERSION_NUMBER: PR-${{ needs.get_issue_number.outputs.issue_number }}
Expand All @@ -91,7 +91,7 @@ jobs:
ARTIFACT_BUCKET_PREFIX: PR-${{needs.get_issue_number.outputs.issue_number}}-sandbox
AWS_ENVIRONMENT: dev
APIGEE_ENVIRONMENT: internal-dev-sandbox
ENABLE_MUTUAL_TLS: false
ENABLE_MUTUAL_TLS: true
BUILD_ARTIFACT: packaged_sandbox_code
TRUSTSTORE_FILE: psu-sandbox-truststore.pem
VERSION_NUMBER: PR-${{ needs.get_issue_number.outputs.issue_number }}
Expand Down
79 changes: 79 additions & 0 deletions SAMtemplates/parameters/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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-prodfdsaafdsa
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
Loading