$ sudo yum groupinstall "Development Tools" $ sudo yum install ruby20-devel
$ gem install fluentd --no-ri --no-rdoc
<source> @type http port 9880 format json </source> <match debug.**> @type stdout @id stdout_output </match>
$ fluentd -c ./fluent.conf
2015-02-22 12:57:34 +0000 debug.test: {"Type":"SubscriptionConfirmation","MessageId":"f25c7edf-2544-4ee4-b62a-b474adbabbca", "Token":"2336412f37fb687f5d51e6e241d7700ae500a4e64537b034e6e5eaaad27e48c50717735028119c0041dae07cf7aa68313fbcfddb2704544dfd57e7261c761f42b5ffe22ff9b6e8615bad183e7bddc0c2a977a3e3d6ff4b6e9b6f85b683c894930daa48c6cc23048951094592fc53a7bbdd746beb3ad23a230ed04ac89a405fa5", "TopicArn":"arn:aws:sns:ap-northeast-1:395716534135:notification-test", "Message":"You have chosen to subscribe to the topic arn:aws:sns:ap-northeast-1:395716534135:notification-test.\nTo confirm the subscription, visit the SubscribeURL included in this message.", "SubscribeURL":"https://sns.ap-northeast-1.amazonaws.com/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:ap-northeast-1:395716534135:notification- test&Token=(...snip...)9a405fa5", "Timestamp":"2015-02-22T12:57:34.773Z", "SignatureVersion":"1", "Signature":"HItIY(....snip....)YnEY0oOkgYpjJBp1as0SE30XPSkJ79lQCja6SMHHCONQcxXNBhEwdPH/20zeO/rX4HfwZxSVRQrJPb84onUf6A==", "SigningCertURL":"https://sns.ap-northeast-1.amazonaws.com/SimpleNotificationService-d6d679a1d18e95c2f9ffcf11f4f9e198.pem"}
$ curl "https://sns.ap-northeast-1.amazonaws.com/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:ap-northeast-1:395716534135:notification-test&Token=(...snip...)9a405fa5"
以上でサブスクリプション設定が完了しました。
Tweet