Coder Social home page Coder Social logo

aws-cloudwatchalarm-to-slack's Introduction

cloudwatchalarm-to-slack

CloudWatch アラーム を Slack へ通知します。

参考

デプロイ方法

事前に Docker をインストールしてください。

コマンド実行時の重要な引数のみを説明します。

  • install

    docker run -it -v $(pwd):/home/app -w /home/app node:8.12 npm install
    
  • package

    Argument Example Description
    --s3-bucket xxx-bucket-sam ソース等(アーティファクト)をアップロードするバケット
    aws cloudformation package --template-file template.yml --output-template-file serverless-output.yaml --s3-bucket xxx-bucket-sam
    
  • deploy

    Argument Example Description
    SnsTopicName xxx-alarm-topic アラームを通知する SNS トピック名
    SlackBotToken xxx-999-999-xxx Slack Bot のトークン
    SlackChannel #notify_xxx_alarm アラームを通知する Slack のチャンネル
    aws cloudformation deploy --template-file serverless-output.yaml --stack-name cloudwatchalarm-to-slack --capabilities CAPABILITY_IAM --region ap-northeast-1 \
    --parameter-overrides "SnsTopicName=xxx-alarm-topic" "SlackBotToken=xxx-999-999-xxx" "SlackChannel=#notify_xxx_alarm"
    

デプロイ後の作業

CloudWatch Alarm と結びつけます。

aws-cloudwatchalarm-to-slack's People

Contributors

katsuhiko 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.