-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreams.tf
33 lines (27 loc) · 853 Bytes
/
streams.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# resource "snowflake_stream" "raw_alerts_stream" {
# provider = snowflake.alerting_role
# database = local.snowalert_database_name
# schema = local.results_schema
# name = "RAW_ALERTS_STREAM"
# on_table = join(".", [
# local.snowalert_database_name,
# local.results_schema,
# local.raw_alerts_table,
# ])
# comment = "A stream to track the diffs on raw_alerts table."
# }
resource "snowflake_stream" "raw_alerts_merge_stream" {
provider = snowflake.alerting_role
database = local.snowalert_database_name
schema = local.results_schema
name = "RAW_ALERTS_MERGE_STREAM"
on_table = join(".", [
local.snowalert_database_name,
local.results_schema,
local.raw_alerts_table,
])
comment = "A stream to track the diffs on raw_alerts table."
depends_on = [
module.snowalert_grants
]
}