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.
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 |
Name | Description |
---|---|
arn | The ARN of the SNS topic. |
owner | The AWS Account ID of the SNS topic owner |
Name | Version |
---|---|
aws | >= 4.36 |
- resource.aws_sns_topic.main (main.tf#9)
- resource.aws_sns_topic_subscription.main (main.tf#16)
module "example" {
source = "../../"
email_addresses = ["test@example.com"]
name = "rds-alerts"
}