Sha256: 639953d9c587a97311eb1b8ef2ffd4a4fafc3074ec7f87347e9db39e7227b482

Contents?: true

Size: 922 Bytes

Versions: 7

Compression:

Stored size: 922 Bytes

Contents

<% subscriptions.each do |subscription| -%>
<% if subscription["Protocol"].include?("email") -%>
/*
<% end -%>
resource "aws_sns_topic_subscription" "<%= module_name_of(subscription) %>" {
  topic_arn                       = "<%= subscription["TopicArn"] %>"
  protocol                        = "<%= subscription["Protocol"] %>"
  endpoint                        = "<%= subscription["Endpoint"] %>"
<% if subscription.key? "RawMessageDelivery" -%>
  raw_message_delivery            = "<%= subscription["RawMessageDelivery"] %>"
<% end -%>
<% if subscription.key? "ConfirmationTimeoutInMinutes" %>
  confirmation_timeout_in_minutes = "<%= subscription["ConfirmationTimeoutInMinutes"] %>"
<% end -%>
<% if subscription.key? "EndpointAutoConfirms" %>
  endpoint_auto_confirms          = "<%= subscription["EndpointAutoConfirms"] %>"
<% end -%>
}
<% if subscription["Protocol"].include?("email") -%>
*/
<% end -%>

<% end -%>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
terraforming-0.18.0 lib/terraforming/template/tf/sns_topic_subscription.erb
terraforming-0.17.0 lib/terraforming/template/tf/sns_topic_subscription.erb
terraforming-0.16.0 lib/terraforming/template/tf/sns_topic_subscription.erb
terraforming-0.15.0 lib/terraforming/template/tf/sns_topic_subscription.erb
aws-insight-0.14.1 lib/terraforming/template/tf/sns_topic_subscription.erb
aws-insight-0.14.0 lib/terraforming/template/tf/sns_topic_subscription.erb
terraforming-0.14.0 lib/terraforming/template/tf/sns_topic_subscription.erb