From 28f7697b8358a2f3ffa8bf05e3508158dfe6d694 Mon Sep 17 00:00:00 2001 From: Arseny Chernov Date: Thu, 23 Dec 2021 22:23:59 +0800 Subject: [PATCH] Resolve order of variables test --- .../variables.tf | 80 ++++++++++--------- 1 file changed, 43 insertions(+), 37 deletions(-) diff --git a/cloud-operations/scheduled-asset-inventory-export-bq/variables.tf b/cloud-operations/scheduled-asset-inventory-export-bq/variables.tf index de9aca0d5..b31291b8a 100644 --- a/cloud-operations/scheduled-asset-inventory-export-bq/variables.tf +++ b/cloud-operations/scheduled-asset-inventory-export-bq/variables.tf @@ -26,6 +26,13 @@ variable "bundle_path" { default = "./bundle.zip" } + +variable "bundle_path_cffile" { + description = "Path used to write the intermediate Cloud Function code bundle." + type = string + default = "./bundle_cffile.zip" +} + variable "cai_config" { description = "Cloud Asset Inventory export config." type = object({ @@ -36,6 +43,33 @@ variable "cai_config" { }) } + +variable "cai_gcs_export" { + description = "Enable optional part to export tables to GCS" + type = bool + default = false +} + + +variable "file_config" { + description = "Optional BQ table as a file export function config." + type = object({ + bucket = string + filename = string + format = string + bq_dataset = string + bq_table = string + }) + default = { + bucket = null + filename = null + format = null + bq_dataset = null + bq_table = null + } +} + + variable "location" { description = "Appe Engine location used in the example." type = string @@ -49,6 +83,15 @@ variable "name" { default = "asset-inventory" } + + +variable "name_cffile" { + description = "Arbitrary string used to name created resources." + type = string + default = "cffile-exporter" +} + + variable "project_create" { description = "Create project instead ofusing an existing one." type = bool @@ -71,40 +114,3 @@ variable "root_node" { type = string default = null } - -variable "cai_gcs_export" { - description = "Enable optional part to export tables to GCS" - type = bool - default = false -} - - -variable "name_cffile" { - description = "Arbitrary string used to name created resources." - type = string - default = "cffile-exporter" -} - -variable "file_config" { - description = "Optional BQ table as a file export function config." - type = object({ - bucket = string - filename = string - format = string - bq_dataset = string - bq_table = string - }) - default = { - bucket = null - filename = null - format = null - bq_dataset = null - bq_table = null - } -} - -variable "bundle_path_cffile" { - description = "Path used to write the intermediate Cloud Function code bundle." - type = string - default = "./bundle_cffile.zip" -} \ No newline at end of file