AWS LambdaからSlackに ○○を送る

AWS LambdaからSlackに ○○を送る

F703b996b502414dd880bc39789faa8f?s=128

Daisuke Konishi

December 20, 2017
Tweet

Transcript

  1. 8.

    def lambda_handler(event, context): slack_message = { 'channel': SLACK_CHANNEL, ‘text’: ‘test',

    ‘icon’: ':penguin:', } res = requests.post(SLACK_POST_URL, data=json.dumps(slack_message)) ྫ͑͹͜Μͳͷ
  2. 10.

    FY ؀ڥϑΝΠϧΛؚΊͣɺΞοϓ͠ͳ͍ ༰ྔ੍ݶରࡦ  $ lambda-uploader --no-virtualenv --no-upload
 λ Building

    Package
 λ Fin -BNCEB6QMPBEFS BXTDMJͷ৘ใΛݩʹɺ؀ڥ಺ͷϑΝΠϧΛ[JQͰ·ͱΊͯ
 Ξοϓϩʔυ͢Δ
 $ lambda-uploader