Difference between revisions of "Terraform resource: aws s3 bucket notification"
Jump to navigation
Jump to search
m (Welcome moved page Aws s3 bucket notification to Terraform resource: aws s3 bucket notification) |
|||
(8 intermediate revisions by the same user not shown) | |||
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 | ||
+ | |||
+ | == Example == | ||
+ | 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 == | ||
Line 6: | Line 16: | ||
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-content-structure.html | * https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-content-structure.html | ||
− | + | * <code>[[aws s3api put-bucket-notification-configuration]]</code> | |
− | * [[aws s3api put-bucket-notification-configuration]] | + | * [[New Event Notifications for Amazon S3]] |
== See also == | == See also == | ||
* {{aws_s3_bucket}} | * {{aws_s3_bucket}} | ||
+ | * {{S3 notifications}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 06:19, 20 June 2024
Example[edit]
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[edit]
See also[edit]
Advertising: