Elasticsearch · Arazzo Workflow
Elasticsearch Bootstrap an Index
Version 1.0.0
Check the cluster is ready, create an index only if it does not already exist, and read back its settings and mappings.
Provider
Workflows
bootstrap-index
Idempotently create an Elasticsearch index and verify its resulting configuration.
Verifies cluster health, detects whether the index exists, creates it when missing, and reads back the resolved settings and mappings so the caller can confirm the index matches the intended definition.
1
checkClusterReady
clusterHealth
Read cluster health before writing anything, so the workflow fails fast against a cluster that cannot accept an index creation.
2
probeIndex
indexExists
Probe for the target index with a HEAD request. A 404 here is an expected answer, not a failure, so both 200 and 404 are treated as success and the status code drives the branch.
3
createIndex
createIndex
Create the index with the supplied settings and mappings. Only reached when the probe returned 404, which keeps the workflow idempotent.
4
readIndex
getIndex
Read the index back to confirm the settings and mappings Elasticsearch actually resolved, which may include defaults the caller did not supply.