SNSからメッセージをAWSの別アカウントSQSに送ってKMSで暗号化する設定をしたのでやり方を紹介します。 どういうことか分かりやすく図で書くと、以下のようになります。 AWSアカウントA(111111111111)のSNS(simple-sns)から、AWSアカウントB(222222222222)のSQS(simple-sqs)に対してメッセージを送ってKMS(simple-kms)でメッセージを暗号化してSQSで保持するようにします。 Account AのSNSからAccount BのSQSにメッセージを送る 手順 1. SNSトピックを作成 @AWSアカウントA 2. KMSを作成 @AWSアカウントB 3. SQSキューを作成 @AWSアカウントB 4. SQS側でSNSをサブスクライブするように設定 @AWSアカウントB 5. SNSからメッセージの送信テスト @AWSアカウン