Skip to content

Commit

Permalink
Merge pull request #897 from aehrc/fix/update-deployments
Browse files Browse the repository at this point in the history
Fix/update deployments
  • Loading branch information
fongsean authored Jul 1, 2024
2 parents eb6e365 + fb93bf7 commit d09e0da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class EhrProxyAppStack extends cdk.Stack {
port: smartProxy.containerPort,
protocol: ApplicationProtocol.HTTP,
targets: [hapiTarget],
healthCheck: { path: '/fhir/metadata' }
healthCheck: { path: '/fhir/metadata', interval: cdk.Duration.seconds(180) }
});
listener.addAction('EhrProxyHapiAction', {
action: ListenerAction.forward([hapiTargetGroup]),
Expand Down
4 changes: 2 additions & 2 deletions deployment/ehr-proxy/hapi-endpoint/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export class HapiEndpoint extends Construct {
// Create a task definition that contains both the application and cache containers.
const taskDefinition = new TaskDefinition(this, 'EhrProxyHapiTaskDefinition', {
compatibility: Compatibility.FARGATE,
cpu: '2048',
memoryMiB: '4096'
cpu: '1024',
memoryMiB: '2048'
});

// Create the cache container.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class FormsServerAppStack extends cdk.Stack {
port: hapi.containerPort,
protocol: ApplicationProtocol.HTTP,
targets: [hapiTarget],
healthCheck: { path: '/fhir/metadata' }
healthCheck: { path: '/fhir/metadata', interval: cdk.Duration.seconds(180) }
});
listener.addAction('FormsServerDefaultAction', {
action: ListenerAction.forward([hapiTargetGroup])
Expand Down
3 changes: 2 additions & 1 deletion deployment/forms-server/hapi-endpoint/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class HapiEndpoint extends Construct {
}),
environment: {
use_apache_address_strategy: 'true',
'hapi.fhir.openapi_enabled': 'false'
'hapi.fhir.openapi_enabled': 'false',
'hapi.fhir.cr.enabled': 'true'
}
});

Expand Down

0 comments on commit d09e0da

Please sign in to comment.