@@ -16,40 +16,40 @@ resource "observe_dataset" "cloud_sql_logs_error" {
1616
1717}
1818
19- resource "observe_link" "sql_error_logs" {
20- workspace = var. workspace . oid
21- source = each. value . source
22- target = each. value . target
23- fields = each. value . fields
24- label = each. key
25-
26- for_each = {
27-
28- " DatabaseErrors" = {
29- target = observe_dataset.cloud_sql_instance.oid
30- fields = [" database_id" ]
31- source = observe_dataset.cloud_sql_logs_error.oid
32- }
33- # # If we want to create an error log for each platform
34- # "PostGresDatabaseAccess" = {
35- # target = observe_dataset.cloud_sql_instance.oid
36- # fields = ["database_id"]
37- # source = observe_dataset.postgres_error_logs.oid
38- # }
39-
40- # "MySQLDatabaseError" = {
41- # target = observe_dataset.cloud_sql_instance.oid
42- # fields = ["database_id"]
43- # source = observe_dataset.mysql_error_logs.oid
44- # }
45-
46- # "SQLServerDatabaseError" = {
47- # target = observe_dataset.cloud_sql_instance.oid
48- # fields = ["database_id"]
49- # source = observe_dataset.sqlserver_error_logs.oid
50- # }
51- }
52- }
19+ # resource "observe_link" "sql_error_logs" {
20+ # workspace = var.workspace.oid
21+ # source = each.value.source
22+ # target = each.value.target
23+ # fields = each.value.fields
24+ # label = each.key
25+
26+ # for_each = {
27+
28+ # "DatabaseErrors" = {
29+ # target = observe_dataset.cloud_sql_instance.oid
30+ # fields = ["database_id"]
31+ # source = observe_dataset.cloud_sql_logs_error.oid
32+ # }
33+ # ## If we want to create an error log for each platform
34+ # # "PostGresDatabaseAccess" = {
35+ # # target = observe_dataset.cloud_sql_instance.oid
36+ # # fields = ["database_id"]
37+ # # source = observe_dataset.postgres_error_logs.oid
38+ # # }
39+
40+ # # "MySQLDatabaseError" = {
41+ # # target = observe_dataset.cloud_sql_instance.oid
42+ # # fields = ["database_id"]
43+ # # source = observe_dataset.mysql_error_logs.oid
44+ # # }
45+
46+ # # "SQLServerDatabaseError" = {
47+ # # target = observe_dataset.cloud_sql_instance.oid
48+ # # fields = ["database_id"]
49+ # # source = observe_dataset.sqlserver_error_logs.oid
50+ # # }
51+ # }
52+ # }
5353
5454# # If we want to create an error log for each platform
5555
0 commit comments