Coder Social home page Coder Social logo

miguelitos / lambdahipchatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grim13b/lambdahipchatbot

0.0 0.0 0.0 3 KB

AWS SNS で受け取った Topic を AWS Lambda 経由で HipChat に送る例

License: MIT License

Shell 4.22% Python 95.78%

lambdahipchatbot's Introduction

これはなに?

AWS Lambda から Hipchat にメッセージを投げる lambda function です。

前提

AWS の SNS と Lambda とその実行に関する IAM を設定する必要があります。

パッケージの作成方法

  $ pip install -r requirements.txt -t ./lib
  $ zip -rq9 lambda.zip * [email protected]
  1. requirements.txt で書かれているライブラリを依存関係込みでダウンロードします。
  2. ライブラリ一式込みで ZIP します。この時 exclude_files.txt に書かれたファイルは無視されます。
  $ ./build.sh

でも代用できます。

出来上がった lambda.zip を AWS Lambda にアップロードします。

設定に必要な環境変数

AWS Lambda では環境変数を設定できます。 これらは HipChat に Request を送るために必要なものです。予め準備してください。

  • SENDER_NAME
    • 送信者名 (例 'ApplicationName Notifier')
  • AUTH_TOKEN
    • 発言したい Room の HipChat API V2 Authentication コード
  • ROOM_ID
    • 発言したい Room の Room ID

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.