sns-topic

dod-iac/sns-topic/aws

Terraform Module HCL AWS

AWS SNS Topic

Install
module "sns-topic" {
source = "dod-iac/sns-topic/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-dod-iac-sns-topic-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an AWS SNS Topic that allows publishing from CloudWatch Events. ``hcl module "alerts" { source = "dod-iac/sns-topic/aws" name = format("alerts-%s-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` To create a SNS topic that uses server side encryption, you first need to create a KMS key. `hcl module "alerts_kms_key" { source = "dod-iac/sns-kms-key/aws" name = format("alerts-%s-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } module "alerts" { source = "dod-iac/sns-topic/aws" name = format("alerts-%s-%s", var.application, var.environment) kms_master_key_id = module.alerts_kms_key.aws_kms_key_arn tags = {

Inputs (8)
NameTypeDescriptionDefault
namestring required
kms_master_key_idstringThe ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CM required
lambda_success_feedback_role_arnstringThe IAM role permitted to receive success feedback for this topic required
lambda_failure_feedback_role_arnstringIAM role for failure feedback required
lambda_success_feedback_sample_ratenumberPercentage of success to sample required
tagsmap(string)A mapping of tags to assign to the SNS Topic.{ "Automation": "Terraform" }
allow_cloudwatch_eventsboolAllow CloudWatch events to publish to the SNS topic.true
access_policy_documentstringThe contents of the access policy attached to the SNS topic. If not defined, th""
Outputs (2)
name — The name of the SNS topic.
arn — The ARN of the SNS topic.
Resources (1)
aws_sns_topic
Topics & Tags
terraformawssns
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars1
Forks1
Total downloads7.4k
Inputs8
Outputs2
Resources1
LicenseMIT
Namespacedod-iac
Updated