From 02a16b37bc4b4e127e54565721d7de33837e03b4 Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Wed, 6 Jul 2016 16:00:16 -0400 Subject: [PATCH] Update S3 notification documentation When adding multiple notifications from one S3 bucket to one SQS queue, it wasn't immediately intuitive how to do this. At first I created two `aws_s3_bucket_notification` configs and it seemed to work fine, however the config for one event will overwrite the other. In order to have multiple events, you can defined the `queue` key twice, or use an array if you're working with the JSON syntax. I tried to make this more clear in the documentation. --- .../r/s3_bucket_notification.html.markdown | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown b/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown index fac3a8d497..3f6564d17d 100644 --- a/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown +++ b/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown @@ -135,6 +135,72 @@ resource "aws_s3_bucket_notification" "bucket_notification" { } ``` +### Add multiple notification configurations to SQS Queue + +``` +resource "aws_sqs_queue" "queue" { + name = "s3-event-notification-queue" + policy = <