LoginSignup
1

More than 1 year has passed since last update.

AmplifyのSlack通知プラグインが便利すぎた件

Last updated at Posted at 2021-12-15

AWS Amplify Advent Calendar 2021の16日目の記事です。

Amplifyで開発しているときビルドが終わったらすぐに動作確認したいことがあります。
Amplifyの通知はメールがありますが、あまりメーラーを見てなくてしばらく気づかなかたり、
Slack通知を自前で用意するのも面倒です。

Amplifyでビルドの開始と終了を通知していくれるプラグインが便利だったので紹介

Amplifyのプラグインとして提供されているのでインストールも簡単です。

インストール方法(Amplify CLIインストール済み状態)

# NPMパッケージをインストール
npm install -g amplify-category-console-notification
# プラグインを有効化
amplify plugin scan
# プラグイン追加
$ amplify console-notification add
Using service: AmplifyConsoleNotification, provided by: awscloudformation
? Input function name in order to send message to Slack. Sender ← ファンクション名をを指定
? Input Web hook URL of Slack.
https://hooks.slack.com/services/T000/B000/XXXX ← SlackのWebフックURLを指定
Successfully added resource Sender locally

ビルドの開始と終了時にSlack通知が来るので便利です。
スクリーンショット

追伸
AmplifyのAdmin UIがAmplify Studioになり、Figma連携されるようになったので、
いつか記事を書こうと思います。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1