-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathecs-proxies-deploy-prod.yml
More file actions
executable file
·61 lines (61 loc) · 2.26 KB
/
ecs-proxies-deploy-prod.yml
File metadata and controls
executable file
·61 lines (61 loc) · 2.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
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 }}"
docker_service:
- name: scr-api
expose: true
port: 9000
environment:
- name: SCR_LOGGING_LEVEL
value: "INFO"
- name: SCR_SANDBOX_MODE
value: "False"
- 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/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-prod/party-id"
- name: SCR_NHSD_ASID_TO
valueFrom: "/{{ account }}/api-deployment/scr/env-prod/asid-to"
health_check:
matcher: "200"
path: "/healthcheck"
- name: sds-api
expose: false
port: 9001
environment:
- name: SDS_LOG_LEVEL
value: "INFO"
- name: SDS_LDAP_SEARCH_BASE
value: ou=services,o=nhs
- name: SDS_LDAP_URL
value: ldap.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:{{ PROD_ACCOUNT_ID }}:secret:prod/client/ldap.national.ncrs.nhs.uk/key"
- name: SDS_SECRET_CLIENT_CERT
valueFrom: "arn:aws:secretsmanager:eu-west-2:{{ PROD_ACCOUNT_ID }}:secret:prod/client/ldap.national.ncrs.nhs.uk/crt"
- name: SDS_SECRET_CA_CERTS
valueFrom: "arn:aws:secretsmanager:eu-west-2:{{ PROD_ACCOUNT_ID }}:secret:prod/ca-certs/nhsd-prod/root-ca-g2/crt"
health_check:
matcher: "200"
path: "/healthcheck"