Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWS LambdaからSlackに ○○を送る

AWS LambdaからSlackに ○○を送る

Daisuke Konishi

December 20, 2017
Tweet

More Decks by Daisuke Konishi

Other Decks in Programming

Transcript

  1. 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. FY ؀ڥϑΝΠϧΛؚΊͣɺΞοϓ͠ͳ͍ ༰ྔ੍ݶରࡦ  $ lambda-uploader --no-virtualenv --no-upload
 λ Building

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