File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ functions:
72
72
handler : index.handler
73
73
memorySize : 512
74
74
timeout : 60
75
+ environment :
76
+ POST_INGEST_TOPIC_ARN : !Ref postIngestTopic
75
77
package :
76
78
artifact : dist/ingest/ingest.zip
77
79
events :
@@ -101,6 +103,14 @@ resources:
101
103
Type : " AWS::SNS::Topic"
102
104
Properties :
103
105
TopicName : ${self:service}-${self:provider.stage}-ingest
106
+ postIngestTopic :
107
+ # After a collection or item is ingested, the status of the ingest (success
108
+ # or failure) along with details of the collection or item are sent to this
109
+ # SNS topic. To take future action on items after they are ingested
110
+ # suscribe an endpoint to this topic
111
+ Type : AWS::SNS::Topic
112
+ Properties :
113
+ TopicName : ${self:service}-${self:provider.stage}-post-ingest
104
114
deadLetterQueue :
105
115
Type : AWS::SQS::Queue
106
116
Properties :
You can’t perform that action at this time.
0 commit comments