Skip to content

Commit

Permalink
feat(topic): add fixed endpoint subscriptions (#786)
Browse files Browse the repository at this point in the history
* feat(topic): add fixed endpoint subscriptions

* fix: missing delivery policy declartion
  • Loading branch information
roleyfoley authored Oct 30, 2023
1 parent e81a478 commit 8bc64d8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions aws/components/topic/setup.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,29 @@
/]
[/#if]
[/#list]

[#list solution.Endpoints as id, endpoint]
[#local deliveryPolicy = {}]
[#switch endpoint.Protocol ]
[#case "http"]
[#case "https" ]
[#local deliveryPolicy = getSNSDeliveryPolicy(solution.DeliveryPolicy) ]
[#break]
[/#switch]

[#if deploymentSubsetRequired(TOPIC_COMPONENT_TYPE, true)]
[@createSNSSubscription
id=formatId(subscriptionId, "endpoint", id)
topicId=topicId
endpoint=endpoint.Address
protocol=endpoint.Protocol
rawMessageDelivery=solution.RawMessageDelivery
deliveryPolicy=deliveryPolicy
filterPolicy=filterPolicy
dependencies=subscriptionDependencies
/]
[/#if]
[/#list]
[#break]
[/#switch]
[/#list]
Expand Down

0 comments on commit 8bc64d8

Please sign in to comment.