-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for configuring pubsub object notifications #48
Conversation
41ffbf6
to
4ce1954
Compare
# project_id = var.project_id | ||
bucket = lookup(each.value, "bucket") | ||
payload_format = "JSON_API_V1" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the google_storage_notification
resource docs I think object_name_prefix
and custom_attributes
seem useful to be user configurable.
*/ | ||
|
||
locals { | ||
# [for o in var.list : o.interfaces[0].name] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think you meant to remove this?
resource "google_storage_notification" "notifications" { | ||
for_each = var.bucket_configs | ||
|
||
# project_id = var.project_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think you meant to remove this?
@@ -138,3 +138,9 @@ variable "lifecycle_rules" { | |||
description = "List of lifecycle rules to configure. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket.html#lifecycle_rule except condition.matches_storage_class should be a comma delimited string." | |||
default = [] | |||
} | |||
|
|||
variable "pubsub_topics" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable "pubsub_topics" { | |
variable "pubsub_notification_topics" { |
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Fixes #28