forked from NHSDigital/summary-care-record-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs-proxies-deploy.yml
More file actions
executable file
·61 lines (61 loc) · 2.47 KB
/
ecs-proxies-deploy.yml
File metadata and controls
executable file
·61 lines (61 loc) · 2.47 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
docker_service_cpu: 2048
docker_service_memory: 4096
docker_service_autoscaling_prod:
service_metric: ECSServiceAverageCPUUtilization
target_value: 50
docker_service_autoscaling: "{{ docker_service_autoscaling_prod if APIGEE_ENVIRONMENT in ('ref', 'prod') else dict() }}"
docker_service:
- name: scr-api
expose: true
port: 9000
environment:
- name: SCR_LOGGING_LEVEL
value: "{{ 'DEBUG' if APIGEE_ENVIRONMENT in ('internal-dev', 'int') else 'INFO' }}"
- name: SCR_SANDBOX_MODE
value: "{{ SANDBOX_MODE_ENABLED }}"
- name: TLS_ENABLED
value: "True"
- name: HOST_URL
value: "{{ APIGEE_HOSTNAME }}"
- name: SERVICE_BASE_PATH
value: "{{ SERVICE_BASE_PATH }}"
- name: IDENTITY_SERVICE_URI
value: "{{ '/oauth2-no-smartcard/userinfo' if APIGEE_ENVIRONMENT == 'int' else '/oauth2/userinfo' }}"
- name: SDS_URL
value: "localhost:9001"
# SDS_URL is not at present routed to a environment variable
# To route it to anywhere other than local host minor code changes are required to move from http to https
secrets:
- name: APIGEE_HOST
valueFrom: "/{{ account }}/platform-common/egress/hosts/apigee-{{ APIGEE_ENVIRONMENT }}"
- name: SCR_SPINE_URL
valueFrom: '/{{ account }}/platform-common/egress/hosts/spine-clinicals-{{ SPINE_ENV }}'
- name: SCR_PARTY_ID_TO
valueFrom: "/{{ account }}/api-deployment/scr/env-int/party-id"
- name: SCR_NHSD_ASID_TO
valueFrom: "/{{ account }}/api-deployment/scr/env-int/asid-to"
health_check:
matcher: "200"
path: "/healthcheck"
- name: sds-api
expose: false
port: 9001
environment:
- name: SDS_LOG_LEVEL
value: NOTSET
- name: SDS_LDAP_SEARCH_BASE
value: ou=services,o=nhs
- name: SDS_LDAP_URL
value: ldap.nis1.national.ncrs.nhs.uk
- name: SDS_SPINE_CORE_ODS_CODE
value: "YES"
secrets:
- name: SDS_SECRET_CLIENT_KEY
valueFrom: "arn:aws:secretsmanager:eu-west-2:{{ PTL_ACCOUNT_ID }}:secret:ptl/cis/ldap.nis1.national.ncrs.nhs.uk/key"
- name: SDS_SECRET_CLIENT_CERT
valueFrom: "arn:aws:secretsmanager:eu-west-2:{{ PTL_ACCOUNT_ID }}:secret:ptl/cis/ldap.nis1.national.ncrs.nhs.uk/crt"
- name: SDS_SECRET_CA_CERTS
valueFrom: "arn:aws:secretsmanager:eu-west-2:{{ PTL_ACCOUNT_ID }}:secret:ptl/ca-certs/nhsd-ptl/root-ca/crt"
health_check:
matcher: "200"
path: "/healthcheck"