Commit a8756952 authored by Cameron McFarland's avatar Cameron McFarland

Adding SQS event notifications for snowpipe.

parent 3a7adde4
......@@ -171,6 +171,22 @@ resource "aws_s3_bucket_policy" "snowplow_s3_bucket_policy" {
policy = "${data.template_file.snowplow_s3_bucket_policy.rendered}"
}
resource "aws_s3_bucket_notification" "snowplow_bucket_notifications" {
bucket = "gitlab-com-snowplow-events"
queue {
queue_arn = "arn:aws:sqs:us-east-1:730570900080:sf-snowpipe-AIDAJ5LKTH5PBBNSL6UC2-14u9uWhgmVmEsNRfTA5B9w"
events = ["s3:ObjectCreated:*"]
filter_prefix = "output/"
}
queue {
queue_arn = "arn:aws:sqs:us-east-1:730570900080:sf-snowpipe-AIDAJ5LKTH5PBBNSL6UC2-14u9uWhgmVmEsNRfTA5B9w"
events = ["s3:ObjectCreated:*"]
filter_prefix = "enriched-bad/"
}
}
// VPC
resource "aws_vpc" "snowplow_vpc" {
cidr_block = "10.32.0.0/16"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment