Skip to content

Commit 8cd7dba

Browse files
committed
Add post-ingest SNS publishing details to README
1 parent d799da4 commit 8cd7dba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ subgraph ingest[Ingest]
9090
ingestSnsTopic[Ingest SNS Topic]
9191
ingestQueue[Ingest SQS Queue]
9292
ingestLambda[Ingest Lambda]
93+
postIngestSnsTopic[Post-Ingest SNS Topic]
9394
9495
ingestDeadLetterQueue[Ingest Dead Letter Queue]
9596
end
@@ -108,7 +109,9 @@ opensearch[(OpenSearch)]
108109
itemsForIngest --> ingestSnsTopic
109110
ingestSnsTopic --> ingestQueue
110111
ingestQueue --> ingestLambda
112+
ingestQueue --> ingestDeadLetterQueue
111113
ingestLambda --> opensearch
114+
ingestLambda --> postIngestSnsTopic
112115
113116
114117
%% API workflow
@@ -914,6 +917,17 @@ ingestion will either fail (in the case of a single Item ingest) or if auto-crea
914917

915918
If a collection or item is ingested, and an item with that id already exists in STAC, the new item will completely replace the old item.
916919

920+
After a collection or item is ingested, the status of the ingest (success or failure) along with details of the collection or item are sent to a post-ingest SNS topic. To take action on items after they are ingested subscribe an endpoint to this topic.
921+
922+
Messages published to the post-ingest SNS topic include the following atributes that can be used for filtering:
923+
924+
| attribute | type | values |
925+
| ------------ | ------ | ------------------------ |
926+
| recordType | String | `Collection` or `Item` |
927+
| ingestStatus | String | `successful` or `failed` |
928+
| collection | String | |
929+
930+
917931
### Ingesting large items
918932

919933
There is a 256 KB limit on the size of SQS messages. Larger items can by publishing a message to the `stac-server-<stage>-ingest` SNS topic in with the format:

0 commit comments

Comments
 (0)