GithubHelp home page GithubHelp logo

aws-cost-anomaly-slack-reactor's Introduction

aws-cost-anomaly-slack-reactor

これは、AWSのコスト異常検知に反応するSlack Botです。

Usage

_examplesにサンプルのTerraformコードがあります。 基本的にはSQSを1つ作成して、LambdaをDeployするのが1st Stepです。

その後、AWSコスト異常検知の通知先に設定しているSNSトピックのサブスクリプションとSlackの設定を行います。

Slackの設定。

以下のようなマニュフェストのSlackAppを用意し、Slackにインストールします。

display_information:
  name: aws-cost-anomaly-slack-reactor
  description: AWS Cost Anomaly Detection BOT
  background_color: "#346947"
features:
  app_home:
    home_tab_enabled: true
    messages_tab_enabled: false
    messages_tab_read_only_enabled: false
  bot_user:
    display_name: AWS Cost Anomaly Detection
    always_online: true
oauth_config:
  scopes:
    bot:
      - app_mentions:read
      - chat:write
      - files:write
settings:
  event_subscriptions:
    request_url: https://<deployしたLambdaのLambda Function URL>/slack/events
    bot_events:
      - app_mention
  interactivity:
    is_enabled: true
    request_url: https://<deployしたLambdaのLambda Function URL>/slack/events
  org_deploy_enabled: false
  socket_mode_enabled: false
  token_rotation_enabled: false

その後、SlackのBOT_TOKENや、SINGING_SECRETを設定してLambdaを再デプロイします。 再デプロイ後に、EventSubscriptionのVerificationを実行してください。

SNSの設定。

SNSは https://<deployしたLambdaのLambda Function URL>/amazon-sns にHTTPSの配信設定をしてください。

aws-cost-anomaly-slack-reactor's People

Contributors

mashiike avatar dependabot[bot] avatar github-actions[bot] avatar fujiwara avatar

Watchers

 avatar

Forkers

fujiwara

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.