@@ -24,13 +24,13 @@ locals {
2424 is_billing_level = var. parent_resource_type == " billing_account"
2525
2626 # Locals for outputs to ensure the value is available after the resource is created
27- log_sink_writer_identity = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . writer_identity , list ( " " )) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . writer_identity , list ( " " )) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . writer_identity , list ( " " )) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . writer_identity , list ( " " ) ), 0 ) : " "
28- log_sink_resource_id = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . id , list ( " " )) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . id , list ( " " )) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . id , list ( " " )) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . id , list ( " " ) ), 0 ) : " "
29- log_sink_resource_name = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . name , list ( " " )) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . name , list ( " " )) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . name , list ( " " )) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . name , list ( " " ) ), 0 ) : " "
30- log_sink_parent_id = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . project , list ( " " )) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . folder , list ( " " )) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . org_id , list ( " " )) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . billing_account , list ( " " ) ), 0 ) : " "
27+ log_sink_writer_identity = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . writer_identity , [ " " ]) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . writer_identity , [ " " ]) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . writer_identity , [ " " ]) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . writer_identity , [ " " ] ), 0 ) : " "
28+ log_sink_resource_id = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . id , [ " " ]) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . id , [ " " ]) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . id , [ " " ]) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . id , [ " " ] ), 0 ) : " "
29+ log_sink_resource_name = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . name , [ " " ]) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . name , [ " " ]) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . name , [ " " ]) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . name , [ " " ] ), 0 ) : " "
30+ log_sink_parent_id = local. is_project_level ? element (concat (google_logging_project_sink. sink . * . project , [ " " ]) , 0 ) : local. is_folder_level ? element (concat (google_logging_folder_sink. sink . * . folder , [ " " ]) , 0 ) : local. is_org_level ? element (concat (google_logging_organization_sink. sink . * . org_id , [ " " ]) , 0 ) : local. is_billing_level ? element (concat (google_logging_billing_account_sink. sink . * . billing_account , [ " " ] ), 0 ) : " "
3131
3232 # Bigquery sink options
33- bigquery_options = var. bigquery_options == null ? [] : var. unique_writer_identity == true ? list ( var. bigquery_options ) : []
33+ bigquery_options = var. bigquery_options == null ? [] : var. unique_writer_identity == true ? tolist ([ var . bigquery_options ] ) : []
3434}
3535
3636
0 commit comments