sns-topic
dod-iac/sns-topic/aws
AWS SNS Topic
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 = {
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | required | |
| kms_master_key_id | string | The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CM | required |
| lambda_success_feedback_role_arn | string | The IAM role permitted to receive success feedback for this topic | required |
| lambda_failure_feedback_role_arn | string | IAM role for failure feedback | required |
| lambda_success_feedback_sample_rate | number | Percentage of success to sample | required |
| tags | map(string) | A mapping of tags to assign to the SNS Topic. | {
"Automation": "Terraform"
} |
| allow_cloudwatch_events | bool | Allow CloudWatch events to publish to the SNS topic. | true |
| access_policy_document | string | The contents of the access policy attached to the SNS topic. If not defined, th | "" |
name — The name of the SNS topic.arn — The ARN of the SNS topic.Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,