NASA-PDS / registry-sweepers

Scripts that run regularly on the registry database, to clean and consolidate information
Apache License 2.0
0 stars 1 forks source link

registry-sweeper deployment on AWS (prod) #17

Closed tloubrieu-jpl closed 7 months ago

tloubrieu-jpl commented 1 year ago

💡 Description

tloubrieu-jpl commented 1 year ago

Issue moved to NASA-PDS/registry-sweepers NASA-PDS/registry#15 via Zenhub

alexdunnjpl commented 1 year ago

curl to update index prior to deployment

curl --location --request PUT 'https://<HOSTNAME>/registry/_mapping' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <CREDENTIALS>' \
--data '{
    "properties": {
        "ops:Provenance/ops:parent_bundle_identifier": {
            "type": "keyword"
        },
        "ops:Provenance/ops:parent_collection_identifier": {
            "type": "keyword"
        }
    }
}'
alexdunnjpl commented 1 year ago

Per @tloubrieu-jpl

Thanks @alexdunnjpl , could you use registry-operation repository to log the request to be run on prod.

You can create a directory in 'src/pds/registry/operations'

Thanks