Giter Site home page Giter Site logo

cloudwatch-slacker's Introduction

Cloudwatch Slack Notifications

This module deploys resources needed to send cloudwatch alarm information to slack and other destinations. By default, it picks up events for all Alarms in an "Alarm" state and send those events to the targets.

Basic Setup

  • Create the AWS resources using the module as shown below.
module "cloudwatch-slack-notifications" {
  source   = "[email protected]:bmukum/cloudwatch-slacker.git?ref=v1"
  name                         = "test-cloudwatch-alarm-slack-notification"
}
  • In the management console, navigate to the secrets manager service.
  • Find the secret created by the module (${var.name}/cloudwatch_slack_notifications/webhook_url), and replace the value with the slack webhook.

Requirements

Name Version
terraform >= 1.0.0
aws ~> 4.0

Providers

Name Version
archive n/a
aws ~> 4.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.cloudwatch_lambda resource
aws_cloudwatch_event_target.cloudwatch_lambda resource
aws_iam_policy.lambda_exec_policy resource
aws_iam_role.lambda_role resource
aws_iam_role_policy_attachment.lambda_policy_attachment resource
aws_lambda_function.function resource
aws_lambda_permission.event_bridge resource
aws_secretsmanager_secret.webhook_url resource
archive_file.lambda data source
aws_caller_identity.current data source
aws_iam_policy_document.lambda_exec_policy data source
aws_region.region data source

Inputs

Name Description Type Default Required
name Name of the cloudwatch-slack integration string n/a yes
region AWS Region string "us-east-1" no
runtime Indentifier of the function runtime string "python3.9" no
secret_recovery_window_in_days Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be 0 to force deletion without recovery or range from 7 to 30 days number 7 no
tags Tags to attach to the resources created map(string) {} no
timeout Time the lambda function has to run number 60 no

Outputs

Name Description
function_arn AWS arn of lambda function
function_name Name of lambda function
qualified_arn AWS Qualified arn of lambda function
role_arn ARN of the lambda execution role
secret_arn The ARN of the secret that stores the slack webhook

cloudwatch-slacker's People

Contributors

bmukum avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.