AWS SNS Topic Subscriptions

Build Status Tag License

This Terraform module creates SNS Topic subcriptions from a list of input

Usage

sns_topic_subscriptions

locals {
  sns_topic_subscriptions = [
    {
      name                   = "random_named"
      topic_arn              = "arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged"
      protocol               = "lambda"
      endpoint               = "some_arn"
      endpoint_auto_confirms = true
    },
    {
      name                   = "random_named2"
      topic_arn              = "arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged"
      protocol               = "lambda"
      endpoint               = "some_arn2"
      endpoint_auto_confirms = false
    },
  ]
}


module "subscriptions" {
  source                  = "../../"
  sns_topic_subscriptions = local.sns_topic_subscriptions
}

Requirements

Name Version
terraform >= 0.12.26
aws >= 3

Providers

Name Version
aws >= 3

Modules

No modules.

Resources

Name Type
aws_sns_topic_subscription.this resource

Inputs

Name Description Type Default Required
sns_topic_subscriptions SNS Subscriptions
list(object({
name = string
topic_arn = string
protocol = string
endpoint = string
endpoint_auto_confirms = bool
raw_message_delivery = bool
filter_policy = string
redrive_policy = string
}))
[] no

Outputs

No outputs.

License

MIT

Copyright (c) 2021 Flaconi GmbH