Difference between revisions of "Terraform resource: aws s3 bucket notification"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_notification | https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_notification | ||
+ | |||
+ | |||
+ | resource "aws_s3_bucket_notification" "bucket_notification" { | ||
+ | bucket = aws_s3_bucket.bucket.id | ||
+ | |||
+ | topic { | ||
+ | topic_arn = [[aws_sns_topic]].topic.arn | ||
+ | events = ["s3:ObjectCreated:*"] | ||
+ | filter_suffix = ".log" | ||
+ | } | ||
+ | } | ||
== Related == | == Related == |
Revision as of 05:43, 20 June 2024
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_notification
resource "aws_s3_bucket_notification" "bucket_notification" { bucket = aws_s3_bucket.bucket.id
topic { topic_arn = aws_sns_topic.topic.arn events = ["s3:ObjectCreated:*"] filter_suffix = ".log" } }
Related
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-content-structure.html
See also
Advertising: