Skip to main content
Service Catalog Version 0.85.1Last updated in version 0.85.0

Amazon Simple Notification Service

View SourceRelease Notes

Overview

This service contains code to create Amazon SNS topics.

SNS architectureSNS architecture

Features

  • Creates an SNS topic
  • Attaches topic policies allowing publishing, subscribing, or both from given AWS accounts
  • Optionally publishes notifications to Slack

Learn

note

This repo is a part of the Gruntwork Service Catalog, a collection of reusable, battle-tested, production ready infrastructure code. If you’ve never used the Service Catalog before, make sure to read How to use the Gruntwork Service Catalog!

Deploy

Non-production deployment (quick start for learning)

If you just want to try this repo out for experimenting and learning, check out the following resources:

  • examples/for-learning-and-testing folder: The examples/for-learning-and-testing folder contains standalone sample code optimized for learning, experimenting, and testing (but not direct production usage).

Production deployment

If you want to deploy this repo in production, check out the following resources:

Reference

Required

namestring(required)

The name of the SNS topic

Optional

A list of IAM ARNs that will be given the rights to publish to the SNS topic.

list(string)
[]

A list of AWS services that will be given the rights to publish to the SNS topic.

list(string)
[]

A list of IAM ARNs that will be given the rights to subscribe to the SNS topic.

list(string)
[]

A list of protocols that can be used to subscribe to the SNS topic.

list(string)
[
"http",
"https",
"email",
"email-json",
"sms",
"sqs",
"application",
"lambda"
]
create_resourcesbool(optional)

Set to false to have this module create no resources. This weird parameter exists solely because Terraform does not support conditional modules. Therefore, this is a hack to allow you to conditionally decide if the resources should be created or not.

true
display_namestring(optional)

The display name of the SNS topic

""
kms_master_key_idstring(optional)

The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK

alias/aws/sns
slack_webhook_urlstring(optional)

Send topic notifications to this Slack Webhook URL (e.g., https://hooks.slack.com/services/FOO/BAR/BAZ).

null