serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.3k stars 182 forks source link

Component: PubSub #453

Open eahefnawy opened 5 years ago

eahefnawy commented 5 years ago

As part of the #449 epic, we need to create a cross provider higher level abstraction for PubSub. It should use the aws-sns-topic & aws-sns-subscription components to construct a new simpler PubSub component.

It should minimally look something like this:

myFunction:
    component: "@serverless/function"
    inputs:
        ...

PubSub:
    component: "@serverless/pub-sub"
    inputs:
        - source: topic-name # eventually this should support other providers and not specific to aws topics
          function: ${comp:myFunction}
        - ... # more PubSub pairings here
eahefnawy commented 5 years ago

@laardee would love your input here 🙌