{"id":19580395,"url":"https://github.com/dod-iac/terraform-aws-sns-topic","last_synced_at":"2025-06-12T18:32:33.830Z","repository":{"id":53492990,"uuid":"307388619","full_name":"dod-iac/terraform-aws-sns-topic","owner":"dod-iac","description":"AWS SNS Topic","archived":false,"fork":false,"pushed_at":"2022-08-20T14:06:13.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-26T12:14:56.050Z","etag":null,"topics":["aws","sns","terraform"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/dod-iac/sns-topic/aws","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dod-iac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-26T13:52:23.000Z","updated_at":"2021-08-04T18:52:52.000Z","dependencies_parsed_at":"2022-09-02T19:23:54.486Z","dependency_job_id":null,"html_url":"https://github.com/dod-iac/terraform-aws-sns-topic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dod-iac/terraform-aws-sns-topic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-sns-topic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-sns-topic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-sns-topic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-sns-topic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dod-iac","download_url":"https://codeload.github.com/dod-iac/terraform-aws-sns-topic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-sns-topic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519177,"owners_count":22870324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","sns","terraform"],"created_at":"2024-11-11T07:25:24.622Z","updated_at":"2025-06-12T18:32:33.791Z","avatar_url":"https://github.com/dod-iac.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Usage\n\nCreates an AWS SNS Topic that allows publishing from CloudWatch Events.\n\n```hcl\nmodule \"alerts\" {\n  source = \"dod-iac/sns-topic/aws\"\n\n  name = format(\"alerts-%s-%s\", var.application, var.environment)\n  tags = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n```\n\nTo create a SNS topic that uses server side encryption, you first need to create a KMS key.\n\n```hcl\nmodule \"alerts_kms_key\" {\n  source = \"dod-iac/sns-kms-key/aws\"\n\n  name = format(\"alerts-%s-%s\", var.application, var.environment)\n  tags = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n\nmodule \"alerts\" {\n  source = \"dod-iac/sns-topic/aws\"\n\n  name = format(\"alerts-%s-%s\", var.application, var.environment)\n  kms_master_key_id = module.alerts_kms_key.aws_kms_key_arn\n  tags = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n```\n\n## Terraform Version\n\nTerraform 0.12. Pin module version to ~\u003e 1.0.0 . Submit pull-requests to master branch.\n\nTerraform 0.11 is not supported.\n\n## License\n\nThis project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105.  However, because the project utilizes code licensed from contributors and other third parties, it therefore is licensed under the MIT License.  See LICENSE file for more information.\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 0.13 |\n| aws | ~\u003e 3.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| aws | ~\u003e 3.0 |\n\n## Modules\n\nNo Modules.\n\n## Resources\n\n| Name |\n|------|\n| [aws_caller_identity](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) |\n| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |\n| [aws_partition](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) |\n| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) |\n| [aws_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic) |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| access\\_policy\\_document | The contents of the access policy attached to the SNS topic.  If not defined, then generates a policy using the \"allow\\_*\" variables. | `string` | `\"\"` | no |\n| allow\\_cloudwatch\\_events | Allow CloudWatch events to publish to the SNS topic. | `bool` | `true` | no |\n| kms\\_master\\_key\\_id | The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK. | `string` | `null` | no |\n| lambda\\_failure\\_feedback\\_role\\_arn | IAM role for failure feedback | `string` | `null` | no |\n| lambda\\_success\\_feedback\\_role\\_arn | The IAM role permitted to receive success feedback for this topic | `string` | `null` | no |\n| lambda\\_success\\_feedback\\_sample\\_rate | Percentage of success to sample | `number` | `null` | no |\n| name | n/a | `string` | n/a | yes |\n| tags | A mapping of tags to assign to the SNS Topic. | `map(string)` | \u003cpre\u003e{\u003cbr\u003e  \"Automation\": \"Terraform\"\u003cbr\u003e}\u003c/pre\u003e | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| arn | The ARN of the SNS topic. |\n| name | The name of the SNS topic. |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdod-iac%2Fterraform-aws-sns-topic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdod-iac%2Fterraform-aws-sns-topic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdod-iac%2Fterraform-aws-sns-topic/lists"}