LoginSignup
5
5

More than 5 years have passed since last update.

やっつけでメールを Amazon SNS に転送する

Posted at

転送したいユーザーのホームディレクトリで .forward で awscli にパイプする。

$ cat <<EOS> .forward
|"/usr/bin/aws sns publish \
--region ap-northeast-1 \
--topic-arn arn:aws:sns:ap-northeast-1:999999999999:topic \
--message \"\$(cat)\" \
--subject \"[aws] \$(uname -n)\" >/dev/null"
EOS

リージョンやトピックの arn は適宜変更してください。

5
5
0

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
5
5