Skip to content

Terraform module for creating SNS topics and subscriptions

License

Notifications You must be signed in to change notification settings

scalair/terraform-aws-sns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS SNS

Create SNS topics and subscriptions.

Here an example Terragrunt configuration:

inputs = {

  sns_topics = [
    "topic1",
    "topic2"
  ]
  
  sns_subscriptions = [
    {
      endpoints  = "+33600000000",
      topic      = "topic1",
      type       = "sms"
    },
    {
      endpoints  = "admin@example.com,tech@example.com",
      topic      = "topic2"
      type       = "email"
    },
    {
      endpoints  = "+33689674523,+33712345678",
      topic      = "topic1"
      type       = "sms"
    }
  ]

  sns_sms_preferences_sender_id = "Notification"
  sns_sms_preferences_type      = "Transactional"

  tags = {
    env = "prod"
  }
}

About

Terraform module for creating SNS topics and subscriptions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages