fix typo in logging sinks interface (#2015)
This commit is contained in:
committed by
GitHub
parent
f69dfbe0c2
commit
bf93b6fb4e
@@ -268,7 +268,7 @@ update_rules:
|
|||||||
| [iam](variables.tf#L138) | IAM bindings in {ROLE => [MEMBERS]} format. | <code>map(list(string))</code> | | <code>{}</code> |
|
| [iam](variables.tf#L138) | IAM bindings in {ROLE => [MEMBERS]} format. | <code>map(list(string))</code> | | <code>{}</code> |
|
||||||
| [iam_bindings](variables.tf#L145) | Authoritative IAM bindings in {KEY => {role = ROLE, members = [], condition = {}}}. Keys are arbitrary. | <code title="map(object({ members = list(string) role = string condition = optional(object({ expression = string title = string description = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [iam_bindings](variables.tf#L145) | Authoritative IAM bindings in {KEY => {role = ROLE, members = [], condition = {}}}. Keys are arbitrary. | <code title="map(object({ members = list(string) role = string condition = optional(object({ expression = string title = string description = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [iam_bindings_additive](variables.tf#L160) | Individual additive IAM bindings. Keys are arbitrary. | <code title="map(object({ member = string role = string condition = optional(object({ expression = string title = string description = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [iam_bindings_additive](variables.tf#L160) | Individual additive IAM bindings. Keys are arbitrary. | <code title="map(object({ member = string role = string condition = optional(object({ expression = string title = string description = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [logging_sinks](variables.tf#L180) | Logging sinks to create for the organization. | <code title="map(object({ destination = string type = string bq_partitioned_table = optional(bool) description = optional(string) disabled = optional(bool, false) exclusions = optional(map(object({ filter = string description = optional(string) disabled = optional(bool) })), {}) filter = optional(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [logging_sinks](variables.tf#L180) | Logging sinks to create for the organization. | <code title="map(object({ destination = string type = string bq_partitioned_table = optional(bool, false) description = optional(string) disabled = optional(bool, false) exclusions = optional(map(object({ filter = string description = optional(string) disabled = optional(bool) })), {}) filter = optional(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [projects](variables.tf#L213) | Projects associated with this billing account. | <code>list(string)</code> | | <code>[]</code> |
|
| [projects](variables.tf#L213) | Projects associated with this billing account. | <code>list(string)</code> | | <code>[]</code> |
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ resource "google_logging_billing_account_sink" "sink" {
|
|||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != false ? [""] : []
|
for_each = each.value.type == "bigquery" ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ variable "logging_sinks" {
|
|||||||
type = map(object({
|
type = map(object({
|
||||||
destination = string
|
destination = string
|
||||||
type = string
|
type = string
|
||||||
bq_partitioned_table = optional(bool)
|
bq_partitioned_table = optional(bool, false)
|
||||||
description = optional(string)
|
description = optional(string)
|
||||||
disabled = optional(bool, false)
|
disabled = optional(bool, false)
|
||||||
exclusions = optional(map(object({
|
exclusions = optional(map(object({
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ module "folder" {
|
|||||||
| [id](variables.tf#L92) | Folder ID in case you use folder_create=false. | <code>string</code> | | <code>null</code> |
|
| [id](variables.tf#L92) | Folder ID in case you use folder_create=false. | <code>string</code> | | <code>null</code> |
|
||||||
| [logging_data_access](variables.tf#L98) | Control activation of data access logs. Format is service => { log type => [exempted members]}. The special 'allServices' key denotes configuration for all services. | <code>map(map(list(string)))</code> | | <code>{}</code> |
|
| [logging_data_access](variables.tf#L98) | Control activation of data access logs. Format is service => { log type => [exempted members]}. The special 'allServices' key denotes configuration for all services. | <code>map(map(list(string)))</code> | | <code>{}</code> |
|
||||||
| [logging_exclusions](variables.tf#L113) | Logging exclusions for this folder in the form {NAME -> FILTER}. | <code>map(string)</code> | | <code>{}</code> |
|
| [logging_exclusions](variables.tf#L113) | Logging exclusions for this folder in the form {NAME -> FILTER}. | <code>map(string)</code> | | <code>{}</code> |
|
||||||
| [logging_sinks](variables.tf#L120) | Logging sinks to create for the folder. | <code title="map(object({ bq_partitioned_table = optional(bool) description = optional(string) destination = string disabled = optional(bool, false) exclusions = optional(map(string), {}) filter = string iam = optional(bool, true) include_children = optional(bool, true) type = string }))">map(object({…}))</code> | | <code>{}</code> |
|
| [logging_sinks](variables.tf#L120) | Logging sinks to create for the folder. | <code title="map(object({ bq_partitioned_table = optional(bool, false) description = optional(string) destination = string disabled = optional(bool, false) exclusions = optional(map(string), {}) filter = string iam = optional(bool, true) include_children = optional(bool, true) type = string }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [name](variables.tf#L151) | Folder name. | <code>string</code> | | <code>null</code> |
|
| [name](variables.tf#L151) | Folder name. | <code>string</code> | | <code>null</code> |
|
||||||
| [org_policies](variables.tf#L157) | Organization policies applied to this folder keyed by policy name. | <code title="map(object({ inherit_from_parent = optional(bool) # for list policies only. reset = optional(bool) rules = optional(list(object({ allow = optional(object({ all = optional(bool) values = optional(list(string)) })) deny = optional(object({ all = optional(bool) values = optional(list(string)) })) enforce = optional(bool) # for boolean policies only. condition = optional(object({ description = optional(string) expression = optional(string) location = optional(string) title = optional(string) }), {}) })), []) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [org_policies](variables.tf#L157) | Organization policies applied to this folder keyed by policy name. | <code title="map(object({ inherit_from_parent = optional(bool) # for list policies only. reset = optional(bool) rules = optional(list(object({ allow = optional(object({ all = optional(bool) values = optional(list(string)) })) deny = optional(object({ all = optional(bool) values = optional(list(string)) })) enforce = optional(bool) # for boolean policies only. condition = optional(object({ description = optional(string) expression = optional(string) location = optional(string) title = optional(string) }), {}) })), []) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [parent](variables.tf#L184) | Parent in folders/folder_id or organizations/org_id format. | <code>string</code> | | <code>null</code> |
|
| [parent](variables.tf#L184) | Parent in folders/folder_id or organizations/org_id format. | <code>string</code> | | <code>null</code> |
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ resource "google_logging_folder_sink" "sink" {
|
|||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != false ? [""] : []
|
for_each = each.value.type == "bigquery" ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ variable "logging_exclusions" {
|
|||||||
variable "logging_sinks" {
|
variable "logging_sinks" {
|
||||||
description = "Logging sinks to create for the folder."
|
description = "Logging sinks to create for the folder."
|
||||||
type = map(object({
|
type = map(object({
|
||||||
bq_partitioned_table = optional(bool)
|
bq_partitioned_table = optional(bool, false)
|
||||||
description = optional(string)
|
description = optional(string)
|
||||||
destination = string
|
destination = string
|
||||||
disabled = optional(bool, false)
|
disabled = optional(bool, false)
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ module "org" {
|
|||||||
| [iam_bindings_additive](variables.tf#L80) | Individual additive IAM bindings. Keys are arbitrary. | <code title="map(object({ member = string role = string condition = optional(object({ expression = string title = string description = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [iam_bindings_additive](variables.tf#L80) | Individual additive IAM bindings. Keys are arbitrary. | <code title="map(object({ member = string role = string condition = optional(object({ expression = string title = string description = optional(string) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [logging_data_access](variables.tf#L95) | Control activation of data access logs. Format is service => { log type => [exempted members]}. The special 'allServices' key denotes configuration for all services. | <code>map(map(list(string)))</code> | | <code>{}</code> |
|
| [logging_data_access](variables.tf#L95) | Control activation of data access logs. Format is service => { log type => [exempted members]}. The special 'allServices' key denotes configuration for all services. | <code>map(map(list(string)))</code> | | <code>{}</code> |
|
||||||
| [logging_exclusions](variables.tf#L110) | Logging exclusions for this organization in the form {NAME -> FILTER}. | <code>map(string)</code> | | <code>{}</code> |
|
| [logging_exclusions](variables.tf#L110) | Logging exclusions for this organization in the form {NAME -> FILTER}. | <code>map(string)</code> | | <code>{}</code> |
|
||||||
| [logging_sinks](variables.tf#L117) | Logging sinks to create for the organization. | <code title="map(object({ bq_partitioned_table = optional(bool) description = optional(string) destination = string disabled = optional(bool, false) exclusions = optional(map(string), {}) filter = string iam = optional(bool, true) include_children = optional(bool, true) type = string }))">map(object({…}))</code> | | <code>{}</code> |
|
| [logging_sinks](variables.tf#L117) | Logging sinks to create for the organization. | <code title="map(object({ bq_partitioned_table = optional(bool, false) description = optional(string) destination = string disabled = optional(bool, false) exclusions = optional(map(string), {}) filter = string iam = optional(bool, true) include_children = optional(bool, true) type = string }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [network_tags](variables-tags.tf#L17) | Network tags by key name. If `id` is provided, key creation is skipped. The `iam` attribute behaves like the similarly named one at module level. | <code title="map(object({ description = optional(string, "Managed by the Terraform organization module.") iam = optional(map(list(string)), {}) id = optional(string) network = string # project_id/vpc_name values = optional(map(object({ description = optional(string, "Managed by the Terraform organization module.") iam = optional(map(list(string)), {}) })), {}) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [network_tags](variables-tags.tf#L17) | Network tags by key name. If `id` is provided, key creation is skipped. The `iam` attribute behaves like the similarly named one at module level. | <code title="map(object({ description = optional(string, "Managed by the Terraform organization module.") iam = optional(map(list(string)), {}) id = optional(string) network = string # project_id/vpc_name values = optional(map(object({ description = optional(string, "Managed by the Terraform organization module.") iam = optional(map(list(string)), {}) })), {}) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [org_policies](variables.tf#L148) | Organization policies applied to this organization keyed by policy name. | <code title="map(object({ inherit_from_parent = optional(bool) # for list policies only. reset = optional(bool) rules = optional(list(object({ allow = optional(object({ all = optional(bool) values = optional(list(string)) })) deny = optional(object({ all = optional(bool) values = optional(list(string)) })) enforce = optional(bool) # for boolean policies only. condition = optional(object({ description = optional(string) expression = optional(string) location = optional(string) title = optional(string) }), {}) })), []) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [org_policies](variables.tf#L148) | Organization policies applied to this organization keyed by policy name. | <code title="map(object({ inherit_from_parent = optional(bool) # for list policies only. reset = optional(bool) rules = optional(list(object({ allow = optional(object({ all = optional(bool) values = optional(list(string)) })) deny = optional(object({ all = optional(bool) values = optional(list(string)) })) enforce = optional(bool) # for boolean policies only. condition = optional(object({ description = optional(string) expression = optional(string) location = optional(string) title = optional(string) }), {}) })), []) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [org_policy_custom_constraints](variables.tf#L175) | Organization policy custom constraints keyed by constraint name. | <code title="map(object({ display_name = optional(string) description = optional(string) action_type = string condition = string method_types = list(string) resource_types = list(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [org_policy_custom_constraints](variables.tf#L175) | Organization policy custom constraints keyed by constraint name. | <code title="map(object({ display_name = optional(string) description = optional(string) action_type = string condition = string method_types = list(string) resource_types = list(string) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ resource "google_logging_organization_sink" "sink" {
|
|||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != null ? [""] : []
|
for_each = each.value.type == "bigquery" ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ variable "logging_exclusions" {
|
|||||||
variable "logging_sinks" {
|
variable "logging_sinks" {
|
||||||
description = "Logging sinks to create for the organization."
|
description = "Logging sinks to create for the organization."
|
||||||
type = map(object({
|
type = map(object({
|
||||||
bq_partitioned_table = optional(bool)
|
bq_partitioned_table = optional(bool, false)
|
||||||
description = optional(string)
|
description = optional(string)
|
||||||
destination = string
|
destination = string
|
||||||
disabled = optional(bool, false)
|
disabled = optional(bool, false)
|
||||||
|
|||||||
@@ -998,7 +998,7 @@ module "bucket" {
|
|||||||
| [lien_reason](variables.tf#L130) | If non-empty, creates a project lien with this description. | <code>string</code> | | <code>null</code> |
|
| [lien_reason](variables.tf#L130) | If non-empty, creates a project lien with this description. | <code>string</code> | | <code>null</code> |
|
||||||
| [logging_data_access](variables.tf#L136) | Control activation of data access logs. Format is service => { log type => [exempted members]}. The special 'allServices' key denotes configuration for all services. | <code>map(map(list(string)))</code> | | <code>{}</code> |
|
| [logging_data_access](variables.tf#L136) | Control activation of data access logs. Format is service => { log type => [exempted members]}. The special 'allServices' key denotes configuration for all services. | <code>map(map(list(string)))</code> | | <code>{}</code> |
|
||||||
| [logging_exclusions](variables.tf#L151) | Logging exclusions for this project in the form {NAME -> FILTER}. | <code>map(string)</code> | | <code>{}</code> |
|
| [logging_exclusions](variables.tf#L151) | Logging exclusions for this project in the form {NAME -> FILTER}. | <code>map(string)</code> | | <code>{}</code> |
|
||||||
| [logging_sinks](variables.tf#L158) | Logging sinks to create for this project. | <code title="map(object({ bq_partitioned_table = optional(bool) description = optional(string) destination = string disabled = optional(bool, false) exclusions = optional(map(string), {}) filter = string iam = optional(bool, true) type = string unique_writer = optional(bool, true) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [logging_sinks](variables.tf#L158) | Logging sinks to create for this project. | <code title="map(object({ bq_partitioned_table = optional(bool, false) description = optional(string) destination = string disabled = optional(bool, false) exclusions = optional(map(string), {}) filter = string iam = optional(bool, true) type = string unique_writer = optional(bool, true) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [metric_scopes](variables.tf#L189) | List of projects that will act as metric scopes for this project. | <code>list(string)</code> | | <code>[]</code> |
|
| [metric_scopes](variables.tf#L189) | List of projects that will act as metric scopes for this project. | <code>list(string)</code> | | <code>[]</code> |
|
||||||
| [network_tags](variables-tags.tf#L17) | Network tags by key name. If `id` is provided, key creation is skipped. The `iam` attribute behaves like the similarly named one at module level. | <code title="map(object({ description = optional(string, "Managed by the Terraform project module.") iam = optional(map(list(string)), {}) id = optional(string) network = string # project_id/vpc_name values = optional(map(object({ description = optional(string, "Managed by the Terraform project module.") iam = optional(map(list(string)), {}) })), {}) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [network_tags](variables-tags.tf#L17) | Network tags by key name. If `id` is provided, key creation is skipped. The `iam` attribute behaves like the similarly named one at module level. | <code title="map(object({ description = optional(string, "Managed by the Terraform project module.") iam = optional(map(list(string)), {}) id = optional(string) network = string # project_id/vpc_name values = optional(map(object({ description = optional(string, "Managed by the Terraform project module.") iam = optional(map(list(string)), {}) })), {}) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
| [org_policies](variables.tf#L201) | Organization policies applied to this project keyed by policy name. | <code title="map(object({ inherit_from_parent = optional(bool) # for list policies only. reset = optional(bool) rules = optional(list(object({ allow = optional(object({ all = optional(bool) values = optional(list(string)) })) deny = optional(object({ all = optional(bool) values = optional(list(string)) })) enforce = optional(bool) # for boolean policies only. condition = optional(object({ description = optional(string) expression = optional(string) location = optional(string) title = optional(string) }), {}) })), []) }))">map(object({…}))</code> | | <code>{}</code> |
|
| [org_policies](variables.tf#L201) | Organization policies applied to this project keyed by policy name. | <code title="map(object({ inherit_from_parent = optional(bool) # for list policies only. reset = optional(bool) rules = optional(list(object({ allow = optional(object({ all = optional(bool) values = optional(list(string)) })) deny = optional(object({ all = optional(bool) values = optional(list(string)) })) enforce = optional(bool) # for boolean policies only. condition = optional(object({ description = optional(string) expression = optional(string) location = optional(string) title = optional(string) }), {}) })), []) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ resource "google_logging_project_sink" "sink" {
|
|||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != null ? [""] : []
|
for_each = each.value.type == "bigquery" ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ variable "logging_exclusions" {
|
|||||||
variable "logging_sinks" {
|
variable "logging_sinks" {
|
||||||
description = "Logging sinks to create for this project."
|
description = "Logging sinks to create for this project."
|
||||||
type = map(object({
|
type = map(object({
|
||||||
bq_partitioned_table = optional(bool)
|
bq_partitioned_table = optional(bool, false)
|
||||||
description = optional(string)
|
description = optional(string)
|
||||||
destination = string
|
destination = string
|
||||||
disabled = optional(bool, false)
|
disabled = optional(bool, false)
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ values:
|
|||||||
include_children: true
|
include_children: true
|
||||||
name: debug
|
name: debug
|
||||||
module.folder-sink.google_logging_folder_sink.sink["info"]:
|
module.folder-sink.google_logging_folder_sink.sink["info"]:
|
||||||
|
bigquery_options:
|
||||||
|
- use_partitioned_tables: false
|
||||||
disabled: false
|
disabled: false
|
||||||
exclusions: []
|
exclusions: []
|
||||||
filter: severity=INFO
|
filter: severity=INFO
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ values:
|
|||||||
name: debug
|
name: debug
|
||||||
org_id: '1122334455'
|
org_id: '1122334455'
|
||||||
module.org.google_logging_organization_sink.sink["info"]:
|
module.org.google_logging_organization_sink.sink["info"]:
|
||||||
|
bigquery_options:
|
||||||
|
- use_partitioned_tables: true
|
||||||
disabled: false
|
disabled: false
|
||||||
exclusions: []
|
exclusions: []
|
||||||
filter: severity=INFO
|
filter: severity=INFO
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ values:
|
|||||||
project: test-project
|
project: test-project
|
||||||
unique_writer_identity: true
|
unique_writer_identity: true
|
||||||
module.project-host.google_logging_project_sink.sink["info"]:
|
module.project-host.google_logging_project_sink.sink["info"]:
|
||||||
|
bigquery_options:
|
||||||
|
- use_partitioned_tables: false
|
||||||
description: info (Terraform-managed).
|
description: info (Terraform-managed).
|
||||||
disabled: false
|
disabled: false
|
||||||
exclusions: []
|
exclusions: []
|
||||||
|
|||||||
Reference in New Issue
Block a user