x-sns

Syntax

x-sns syntax reference
x-sns:
  Topics:
    TopicA:
      Properties: {}
      Settings: {}
      Services: []
  Subscriptions:
    SubscriptionA:
      Properties: {}
      Settings: {}
      Topics: []

Tip

You can find the test files here to use as reference for your use-case.

Warning

At this current version, Subscriptions are not supported.

Properties

Refer to AWS SNS Topic Documentation for SNS Topics

Lookup

Lookup is currently implemented for SNS topics!

Examples

Create new topics
x-sns:
  Topics:
    abcd:
      Properties: {}
      Services:
        - name: app01
          access: Publish
        - name: you-too
          access: Publish
Create and Lookup SNS topics
x-sns:
  Topics:
    abcd:
      Properties: {}
      Services:
        - name: app01
          access: Publish
        - name: you-too
          access: Publish

    hello:
      Lookup:
        Tags:
          - costcentre: lambda
          - composexdev: "yes"
      Services:
        - name: app03
          access: Publish