Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rpstreef/tf-sns-topic
Terraform AWS SNS topic module
https://github.com/rpstreef/tf-sns-topic
aws lambda sns sns-topic sqs terraform terraform-module
Last synced: 1 day ago
JSON representation
Terraform AWS SNS topic module
- Host: GitHub
- URL: https://github.com/rpstreef/tf-sns-topic
- Owner: rpstreef
- License: apache-2.0
- Created: 2020-02-17T07:59:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T07:55:32.000Z (over 4 years ago)
- Last Synced: 2023-12-12T04:29:22.112Z (11 months ago)
- Topics: aws, lambda, sns, sns-topic, sqs, terraform, terraform-module
- Language: HCL
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform AWS SNS topic module
## About:
Support SNS topic creation for AWS Lambda and SQS, use the boolean variables ```lambda_sns_topic``` and ```sqs_sns_topic``` to enable any of them. By default only lambda is enabled.
If we want feedback logging(success and failure), provide the policy ARN that the integration can use to log on CloudWatch.
## How to use:
### V1.1
This version assumes Lambda and SQS integration is done by this module.
To integrate with a Lambda Function, call it like this:
```terraform
module "sns" {
source = "github.com/rpstreef/tf-sns-topic?ref=v1.1"namespace = var.namespace
region = var.region
resource_tag_name = var.resource_tag_nametopic_name = local.local_sns_topic_name
lambda_function_arn = var.lambda_function_userReceiver_arn
}
```### V1.0
By default it will only create an AWS lambda integration SNS topic, so we don't have to specify:```terraform
module "sns" {
source = "github.com/rpstreef/tf-sns-topic?ref=v1.0"namespace = var.namespace
region = var.region
resource_tag_name = var.resource_tag_nametopic_name = local.sns_topic_name
}
```## Changelog:
### v1.1
Added integration resources for Lambda and SQS
### v1.0
Initial release