miquido / sns-notifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sns-notifications

Provides SNS queue that sends messages for provided webhooks

Usage

  module "this" {
    source      = "git::https://github.com/miquido/sns-notifications"
    environment = "test"
    project     = "project"
    webhooks    = ["https://webhook.example.com"]
  }

Requirements

No requirements.

Providers

Name Version
archive n/a
aws n/a

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.notification resource
aws_iam_role.notification resource
aws_iam_role_policy.notification resource
aws_lambda_function.notification resource
aws_lambda_permission.sns resource
aws_sns_topic.main resource
aws_sns_topic_policy.alarm resource
aws_sns_topic_subscription.lambda_subscription resource
aws_ssm_parameter.webhooks resource
archive_file.notification data source
aws_caller_identity.default data source
aws_iam_policy_document.assume_role_notification data source
aws_iam_policy_document.role_notification data source
aws_iam_policy_document.sns_topic_policy data source

Inputs

Name Description Type Default Required
environment Environment name any n/a yes
log_retention How long to keep logs number 7 no
project Project name any n/a yes
tags Default tags to apply on all created resources map(string) {} no
webhooks List of webhooks to call when SNS message is received list(string) [] no

Outputs

Name Description
sns_arn arn of the webhook connected sns topic

Related Projects

Check out these related projects.

License

License: MIT

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Source: <https://opensource.org/licenses/MIT>

About

License:MIT License


Languages

Language:Python 99.0%Language:HCL 0.8%Language:Go 0.2%Language:Makefile 0.0%