Skip to content

geekcell/terraform-aws-sns-email-notification

Repository files navigation

Geek Cell GmbH

Code Quality

License GitHub release (latest tag) Release Validate Lint

Security

Infrastructure Tests

Cloud

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Container

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Data protection

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Terraform AWS SNS E-Mail Module

This Terraform module creates an AWS SNS Topic for you and adds the email addresses as subscribers.

The focus on this module lies within it's simplicity by providing default values that should make sense for most use cases.

Inputs

Name Description Type Default Required
email_addresses List of email address for this subscription. list(string) n/a yes
enable_sns_sse_encryption Enable Server-Side Encryption of the SNS Topic. bool true no
name The name of the topic. string n/a yes
sns_kms_master_key_id KMS Key ID for Server-Side Encryption of the SNS Topic. string "alias/aws/sns" no
tags Tags to add to the AWS Customer Managed Key. map(any) {} no

Outputs

Name Description
arn The ARN of the SNS topic.
owner The AWS Account ID of the SNS topic owner

Providers

Name Version
aws >= 4.36

Resources

  • resource.aws_sns_topic.main (main.tf#9)
  • resource.aws_sns_topic_subscription.main (main.tf#16)

Examples

Full

module "example" {
  source = "../../"

  email_addresses = ["test@example.com"]
  name            = "rds-alerts"
}