Skip to content

Commit d51f44f

Browse files
authored
Merge pull request #39 from apsureda/folder-include-children
Adding the include_children option
2 parents 1770a96 + 594ede7 commit d51f44f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/event-folder-log-entry/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The
2323
|------|-------------|:----:|:-----:|:-----:|
2424
| filter | The filter to apply when exporting logs. | string | n/a | yes |
2525
| folder\_id | The ID of the folder to look for changes. | string | n/a | yes |
26+
| include\_children | Determines whether or not to include folder's children in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided folder are included. | bool | `"false"` | no |
2627
| labels | A set of key/value label pairs to assign to any labelable resources. | map(string) | `<map>` | no |
2728
| name | The name to apply to any nameable resources. | string | n/a | yes |
2829
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |

modules/event-folder-log-entry/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module "log_export" {
2727
filter = var.filter
2828
log_sink_name = var.name
2929
parent_resource_id = var.folder_id
30+
include_children = var.include_children
3031
parent_resource_type = "folder"
3132
unique_writer_identity = "true"
3233
}

modules/event-folder-log-entry/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ variable "folder_id" {
3939
type = string
4040
description = "The ID of the folder to look for changes."
4141
}
42+
43+
variable "include_children" {
44+
description = "Determines whether or not to include folder's children in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided folder are included."
45+
type = bool
46+
default = false
47+
}

0 commit comments

Comments
 (0)