Added GCS notification support (#335)

* Added GCS notification support

* fixed notification output indices

* merged vars and added more conditional validation

* Terraform linting

* Added sa_email serviceAccount variable

* Fixed bool check and use try in notification var

* Fixed typo source path example block

* Fixed assert number tftest gcs example
This commit is contained in:
Caio Tavares
2021-10-21 10:27:35 -04:00
committed by GitHub
parent 1f455fbcba
commit f74599a317
4 changed files with 62 additions and 6 deletions

View File

@@ -91,6 +91,18 @@ variable "name" {
type = string
}
variable "notification_config" {
description = "GCS Notification configuration."
type = object({
enabled = bool
payload_format = string
topic_name = string
sa_email = string
event_types = list(string)
custom_attributes = map(string)
})
default = null
}
variable "prefix" {
description = "Prefix used to generate the bucket name."
type = string