This Terraform module creates SNS Topic subcriptions from a list of input
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
}
Name | Version |
---|---|
terraform | >= 0.12.26 |
aws | >= 3 |
Name | Version |
---|---|
aws | >= 3 |
No modules.
Name | Type |
---|---|
aws_sns_topic_subscription.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
sns_topic_subscriptions | SNS Subscriptions | list(object({ |
[] |
no |
No outputs.
Copyright (c) 2021 Flaconi GmbH