unity-sds / unity-data-services

Apache License 2.0
0 stars 3 forks source link

Replace health check SSM #397

Closed ngachung closed 2 months ago

ngachung commented 2 months ago

https://github.com/unity-sds/unity-data-services/issues/351 has been superseded by new requirements as captured in https://github.com/unity-sds/unity-monorepo/tree/main/schemas/health-service

wphyojpl commented 2 months ago

Looks like the key needs to be changed to "/unity/shared-services/component/data-catalog/" and 2 URLs are needed.

{
    "componentName": "Data Catalog",
    "healthCheckUrl": "https:/....",
    "landingPageUrl": "https://..."
}

healthCheckUrl can be the public facing API Gateway catalog URL which stac browser uses. landingPage can be either api gateway's open API json page or stac browser page.

wphyojpl commented 2 months ago

healthCheck is collections URL (let UCS figure out how to pass creds). landingPage is stac browser.

wphyojpl commented 2 months ago

This is the result.

{"componentName":"Data Catalog","healthCheckUrl":"https://d3vc8w9zcq658.cloudfront.net/data-sbx/collections","landingPageUrl":"https://www.dev.mdps.mcp.nasa.gov:4443/data/misc/stac_entry"}

But it cannot end with /