Skip to content

Commit

Permalink
Add loop for SNS phone subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
lgallard committed Oct 26, 2021
1 parent c4ddf1d commit 97539d1
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions root/us-east-1/notifications/sms_tools_monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,13 @@ module "notify_sms" {

name = var.sns_topic_name_sms

subscribers = {
phone1 = {
subscribers = { for v in ["phone1", "phone2", "phone3", "phone4", "phone5"] :
v => {
protocol = "sms"
endpoint = data.vault_generic_secret.notifications.data["phone1"]
endpoint = data.vault_generic_secret.notifications.data[v]
endpoint_auto_confirms = true
raw_message_delivery = false
}
#phone2 = {
# protocol = "sms"
# endpoint = data.vault_generic_secret.notifications.data["phone2"]
# endpoint_auto_confirms = true
# raw_message_delivery = false
#}
#phone3 = {
# protocol = "sms"
# endpoint = data.vault_generic_secret.notifications.data["phone3"]
# endpoint_auto_confirms = true
# raw_message_delivery = false
#}
}

# Policy
Expand Down

0 comments on commit 97539d1

Please sign in to comment.